| @@ -410,17 +410,16 @@ | |||||
| <!--如果配置了审批模板,需要过滤投放审批状态--> | <!--如果配置了审批模板,需要过滤投放审批状态--> | ||||
| <if test="0 != filterCanPut or null ==filterCanPut "> | <if test="0 != filterCanPut or null ==filterCanPut "> | ||||
| <if test=" null != pressModelId and 0l != pressModelId"> | <if test=" null != pressModelId and 0l != pressModelId"> | ||||
| and if(type=8,put_apply_status =2,1=1) | |||||
| and if(type=8,put_apply_status =2 or c.id in(select coupon_id from wx_coupon_channel where status=0 and tenant_id=#{tenantId}) ,1=1) | |||||
| </if> | </if> | ||||
| <if test=" null != groupModelId and 0l != groupModelId"> | <if test=" null != groupModelId and 0l != groupModelId"> | ||||
| and if(type=9,put_apply_status =2,1=1) | |||||
| and if(type=9,put_apply_status =2 or c.id in(select coupon_id from wx_coupon_channel where status=0 and tenant_id=#{tenantId}),1=1) | |||||
| </if> | </if> | ||||
| <if test=" null != cardModelId and 0l != cardModelId"> | <if test=" null != cardModelId and 0l != cardModelId"> | ||||
| and if(type=100,put_apply_status =2,1=1) | |||||
| and if(type=100,put_apply_status =2 or c.id in(select coupon_id from wx_coupon_channel where status=0 and tenant_id=#{tenantId}),1=1) | |||||
| </if> | </if> | ||||
| <if test=" null != couponModelId and 0l != couponModelId"> | <if test=" null != couponModelId and 0l != couponModelId"> | ||||
| and if(type !=8 and type !=9 and type!=100,put_apply_status =2,1=1) | |||||
| and if(type !=8 and type !=9 and type!=100,put_apply_status =2 or c.id in(select coupon_id from wx_coupon_channel where status=0 and tenant_id=#{tenantId}),1=1) | |||||
| </if> | </if> | ||||
| </if> | </if> | ||||