Просмотр исходного кода

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

release_toaliyun_real
luozukai 6 лет назад
Родитель
Сommit
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>



Загрузка…
Отмена
Сохранить