提交 cfc5a53a 作者: xiaowang

修复:产品管理搜索

上级 2dca54dc
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
set product_name = #{productName}, set product_name = #{productName},
model = #{model}, model = #{model},
brand_info_id = #{brandInfoId} brand_info_id = #{brandInfoId}
`type` = #{type}
where id = #{id} where id = #{id}
</update> </update>
<update id="updateProductSpec"> <update id="updateProductSpec">
...@@ -130,7 +131,7 @@ ...@@ -130,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} 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论