菜谱管理

This commit is contained in:
sxu 2025-05-30 16:46:33 +08:00
parent 02fdba8d35
commit 8f1dc34334
1 changed files with 7 additions and 7 deletions

View File

@ -420,14 +420,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectRecipeByStallIdsAndBindType" <select id="selectRecipeByStallIdsAndBindType"
resultType="com.bonus.canteen.core.cook.vo.StallAndRecipeBindVO"> resultType="com.bonus.canteen.core.cook.vo.StallAndRecipeBindVO">
select select
mar.recipe_id, crba.recipe_id,
mr.stall_id, cr.stall_id,
mar.bind_type crba.bind_type
from cook_recipe_bind_app mar from cook_recipe_bind_app crba
left join cook_recipe mr on mar.recipe_id = mr.recipe_id left join cook_recipe cr on crba.recipe_id = cr.recipe_id
where bind_type = #{bindType} where bind_type = #{bindType} and cr.del_flag = '0'
<if test="stallIds !=null and stallIds.size() > 0 "> <if test="stallIds !=null and stallIds.size() > 0 ">
and mr.stall_id IN and cr.stall_id IN
<foreach collection="stallIds" item="stallId" separator="," open="(" close=")"> <foreach collection="stallIds" item="stallId" separator="," open="(" close=")">
#{stallId} #{stallId}
</foreach> </foreach>