Commit 235c4fd9 authored by zhengyi's avatar zhengyi

sql修复

parent 62f240ff
......@@ -165,13 +165,12 @@ public interface ProductMapper extends BaseMapperX<ProductDO> {
"</when>",
"<when test='query.attrId != null and query.attrId.size()>0'>" ,
"<when test=' query.attrId.size()==1 '>" ,
"<when test='query.attrId.size()==1 '>" ,
"<foreach item='attrId' index='index' collection='query.attrId' >" ,
"AND t.`attr_id` = #{attrId}" ,
"</foreach>",
"</when>",
"<when test='and query.attrId.size()>1 '>" ,
"<when test='query.attrId.size()>1 '>" ,
"AND (1!=1 " ,
" <foreach item='attrId' index='index' collection='query.attrId'>" ,
" OR FIND_IN_SET(t.`attr_id`, #{attrId})",
......
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