营养信息删除优化

This commit is contained in:
jjLv 2025-05-14 17:44:05 +08:00
parent 5a6edda8cd
commit 0a5e08aba2
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="checkIsExistRelation" resultType="java.lang.Integer"> <select id="checkIsExistRelation" resultType="java.lang.Integer">
select count(1) select count(1)
from menu_material from menu_material
where nutrition_type = #{id} where nutrition_id = (select nutrition_id from menu_nutrition where id = #{id})
</select> </select>
</mapper> </mapper>