Browse Source

fix: 去除多余关联表

master_tdsql
hxh 10 months ago
parent
commit
052fb57611
  1. 1
      shuili-system/src/main/java/com/kms/yxgh/df/mapper/DfPlanMapper.java

1
shuili-system/src/main/java/com/kms/yxgh/df/mapper/DfPlanMapper.java

@ -34,7 +34,6 @@ public interface DfPlanMapper extends BaseMapper<DfPlan> {
"(select count(1) from bs_sgc_df_xsjhxq su where su.plan_id = p.id) as item_count " + "(select count(1) from bs_sgc_df_xsjhxq su where su.plan_id = p.id) as item_count " +
"FROM bs_sgc_df_xsjh p " + "FROM bs_sgc_df_xsjh p " +
"Left JOIN att_dike_base df ON p.dike_code = df.dike_code and df.expr_date is null " + "Left JOIN att_dike_base df ON p.dike_code = df.dike_code and df.expr_date is null " +
"Left JOIN bs_sgc_df_fzr fzr ON p.dike_code = fzr.dike_code and fzr.type = 0 " +
"Left JOIN bs_sgc_df_xsjhzx op ON op.plan_id = p.id " + "Left JOIN bs_sgc_df_xsjhzx op ON op.plan_id = p.id " +
"WHERE 1=1 " + "WHERE 1=1 " +
"<if test='dto != null and dto.dikeCode != null and dto.dikeCode != \"\"'>" + "<if test='dto != null and dto.dikeCode != null and dto.dikeCode != \"\"'>" +

Loading…
Cancel
Save