Commit f3970314 authored by zhengyi's avatar zhengyi

优惠状态查询sql修正

parent 3267e4d5
...@@ -317,10 +317,10 @@ public interface CouponMapper extends BaseMapperX<CouponDO> { ...@@ -317,10 +317,10 @@ public interface CouponMapper extends BaseMapperX<CouponDO> {
" or c.`status` = #{status}", " or c.`status` = #{status}",
"</when>", "</when>",
"<when test=' status == 2'>", "<when test=' status == 2'>",
" or c.`puton_status` = 0 or c.`puton_status` = -1", " or (c.`status` = 1 and (c.`puton_status` = 0 or c.`puton_status` = -1))",
"</when>", "</when>",
"<when test=' status == 3'>", "<when test=' status == 3'>",
" or c.`puton_status` = 1", " or (c.`status` = 1 and c.`puton_status` = 1)",
"</when>", "</when>",
"<when test=' status == 4'>", "<when test=' status == 4'>",
" or c.`overdue_status` = 0", " or c.`overdue_status` = 0",
......
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