Browse Source

fix: 修复水闸水雨情工程统计sql

master_tdsql
hxh 1 year ago
parent
commit
df203d399b
  1. 4
      shuili-system/src/main/java/com/kms/yg/df/mapper/BsSgcDfJbxxMapper.java
  2. 4
      shuili-system/src/main/java/com/kms/yg/sz/mapper/BsSgcSzGcdaMapper.java

4
shuili-system/src/main/java/com/kms/yg/df/mapper/BsSgcDfJbxxMapper.java

@ -144,10 +144,10 @@ public interface BsSgcDfJbxxMapper extends BaseMapper<BsSgcDfJbxx> {
"SELECT dike_code , dike_name ", "SELECT dike_code , dike_name ",
"FROM bs_sgc_df_gcda where expr_date is null ", "FROM bs_sgc_df_gcda where expr_date is null ",
"<if test='dfProject.riverLocation != null and dfProject.riverLocation != \"\"'>", "<if test='dfProject.riverLocation != null and dfProject.riverLocation != \"\"'>",
"AND df.river_location = #{dfProject.riverLocation} ", "AND river_location = #{dfProject.riverLocation} ",
"</if>", "</if>",
"<if test='dfProject.adcd != null and dfProject.adcd != \"\"'>", "<if test='dfProject.adcd != null and dfProject.adcd != \"\"'>",
"AND df.adcd = #{dfProject.adcd} ", "AND adcd = #{dfProject.adcd} ",
"</if>", "</if>",
"order by dike_name ", "order by dike_name ",
"</script>" "</script>"

4
shuili-system/src/main/java/com/kms/yg/sz/mapper/BsSgcSzGcdaMapper.java

@ -108,10 +108,10 @@ public interface BsSgcSzGcdaMapper extends BaseMapper<BsSgcSzGcda> {
"SELECT waga_code , waga_name " + "SELECT waga_code , waga_name " +
"FROM bs_sgc_sz_jbxx where expr_date is null " + "FROM bs_sgc_sz_jbxx where expr_date is null " +
"<if test='szProject.riverLocation != null and szProject.riverLocation != \"\"'>" + "<if test='szProject.riverLocation != null and szProject.riverLocation != \"\"'>" +
"AND df.river_location = #{szProject.riverLocation} " + "AND river_location = #{szProject.riverLocation} " +
"</if>" + "</if>" +
"<if test='szProject.adcd != null and szProject.adcd != \"\"'>" + "<if test='szProject.adcd != null and szProject.adcd != \"\"'>" +
"AND df.adcd = #{szProject.adcd} " + "AND adcd = #{szProject.adcd} " +
"</if>" + "</if>" +
"</script>") "</script>")
@Results({ @Results({

Loading…
Cancel
Save