食谱制作菜品选择增加食材条件筛选

This commit is contained in:
huangdeliang
2021-04-27 17:18:54 +08:00
parent 75e226d13b
commit 484fe1cdeb
4 changed files with 23 additions and 9 deletions

View File

@ -95,4 +95,6 @@ public class SysDishes {
private String physical;
private String igdName;
}

View File

@ -53,6 +53,9 @@
<if test="physical != null and physical != ''">
and id in(SELECT DISTINCT(dishes_id) FROM sys_dishes_rec WHERE physical_signs_id = #{physical})
</if>
<if test="igdName != null and igdName != ''">
and id in(SELECT DISTINCT(dishes_id) FROM sys_dishes_ingredient WHERE name like concat('%', #{igdName}, '%'))
</if>
<if test="bigClass != null">and big_class = #{bigClass}</if>
<if test="smallClass != null">and small_class = #{smallClass}</if>
<if test="reviewStatus != null and type != ''">and review_status = #{reviewStatus}</if>