流水汇总达梦sql不支持别名

This commit is contained in:
zhou-hongcheng
2026-02-26 15:54:15 +08:00
parent cc56ae5f2f
commit 442f95cbc6
@@ -256,10 +256,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and count_fee = #{billingStatementCollectDO.countFee}
</if>
<if test="billingStatementCollectDO.businessStartDate != null">
and date_format(business_start_date,'%Y-%m-%d %H:%i:%s') <![CDATA[>=]]> #{billingStatementCollectDO.businessStartDate}
and date_format(MIN(business_date),'%Y-%m-%d %H:%i:%s') <![CDATA[>=]]> #{billingStatementCollectDO.businessStartDate}
</if>
<if test="billingStatementCollectDO.businessEndDate != null">
and date_format(business_end_date,'%Y-%m-%d %H:%i:%s') <![CDATA[<=]]> #{billingStatementCollectDO.businessEndDate}
and date_format(MAX(business_date),'%Y-%m-%d %H:%i:%s') <![CDATA[<=]]> #{billingStatementCollectDO.businessEndDate}
</if>
</sql>