营养信息删除优化
This commit is contained in:
parent
5a6edda8cd
commit
0a5e08aba2
|
|
@ -494,7 +494,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<select id="checkIsExistRelation" resultType="java.lang.Integer">
|
||||
select count(1)
|
||||
from menu_material
|
||||
where nutrition_type = #{id}
|
||||
where nutrition_id = (select nutrition_id from menu_nutrition where id = #{id})
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue