|
@@ -116,7 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<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,plan_reason,cancel_reason,risk_type,exception_type,create_by, create_time, update_by, update_time,cancel_type,temporary_type
|
|
|
- from ads_cst_hywzqlc_pdmworkplan_df
|
|
|
+ from ads_cst_hygszdbb_pdmworkplan_df
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectPdmWorkPlanList" parameterType="com.ruoyi.powerdistribution.domain.dto.PdmWorkPlanDTO" resultMap="PdmWorkPlanResult">
|
|
@@ -251,7 +251,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertPdmWorkPlan" parameterType="PdmWorkPlan" useGeneratedKeys="true" keyProperty="id">
|
|
|
- insert into ads_cst_hywzqlc_pdmworkplan_df
|
|
|
+ insert into ads_cst_hygszdbb_pdmworkplan_df
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="uuid != null">uuid,</if>
|
|
|
<if test="weekPlanNo != null">week_plan_no,</if>
|
|
@@ -457,7 +457,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</insert>
|
|
|
|
|
|
<update id="updatePdmWorkPlan" parameterType="PdmWorkPlan">
|
|
|
- update ads_cst_hywzqlc_pdmworkplan_df
|
|
|
+ update ads_cst_hygszdbb_pdmworkplan_df
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="uuid != null">uuid = #{uuid},</if>
|
|
|
<if test="weekPlanNo != null">week_plan_no = #{weekPlanNo},</if>
|
|
@@ -569,11 +569,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</update>
|
|
|
|
|
|
<delete id="deletePdmWorkPlanById" parameterType="Long">
|
|
|
- delete from ads_cst_hywzqlc_pdmworkplan_df where id = #{id}
|
|
|
+ delete from ads_cst_hygszdbb_pdmworkplan_df where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deletePdmWorkPlanByIds" parameterType="String">
|
|
|
- delete from ads_cst_hywzqlc_pdmworkplan_df where id in
|
|
|
+ delete from ads_cst_hygszdbb_pdmworkplan_df where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
@@ -583,7 +583,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select t1.role_name risk_name,IFNULL(t2.risk_num,0) risk_num from pdm_risk_role t1
|
|
|
LEFT JOIN
|
|
|
(
|
|
|
- select count(1) risk_num,risk_type from ads_cst_hywzqlc_pdmworkplan_df
|
|
|
+ select count(1) risk_num,risk_type from ads_cst_hygszdbb_pdmworkplan_df
|
|
|
where risk_type not in ('0','1')
|
|
|
and date_format(plan_start_wk_tm,'%Y%m%d') = #{date}
|
|
|
GROUP BY risk_type
|
|
@@ -594,7 +594,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from pdm_work_organ t1
|
|
|
LEFT JOIN
|
|
|
(
|
|
|
- SELECT count(1) work_num,submit_org_nm from ads_cst_hywzqlc_pdmworkplan_df
|
|
|
+ SELECT count(1) work_num,submit_org_nm from ads_cst_hygszdbb_pdmworkplan_df
|
|
|
where
|
|
|
date_format(plan_start_wk_tm,'%Y%m%d') >= #{startDate}
|
|
|
and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
|
|
@@ -602,7 +602,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
) t2 on t1.organ_name = t2.submit_org_nm
|
|
|
</select>
|
|
|
<select id="selectWorkPlanByVchicleNo" parameterType="com.ruoyi.powerdistribution.domain.dto.PdmWorkPlanDTO" resultMap="PdmWorkPlanResult">
|
|
|
- select * from ads_cst_hywzqlc_pdmworkplan_df p
|
|
|
+ select * from ads_cst_hygszdbb_pdmworkplan_df p
|
|
|
<where>
|
|
|
<if test="startDate != null and startDate!=''"> and DATE_FORMAT(plan_start_wk_tm,'%Y-%m-%d') >= #{startDate}</if>
|
|
|
<if test="endDate != null and endDate!=''"> and DATE_FORMAT(plan_end_tm,'%Y-%m-%d') <= #{endDate}</if>
|
|
@@ -617,7 +617,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
)
|
|
|
</where>
|
|
|
UNION
|
|
|
- select * from ads_cst_hywzqlc_pdmworkplan_df
|
|
|
+ select * from ads_cst_hygszdbb_pdmworkplan_df
|
|
|
<where>
|
|
|
<if test="startDate != null and startDate!=''"> and DATE_FORMAT(plan_start_wk_tm,'%Y-%m-%d') >= #{startDate}</if>
|
|
|
<if test="endDate != null and endDate!=''"> and DATE_FORMAT(plan_end_tm,'%Y-%m-%d') <= #{endDate}</if>
|
|
@@ -658,7 +658,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
submit_org_id,
|
|
|
submit_org_nm
|
|
|
from
|
|
|
- ads_cst_hywzqlc_pdmworkplan_df
|
|
|
+ ads_cst_hygszdbb_pdmworkplan_df
|
|
|
where date_format(plan_start_wk_tm,'%Y%m%d') >= #{startDate}
|
|
|
and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
|
|
|
GROUP BY submit_org_id,submit_org_nm
|
|
@@ -679,7 +679,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
sum(if(op_risk_lvl_cd = '2007005',1,0)) plan_sum_5
|
|
|
|
|
|
from
|
|
|
- ads_cst_hywzqlc_pdmworkplan_df
|
|
|
+ ads_cst_hygszdbb_pdmworkplan_df
|
|
|
where submit_org_nm = #{submitOrgNm}
|
|
|
and date_format(plan_start_wk_tm,'%Y%m%d') >= #{startDate}
|
|
|
and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}
|
|
@@ -703,7 +703,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
),1,0)) pole_tab_accu_qt_work,
|
|
|
sum(if((op_content like '%立%' and op_content like '%杆%') or (op_content like '%撤%' and op_content like '%杆%') ,0,1)) tower_accu_qt_work,
|
|
|
sum(1) work_total
|
|
|
- FROM ads_cst_hywzqlc_pdmworkplan_df
|
|
|
+ FROM ads_cst_hygszdbb_pdmworkplan_df
|
|
|
<where>
|
|
|
<if test="startDate != null and startDate!=''">and date_format(plan_start_wk_tm,'%Y%m%d') >= #{startDate}</if>
|
|
|
<if test="endDate != null and endDate!=''">and date_format(plan_start_wk_tm,'%Y%m%d') <= #{endDate}</if>
|