feat:预炸1

This commit is contained in:
苏竹红
2025-06-24 16:19:02 +08:00
parent 9b1aafb60b
commit d4a2123434
4 changed files with 5 additions and 3 deletions

View File

@@ -70,12 +70,13 @@ public class PreFryRecordsDAO {
}
public List<PreFryRecordsDO> selectByStoreAndDateStage(String storeCode,
Integer applyType,
List<Integer> yesterdayStageList,
Integer todayStage, String queryDate){
if (StringUtils.isBlank(storeCode) || CollectionUtils.isEmpty(yesterdayStageList)) {
return null;
}
return preFryRecordsMapper.selectByStoreAndDateStage(storeCode,yesterdayStageList,todayStage,queryDate);
return preFryRecordsMapper.selectByStoreAndDateStage(storeCode,applyType,yesterdayStageList,todayStage,queryDate);
}
public List<DailyFryCountDTO> selectDailyFryCountInCurrentMonth(String storeCode,Long time) {

View File

@@ -22,6 +22,7 @@ public interface PreFryRecordsMapper extends Mapper<PreFryRecordsDO> {
List<PreFryRecordsDO> selectByStoreAndDateStage(
@Param("storeCode") String storeCode,
@Param("applyType") Integer applyType,
@Param("yesterdayStageList") List<Integer> yesterdayStageList,
@Param("todayStage") Integer todayStage,
@Param("queryDate") String queryDate);

View File

@@ -63,7 +63,7 @@
#{stage}
</foreach>)
OR (fry_date = #{queryDate} AND current_stage = #{todayStage})
<if test="current_apply_type!=null and current_apply_type==2">
<if test="applyType!=null and applyType==2">
or (fry_date = #{queryDate} AND current_stage = 2 and current_apply_type = 2)
</if>
)