feat:applyType

This commit is contained in:
苏竹红
2025-06-24 20:45:48 +08:00
parent 59baaf9bfa
commit cba79701a6
4 changed files with 7 additions and 21 deletions

View File

@@ -55,18 +55,9 @@
<select id="selectByStoreAndDateStage" resultMap="BaseResultMap">
SELECT * FROM xfsg_pre_fry_records
WHERE store_code = #{storeCode}
AND (
(fry_date = DATE_SUB(#{queryDate}, INTERVAL 1 DAY)
AND current_stage IN
<foreach collection="yesterdayStageList" item="stage" open="(" separator="," close=")">
#{stage}
</foreach>)
OR (fry_date = #{queryDate} AND current_stage = #{todayStage})
<if test="applyType!=null and applyType==2">
or (fry_date = #{queryDate} AND current_stage = 2 and current_apply_type = 2)
</if>
)
WHERE store_code = #{storeCode} and current_apply_type = #{applyType}
AND ( (fry_date = DATE_SUB(#{queryDate}, INTERVAL 1 DAY) AND current_stage IN (3,4,5)
OR (fry_date = #{queryDate} AND current_stage in (1, 2) )
</select>
<select id="selectDailyFryCountInCurrentMonth" resultType="com.cool.store.dto.pre.fry.DailyFryCountDTO">