This commit is contained in:
dzc committed 2026-08-02 13:03:56 +08:00
1 parent 0925f01b54
commit 880d19ec94
1 file changed
+12 -8
@@ -30,28 +30,32 @@
<result property="hourType" column="hour_type"/>
<result property="isPriceIncreased" column="is_price_increased"/>
</resultMap>
<select id="selectTimeFood" resultType="com.bsd.pjcloud.canteen.vo.DailyMenuVO">
SELECT
DISTINCT(sp.id),
t.id as tid,
<select id="selectTimeFood"
resultType="com.bsd.pjcloud.canteen.vo.DailyMenuVO">
SELECT DISTINCT
sp.id,
t.id AS tid,
sp.name,
sp.pic_url,
t.hour_type,
sp.price,
sp.category_id
sp.category_id,
sp.sort
FROM canteen_daily_menu t
LEFT JOIN canteen_spu sp
on t.spu_id=sp.id
ON t.spu_id = sp.id
<where>
AND t.merchant_id = #{merchantId}
<if test="categoryId != null">
AND sp.category_id = #{categoryId}
</if>
AND sp.del_flag = 0
AND t.start_time = #{time}
And t.del_flag = 0
AND t.del_flag = 0
</where>
order by sp.sort asc
ORDER BY sp.sort ASC
</select>
<select id="getCanteenMenuList" resultMap="adCanteenDailyMenuListVO">
SELECT