瀏覽代碼

[账单提醒][修改][根据商户配置发送待缴信息]

release_toaliyun_real
gongbiao 7 年之前
父節點
當前提交
2d06f61d8f
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      mallinkService/src/main/resources/mapper/WxBillAllMapper.xml

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

@@ -310,11 +310,11 @@
need_pay,receive_pay,pay,owe,DATE_FORMAT(receive_date,'%Y-%m-%d') receive_date,pay_date,expired_day,status,'' starttime,'' endtime,rent_shop_type
from wx_bill_other_deposit
) bill
where DATEDIFF(bill.receive_date,now())=3 and bill.status not in(3,5,6)
where bill.status not in(3,5,6)
group by bill.tenant_id,bill.merchant_id,bill.receive_date) bill
left join wx_merchant m on bill.merchant_id=m.id
left join (select tenant_id,`name` appname from wx_appinfo app where type=1) app on bill.tenant_id=app.tenant_id
where m.status=1
where m.status=1 and DATEDIFF(bill.receive_date,now())=m.bill_setting
</select>
@@ -396,14 +396,14 @@
need_pay,receive_pay,pay,owe,DATE_FORMAT(receive_date,'%Y-%m-%d') receive_date,pay_date,expired_day,status,'' starttime,'' endtime,rent_shop_type
from wx_bill_other_deposit
) bill
where DATEDIFF(bill.receive_date,now())=3 and bill.status not in(3,5,6)
where bill.status not in(3,5,6)
group by bill.tenant_id,bill.merchant_id,bill.receive_date,bill.bill_type
) bill
left join wx_merchant m on bill.merchant_id=m.id
left join (select tenant_id,`name` appname from wx_appinfo app where type=1) app on bill.tenant_id=app.tenant_id
left join wx_merchant_shop wms on wms.merchant_id = m.id
left join wx_shop ws on wms.shop_id = ws.id
where m.status=1
where m.status=1 and DATEDIFF(bill.receive_date,now())=m.bill_setting
</select>

<select id="getOweBillForEmail" resultType="hashmap">


Loading…
取消
儲存