瀏覽代碼

[审批][修改][修改卷列表过滤审批状态]

release_toaliyun_real
luozukai 7 年之前
父節點
當前提交
c5904f32af
共有 1 個檔案被更改,包括 4 行新增5 行删除
  1. +4
    -5
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 4
- 5
mallinkService/src/main/resources/mapper/WxCouponMapper.xml 查看文件

@@ -410,17 +410,16 @@
<!--如果配置了审批模板,需要过滤投放审批状态-->
<if test="0 != filterCanPut or null ==filterCanPut ">
<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 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 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 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>



Loading…
取消
儲存