|
|
@ -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 " + |
|
|
|
"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 bs_sgc_df_xsjhzx op ON op.plan_id = p.id " + |
|
|
|
"WHERE 1=1 " + |
|
|
|
"<if test='dto != null and dto.dikeCode != null and dto.dikeCode != \"\"'>" + |
|
|
|
"AND p.dike_code = #{dto.dikeCode} " + |
|
|
@ -52,10 +51,11 @@ public interface DfPlanMapper extends BaseMapper<DfPlan> { |
|
|
|
"AND p.end_date <= #{dto.endTime} " + |
|
|
|
"</if>" + |
|
|
|
"<if test='dto != null and dto.userIds != null and dto.userIds.size() > 0'>" + |
|
|
|
"AND op.operator_uid IN " + |
|
|
|
"<foreach collection='dto.userIds' item='id' open='(' separator=',' close=')'>" + |
|
|
|
"#{id}" + |
|
|
|
"</foreach>" + |
|
|
|
"AND p.id in (select plan_id from bs_sgc_df_xsjhzx where operator_uid in " + |
|
|
|
"<foreach collection='dto.userIds' item='item' open='(' separator=',' close=')'> " + |
|
|
|
"#{item} " + |
|
|
|
"</foreach> " + |
|
|
|
") " + |
|
|
|
"</if>" + |
|
|
|
"ORDER BY p.create_time DESC" + |
|
|
|
"</script>") |
|
|
|