|
@@ -110,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPdmWorkPlanVo">
|
|
<sql id="selectPdmWorkPlanVo">
|
|
- select id, uuid, week_plan_no, week_plan_id, proj_nm, proj_id, src_id, plan_nm, submit_org_nm, submit_org_id, org_sort, mgmt_org_nm, mgmt_org_id, blg_op_maint_city_org_id, blg_const_city_org_id, ovhaul_const_org_nm, ovhaul_const_org_id, op_maint_org_nm, op_maint_org_id, subs_or_line_nm, subs_or_line_id, op_risk_lvl_cd, op_risk_lvl_dsc, elecgd_risk_lvl_cd, elecgd_risk_lvl_dsc, volt_lvl_cd, volt_lvl_dsc, major_typ_cd, major_typ_dsc, op_typ_cd, op_typ_dsc, workticket_typ_cd, workticket_typ_dsc, poweroff_typ_cd, poweroff_typ_dsc, is_energized_op_cd, is_energized_op_dsc, plan_start_wk_tm, plan_end_tm, op_content, chg_scheme_dsc, op_addr, city_adm_addr, county_adm_addr, detl_pos, landmark_archit, work_team_nm, work_team_id, main_busi_org_op_num, outsourcing_org_op_num, industry_org_op_num, work_princip_nm, work_princip_id, work_princip_contact_mode, major_mgmt_dept, build_mgmt_org_nm, const_org_nm, const_org_id, const_org_cate_cd, const_org_cate_dsc, scntrct_org_nm, scntrct_org_id, scntrct_org_nature_cd, scntrct_org_nature_dsc, inspect_org_nm, inspect_org_id, poweroff_range, supervises_check, scene_supervises, scene_guardianship, release_st_cd, release_st_dsc, release_tm, release_pes, release_person_id, is_release_intime_cd, plan_exec_st_cd, is_chg_more_cd, is_chg_more_dsc, del_mark_cd, del_mark_dsc, bind_qt, is_wear_safetyhat, work_src, create_tm, more_new_tm, plan_typ_cd, plan_typ_dsc, std_org_no, std_org_nm, std_city_org_nm, data_dt, etl_tm, par_mon, std_city_org_no, plan_exec_st_dsc, create_by, create_time, update_by, update_time from pdm_work_plan
|
|
|
|
|
|
+ select id, uuid, week_plan_no, week_plan_id, proj_nm, proj_id, src_id, plan_nm, submit_org_nm, submit_org_id, org_sort, mgmt_org_nm, mgmt_org_id, blg_op_maint_city_org_id, blg_const_city_org_id, ovhaul_const_org_nm, ovhaul_const_org_id, op_maint_org_nm, op_maint_org_id, subs_or_line_nm, subs_or_line_id, op_risk_lvl_cd, op_risk_lvl_dsc, elecgd_risk_lvl_cd, elecgd_risk_lvl_dsc, volt_lvl_cd, volt_lvl_dsc, major_typ_cd, major_typ_dsc, op_typ_cd, op_typ_dsc, workticket_typ_cd, workticket_typ_dsc, poweroff_typ_cd, poweroff_typ_dsc, is_energized_op_cd, is_energized_op_dsc, plan_start_wk_tm, plan_end_tm, op_content, chg_scheme_dsc, op_addr, city_adm_addr, county_adm_addr, detl_pos, landmark_archit, work_team_nm, work_team_id, main_busi_org_op_num, outsourcing_org_op_num, industry_org_op_num, work_princip_nm, work_princip_id, work_princip_contact_mode, major_mgmt_dept, build_mgmt_org_nm, const_org_nm, const_org_id, const_org_cate_cd, const_org_cate_dsc, scntrct_org_nm, scntrct_org_id, scntrct_org_nature_cd, scntrct_org_nature_dsc, inspect_org_nm, inspect_org_id, poweroff_range, supervises_check, scene_supervises, scene_guardianship, release_st_cd, release_st_dsc, release_tm, release_pes, release_person_id, is_release_intime_cd, plan_exec_st_cd, is_chg_more_cd, is_chg_more_dsc, del_mark_cd, del_mark_dsc, bind_qt, is_wear_safetyhat, work_src, create_tm, more_new_tm, plan_typ_cd, plan_typ_dsc, std_org_no, std_org_nm, std_city_org_nm, data_dt, etl_tm, par_mon, std_city_org_no, plan_exec_st_dsc,plan_reason,cancel_reason,risk_type,create_by, create_time, update_by, update_time from pdm_work_plan
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectPdmWorkPlanList" parameterType="com.ruoyi.powerdistribution.domain.dto.PdmWorkPlanDTO" resultMap="PdmWorkPlanResult">
|
|
<select id="selectPdmWorkPlanList" parameterType="com.ruoyi.powerdistribution.domain.dto.PdmWorkPlanDTO" resultMap="PdmWorkPlanResult">
|
|
@@ -211,6 +211,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="parMon != null and parMon != ''"> and par_mon = #{parMon}</if>
|
|
<if test="parMon != null and parMon != ''"> and par_mon = #{parMon}</if>
|
|
<if test="stdCityOrgNo != null and stdCityOrgNo != ''"> and std_city_org_no = #{stdCityOrgNo}</if>
|
|
<if test="stdCityOrgNo != null and stdCityOrgNo != ''"> and std_city_org_no = #{stdCityOrgNo}</if>
|
|
<if test="planExecStDsc != null and planExecStDsc != ''"> and plan_exec_st_dsc = #{planExecStDsc}</if>
|
|
<if test="planExecStDsc != null and planExecStDsc != ''"> and plan_exec_st_dsc = #{planExecStDsc}</if>
|
|
|
|
+ <if test="riskType != null and riskType != ''"> and risk_type = #{riskType}</if>
|
|
|
|
|
|
<if test="startDate != null and startDate != ''">
|
|
<if test="startDate != null and startDate != ''">
|
|
and date_format(plan_start_wk_tm,'%Y%m%d') >= #{startDate}
|
|
and date_format(plan_start_wk_tm,'%Y%m%d') >= #{startDate}
|
|
@@ -225,7 +226,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
and volt_lvl_cd not in ('2001008','2001009')
|
|
and volt_lvl_cd not in ('2001008','2001009')
|
|
and not (is_energized_op_cd = '2006001' and poweroff_typ_cd = '2005002' and workticket_typ_cd = '2008015')
|
|
and not (is_energized_op_cd = '2006001' and poweroff_typ_cd = '2005002' and workticket_typ_cd = '2008015')
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
|
|
+ <if test="riskFlag != null and riskFlag == '1'">
|
|
|
|
+ and risk_type != '0'
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -539,6 +542,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="stdCityOrgNo != null">std_city_org_no = #{stdCityOrgNo},</if>
|
|
<if test="stdCityOrgNo != null">std_city_org_no = #{stdCityOrgNo},</if>
|
|
<if test="planExecStDsc != null">plan_exec_st_dsc = #{planExecStDsc},</if>
|
|
<if test="planExecStDsc != null">plan_exec_st_dsc = #{planExecStDsc},</if>
|
|
<if test="cancelReason != null">cancel_reason = #{cancelReason},</if>
|
|
<if test="cancelReason != null">cancel_reason = #{cancelReason},</if>
|
|
|
|
+ <if test="riskType != null and riskType != ''">risk_type = #{riskType}</if>
|
|
<if test="planReason != null">plan_reason = #{planReason},</if>
|
|
<if test="planReason != null">plan_reason = #{planReason},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|