Commit a97eb666 authored by zhengyi's avatar zhengyi

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

parent 83b87d07
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
</if> </if>
<if test="reqVO.status != null"> <if test="reqVO.status != null">
and p.status = #{reqVO.status} 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>
<if test="reqVO.productCode != null and reqVO.productCode != '' "> <if test="reqVO.productCode != null and reqVO.productCode != '' ">
and p.product_code like concat("%",concat(#{reqVO.productCode},"%")) and p.product_code like concat("%",concat(#{reqVO.productCode},"%"))
...@@ -50,8 +53,6 @@ ...@@ -50,8 +53,6 @@
#{id} #{id}
</foreach> </foreach>
</if> </if>
GROUP BY type_id
</select> </select>
</mapper> </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