Browse Source

搜索修复

master
汤建军 8 months ago
parent
commit
7825120857
  1. 19
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml

19
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataClientMapper.xml

@ -151,18 +151,21 @@
<if test="param.clientType != null and param.clientType != ''">
AND lbc.client_type = #{param.clientType}
</if>
<if test="param.contractStartTime != null and param.contractStartTime != ''">
AND DATE_FORMAT(lbc.contract_start_time,, '%Y-%m-%d') > DATE_FORMAT(#{param.contractStartTime}, '%Y-%m-%d')
</if>
<if test="param.contractEntTime != null and param.contractEntTime != ''">
AND DATE_FORMAT(lbc.contract_ent_time,, '%Y-%m-%d') &lt; DATE_FORMAT(#{param.contractEntTime}, '%Y-%m-%d')
<if test="param.typeServiceName != null and param.typeServiceName != ''">
AND lbc.type_ervice = #{param.typeServiceName}
</if>
<!-- <if test="param.contractStartTime != null and param.contractStartTime != ''">-->
<!-- AND DATE_FORMAT(lbc.contract_start_time,, '%Y-%m-%d') > DATE_FORMAT(#{param.contractStartTime}, '%Y-%m-%d')-->
<!-- </if>-->
<!-- <if test="param.contractEntTime != null and param.contractEntTime != ''">-->
<!-- AND DATE_FORMAT(lbc.contract_ent_time,, '%Y-%m-%d') &lt; DATE_FORMAT(#{param.contractEntTime}, '%Y-%m-%d')-->
<!-- </if>-->
<if test="param.brandName != null and param.brandName != ''">
AND t.aaa LIKE CONCAT('%', #{param.brandName}, '%')
</if>
<if test="param.stratTimeDate != null and param.stratTimeDate != '' and param.endTimeDate != null and param.endTimeDate != ''">
AND lbc.contract_start_time >= DATE_FORMAT(#{param.stratTimeDate}, '%Y-%m-%d')
AND lbc.contract_ent_time &lt;= DATE_FORMAT(#{param.endTimeDate}, '%Y-%m-%d')
<if test="param.startDate != null and param.startDate != '' and param.endDate != null and param.endDate != ''">
AND lbc.contract_start_time >= DATE_FORMAT(#{param.startDate}, '%Y-%m-%d')
AND lbc.contract_ent_time &lt;= DATE_FORMAT(#{param.endDate}, '%Y-%m-%d')
</if>
</where>
GROUP BY

Loading…
Cancel
Save