Commit 62f240ff authored by zhengyi's avatar zhengyi

优惠列表查询,已过期优惠活动的只限定筛选已投放的优惠活动

parent 1333e8cb
...@@ -323,7 +323,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> { ...@@ -323,7 +323,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> {
"<when test='reqVO.statusList != null and reqVO.statusList.size()>0 and reqVO.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} and c.`puton_status` = 1)",
"</when>", "</when>",
"<when test='reqVO.statusList.size()==1'>", "<when test='reqVO.statusList.size()==1'>",
" or c.`status` = ", " or c.`status` = ",
...@@ -341,7 +341,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> { ...@@ -341,7 +341,7 @@ public interface CouponMapper extends BaseMapperX<CouponDO> {
"</when>", "</when>",
"<when test = 'reqVO.overdueStatus != null and reqVO.isIncludeExpiredStatus == false'>", "<when test = 'reqVO.overdueStatus != null and reqVO.isIncludeExpiredStatus == false'>",
"AND c.overdue_status = #{reqVO.overdueStatus}", "AND c.overdue_status = #{reqVO.overdueStatus} and c.`puton_status` = 1",
"</when>", "</when>",
"<when test = 'reqVO.putonStatus != null'>", "<when test = 'reqVO.putonStatus != null'>",
"AND c.puton_status = #{reqVO.putonStatus}", "AND c.puton_status = #{reqVO.putonStatus}",
......
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