Browse Source

fix: 修复sql

master_tdsql
hxh 1 year ago
parent
commit
d225afff54
  1. 2
      shuili-system/src/main/java/com/kms/yxgh/common/mapper/MonitoringStationMapper.java

2
shuili-system/src/main/java/com/kms/yxgh/common/mapper/MonitoringStationMapper.java

@ -23,7 +23,7 @@ public interface MonitoringStationMapper extends BaseMapper<MonitoringStation> {
"left join bs_sgc_sz_jbxx on monitoring_station.code = bs_sgc_sz_jbxx.waga_code and bs_sgc_sz_jbxx.expr_date is null " + "left join bs_sgc_sz_jbxx on monitoring_station.code = bs_sgc_sz_jbxx.waga_code and bs_sgc_sz_jbxx.expr_date is null " +
"where 1=1 " + "where 1=1 " +
"<if test='data.getAdcd() != null and data.getAdcd() != \"\"'> " + "<if test='data.getAdcd() != null and data.getAdcd() != \"\"'> " +
"and ( bs_sgc_df_jbxx.adcd like concat(#{data.adcd},'%') or bs_sgc_sz_gcda.adcd like concat(#{data.adcd},'%') ) " + "and ( bs_sgc_df_gcda.adcd like concat(#{data.adcd},'%') or bs_sgc_sz_jbxx.adcd like concat(#{data.adcd},'%') ) " +
"</if> " + "</if> " +
"</script>") "</script>")
Integer count(@Param("data") WarningQueDto data); Integer count(@Param("data") WarningQueDto data);

Loading…
Cancel
Save