Commit f5423e0f authored by zhengyi's avatar zhengyi

优惠列表状态查询sql修正

parent a020535a
...@@ -306,7 +306,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> { ...@@ -306,7 +306,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> {
"<when test = 'reqVO.status != null'>", "<when test = 'reqVO.status != null'>",
"AND c.status = #{reqVO.status}", "AND c.status = #{reqVO.status}",
"</when>", "</when>",
"<when test='reqVO.statusList != null and reqVO.statusList.size()>0 and isIncludeExpiredStatus == false' >", "<when test='reqVO.statusList != null and reqVO.statusList.size()>0 and reqVO.isIncludeExpiredStatus == false' >",
"<when test='reqVO.statusList.size()==1'>", "<when test='reqVO.statusList.size()==1'>",
" AND c.`status` = ", " AND c.`status` = ",
" <foreach item='statusId' index='index' collection='reqVO.statusList' >", " <foreach item='statusId' index='index' collection='reqVO.statusList' >",
...@@ -320,7 +320,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> { ...@@ -320,7 +320,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> {
" </foreach>", " </foreach>",
" </when>", " </when>",
"</when>", "</when>",
"<when test='reqVO.statusList != null and reqVO.statusList.size()>0 and isIncludeExpiredStatus == true' >", "<when test='reqVO.statusList != null and reqVO.statusList.size()>0 and reqVO.isIncludeExpiredStatus == true' >",
"AND ( 1 != 1", "AND ( 1 != 1",
"<when test = 'reqVO.overdueStatus != null'>", "<when test = 'reqVO.overdueStatus != null'>",
"or c.overdue_status = #{reqVO.overdueStatus}", "or c.overdue_status = #{reqVO.overdueStatus}",
...@@ -340,7 +340,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> { ...@@ -340,7 +340,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> {
" )", " )",
"</when>", "</when>",
"<when test = 'reqVO.overdueStatus != null and isIncludeExpiredStatus == false'>", "<when test = 'reqVO.overdueStatus != null and reqVO.isIncludeExpiredStatus == false'>",
"AND c.overdue_status = #{reqVO.overdueStatus}", "AND c.overdue_status = #{reqVO.overdueStatus}",
"</when>", "</when>",
"<when test = 'reqVO.putonStatus != null'>", "<when test = 'reqVO.putonStatus != null'>",
......
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