Browse Source

fix: 添加空串校验

master_tdsql
hxh 9 months ago
parent
commit
03a561155f
  1. 10
      shuili-system/src/main/java/com/kms/yxgh/df/mapper/DfYhRecordMapper.java

10
shuili-system/src/main/java/com/kms/yxgh/df/mapper/DfYhRecordMapper.java

@ -37,13 +37,13 @@ public interface DfYhRecordMapper extends BaseMapper<DfYhRecord> {
"LEFT JOIN bs_sgc_df_yhjh jh ON jh.id = yhjl.plan_id " +
"LEFT JOIN att_dike_base df ON yhjl.dike_code = df.dike_code and df.expr_date is null " +
"WHERE 1=1 " +
"<if test='searchDto.dikeCode != null '>" +
"<if test='searchDto.dikeCode != null and searchDto.dikeCode != \"\"'>" +
"AND df.dike_code = #{searchDto.dikeCode} " +
"</if>" +
"<if test='searchDto.dikeName != null '>" +
"<if test='searchDto.dikeName != null and searchDto.dikeName != \"\"'>" +
"AND df.dike_name LIKE CONCAT('%',#{searchDto.dikeName},'%') " +
"</if>" +
"<if test='searchDto.dikeType != null '>" +
"<if test='searchDto.dikeType != null and searchDto.dikeType != \"\"'>" +
"AND df.dike_type = #{searchDto.dikeType} " +
"</if>" +
"<if test='searchDto.startDate != null '>" +
@ -52,10 +52,10 @@ public interface DfYhRecordMapper extends BaseMapper<DfYhRecord> {
"<if test='searchDto.endDate != null '>" +
"AND jh.end_date &lt;= #{searchDto.endDate} " +
"</if>" +
"<if test='searchDto.name != null '>" +
"<if test='searchDto.name != null and searchDto.name != \"\"'>" +
"AND jh.name LIKE CONCAT('%',#{searchDto.name},'%') " +
"</if>" +
"<if test='searchDto.adcd != null '>" +
"<if test='searchDto.adcd != null and searchDto.adcd != \"\"'>" +
"AND df.adcd LIKE CONCAT(#{searchDto.adcd},'%') " +
"</if>" +
"ORDER BY yhjl.create_time DESC" +

Loading…
Cancel
Save