菜品添加、查询优化

This commit is contained in:
xiezhijun
2021-03-11 18:31:34 +08:00
parent 9946667f88
commit 2b571aca92
5 changed files with 107 additions and 16 deletions

View File

@ -47,6 +47,8 @@
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="type != null and type != ''"> and FIND_IN_SET(#{type}, type)</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>
<if test="isMain != null and type != ''"> and is_main = #{isMain}</if>
</where>