feat:预炸1
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user