From 4f4824489032bdb79c532683bc2b89730f30c5a9 Mon Sep 17 00:00:00 2001 From: luozukai Date: Wed, 22 May 2019 19:19:18 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9bug][=E4=BF=AE=E6=94=B9][100?= =?UTF-8?q?1573]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mallinkService/src/main/resources/mapper/WxBillAllMapper.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml b/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml index 91df387e0..0e2f84ec8 100644 --- a/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBillAllMapper.xml @@ -42,7 +42,9 @@ select bill.id,bill.tenant_id tenantId,bill.merchant_id merchantId,bill.shop_id shopId, bill.bill_type_value billTypeValue,bill.bill_type billType,bill.need_pay needPay, - bill.receive_pay receivePay,bill.pay,bill.owe,bill.receive_date receiveDate, + bill.receive_pay receivePay,bill.pay, + case when bill.status=1 then bill.owe else 0 end owe + ,bill.receive_date receiveDate, bill.pay_date payDate,DATEDIFF(now(),bill.receive_date) expiredDay,bill.status,bill.starttime, bill.endtime,bill.name,bill.rent_shop_type rentShopType,m.name merchantName, s.shop_number shopNumber, s.manager, s.manager_phone managerPhone,bill.shop_info shopInfo