合同管理sql条件判断空字符

This commit is contained in:
zhou-hongcheng
2026-03-02 11:02:14 +08:00
parent 2ad2f9d0ab
commit a9d8e2528f
@@ -143,7 +143,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="contractManageDO.contractType != null">
and contract_type = #{contractManageDO.contractType}
</if>
<if test="contractManageDO.settlementCustomers != null">
<if test="contractManageDO.settlementCustomers != null and contractManageDO.settlementCustomers != '' " >
and settlement_customers like concat('%', #{contractManageDO.settlementCustomers}, '%')
</if>
<if test="contractManageDO.settlementCustomersCode != null">