This commit is contained in:
2025-01-08 16:58:34 +08:00
parent 0ab4b18420
commit 708bafa24c
2 changed files with 5 additions and 6 deletions

View File

@ -52,7 +52,7 @@ public class DynamicTaskGenerator {
for (ScenicRespVO scenic : scenicList) {
log.info("定时任务执行,当前景区:{}", scenic.getName());
ScenicConfigEntity scenicConfig = scenicMapper.getConfig(scenic.getId());
if (scenicConfig == null || 2 == scenicConfig.getBookRoutine()) {
if (scenicConfig == null || Integer.valueOf(2).equals(scenicConfig.getBookRoutine())) {
log.info("当前景区{},未启用提前预约流程", scenic.getName());
continue;
}

View File

@ -155,11 +155,10 @@
where member_id = #{memberId} and source_id = #{sourceId} and type = #{type}
</select>
<select id="listVideoByFaceRelation" resultType="com.ycwl.basic.model.pc.source.entity.SourceEntity">
select *
from source
where source.id in (
select source_id from member_source where face_id = #{faceId} and type = 1
)
select s.*
from member_source ms
left join source s on ms.source_id = s.id
where ms.face_id = #{faceId} and ms.type = 1
order by create_time desc
</select>
</mapper>