diff --git a/mhd_bms/src/main/resources/mapper/BillingStatementMapper.xml b/mhd_bms/src/main/resources/mapper/BillingStatementMapper.xml index b4212f812..79565368c 100644 --- a/mhd_bms/src/main/resources/mapper/BillingStatementMapper.xml +++ b/mhd_bms/src/main/resources/mapper/BillingStatementMapper.xml @@ -256,10 +256,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and count_fee = #{billingStatementCollectDO.countFee} - and date_format(business_start_date,'%Y-%m-%d %H:%i:%s') =]]> #{billingStatementCollectDO.businessStartDate} + and date_format(MIN(business_date),'%Y-%m-%d %H:%i:%s') =]]> #{billingStatementCollectDO.businessStartDate} - and date_format(business_end_date,'%Y-%m-%d %H:%i:%s') #{billingStatementCollectDO.businessEndDate} + and date_format(MAX(business_date),'%Y-%m-%d %H:%i:%s') #{billingStatementCollectDO.businessEndDate}