瀏覽代碼

[物业账单][修改][更新状态SQL]

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

+ 1
- 1
mallinkService/src/main/resources/mapper/WxBillPropertyMapper.xml 查看文件

@@ -118,7 +118,7 @@
update wx_bill_property set status=#{waitPay} where id in(
select a.id from (select br.id,rc.receive_period,br.property_contract_id,br.receive_date from wx_bill_property br
left join wx_property_contract rc on br.property_contract_id=rc.id
where br.tenant_id=#{tenantId} and br.status!=#{paid} and status != 6 and now() < br.receive_date
where br.tenant_id=#{tenantId} and br.status!=#{paid} and br.status != 6 and now() < br.receive_date
and DATE_ADD(now(),INTERVAL 1 MONTH)>br.receive_date) a)
</update>



Loading…
取消
儲存