From 86b82f11dd67dfe1c273a0a93aee668512b7312f Mon Sep 17 00:00:00 2001 From: gongbiao Date: Thu, 25 Oct 2018 17:01:24 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=89=A9=E4=B8=9A=E5=90=88=E5=90=8C][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9][=E5=85=B3=E8=81=94=E7=A7=9F=E8=B5=81?= =?UTF-8?q?=E5=90=88=E5=90=8C=E7=9A=84=E7=89=A9=E4=B8=9A=E5=90=88=E5=90=8C?= =?UTF-8?q?=E4=B8=8D=E8=AE=A9=E6=96=B0=E5=BB=BA=E6=97=B6=E9=80=89=E6=8B=A9?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/WxPropertyContractMapper.xml | 156 ++++++++++-------- 1 file changed, 84 insertions(+), 72 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml b/mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml index 944a473f0..8f0f0202d 100644 --- a/mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxPropertyContractMapper.xml @@ -2,87 +2,91 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + `id`,`merchant_id`,`price`,`rental_start_date`,`rental_end_date`,`sign_date`,`receive_period`,`tenant_id`,`filepath`,`status`,`contract_number`,`deposit`,`pay_date`,`is_del`,`merchant_name`,`brand`,`business_id`,`shop_type`,`shop_id`,`updatetime`,`createtime`,`rent_area`,`link_person`,`link_phone`,`pay_account`,`filename`,`lease`,`rent_contract_id` - + - where 1 = 1 - and `id` = #{id} - and `merchant_id` = #{merchantId} - and `price` = #{price} - and `rental_start_date` = #{rentalStartDate} - and `rental_end_date` = #{rentalEndDate} - and `sign_date` = #{signDate} - and `receive_period` = #{receivePeriod} - and `tenant_id` = #{tenantId} - and `filepath` = #{filepath} - and `status` = #{status} - and `contract_number` = #{contractNumber} - and `deposit` = #{deposit} - and `pay_date` = #{payDate} - and `is_del` = #{isDel} - and `merchant_name` = #{merchantName} - and `brand` = #{brand} - and `business_id` = #{businessId} - and `shop_type` = #{shopType} - and `shop_id` = #{shopId} - and `updatetime` = #{updatetime} - and `createtime` = #{createtime} - and `rent_area` = #{rentArea} - and `link_person` = #{linkPerson} - and `link_phone` = #{linkPhone} - and `pay_account` = #{payAccount} - and `filename` = #{filename} - and `lease` = #{lease} - and `rent_contract_id` = #{rentContractId} + where 1 = 1 + and `id` = #{id} + and `merchant_id` = #{merchantId} + and `price` = #{price} + and `rental_start_date` = #{rentalStartDate} + and `rental_end_date` = #{rentalEndDate} + and `sign_date` = #{signDate} + and `receive_period` = #{receivePeriod} + and `tenant_id` = #{tenantId} + and `filepath` = #{filepath} + and `status` = #{status} + and `contract_number` = #{contractNumber} + and `deposit` = #{deposit} + and `pay_date` = #{payDate} + and `is_del` = #{isDel} + and `merchant_name` = #{merchantName} + and `brand` = #{brand} + and `business_id` = #{businessId} + and `shop_type` = #{shopType} + and `shop_id` = #{shopId} + and `updatetime` = #{updatetime} + and `createtime` = #{createtime} + and `rent_area` = #{rentArea} + and `link_person` = #{linkPerson} + and `link_phone` = #{linkPhone} + and `pay_account` = #{payAccount} + and `filename` = #{filename} + and `lease` = #{lease} + and `rent_contract_id` = #{rentContractId} - and id in + and id in - #{idItem} + #{idItem} - - order by ${sortColumns} + + order by ${sortColumns} - select count(id) from wx_property_contract where tenant_id=#{tenantId} and status=#{status} - select count(id) from wx_property_contract where tenant_id=#{tenantId} and status!=1 and status!=6 and status!=7 and DATEDIFF(rental_end_date,now()) <= 30 @@ -138,7 +147,10 @@ - - + +