提交 ad8e7c07 作者: xiaowang

修复:产品管理搜索

上级 80d7371c
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
and product_name like CONCAT ('%',#{productName},'%') and product_name like CONCAT ('%',#{productName},'%')
</if> </if>
<if test="type != null"> <if test="type != null">
and `type` = #{type} and (`type` = #{type} or `type` is null)
</if> </if>
</where> </where>
</select> </select>
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
and ps.product_name like CONCAT ('%',#{productName},'%') and ps.product_name like CONCAT ('%',#{productName},'%')
</if> </if>
<if test="type != null"> <if test="type != null">
and `type` = #{type} or `type` is null and (`type` = #{type} or `type` is null)
</if> </if>
</where> </where>
order by ps.create_time desc order by ps.create_time desc
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论