Commit a97eb666 authored by zhengyi's avatar zhengyi

商品列表下拉框查询sql修复

parent 83b87d07
......@@ -28,6 +28,9 @@
</if>
<if test="reqVO.status != null">
and p.status = #{reqVO.status}
</if>
<if test="reqVO.attrId != null and reqVO.attrId != '' ">
and FIND_IN_SET(#{reqVO.attrId}, p.attr_id)
</if>
<if test="reqVO.productCode != null and reqVO.productCode != '' ">
and p.product_code like concat("%",concat(#{reqVO.productCode},"%"))
......@@ -50,8 +53,6 @@
#{id}
</foreach>
</if>
GROUP BY type_id
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment