|
@@ -0,0 +1,293 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.ruoyi.powerdistribution.mapper.PdmWorkCompleStatisticsMapper">
|
|
|
+
|
|
|
+ <resultMap type="PdmWorkCompleStatistics" id="PdmWorkCompleStatisticsResult">
|
|
|
+ <result property="batchId" column="batch_id" />
|
|
|
+ <result property="batchName" column="batch_name" />
|
|
|
+ <result property="batchCode" column="batch_code" />
|
|
|
+ <result property="planYear" column="plan_year" />
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="proCode" column="pro_code" />
|
|
|
+ <result property="proName" column="pro_name" />
|
|
|
+ <result property="sortSerial" column="sort_serial" />
|
|
|
+ <result property="smallVillageName" column="small_village_name" />
|
|
|
+ <result property="villageName" column="village_name" />
|
|
|
+ <result property="completeFlag" column="complete_flag" />
|
|
|
+ <result property="proCategory" column="pro_category" />
|
|
|
+ <result property="lineCableNewPlanQt" column="line_cable_new_plan_qt" />
|
|
|
+ <result property="lineCableNewAccuQt" column="line_cable_new_accu_qt" />
|
|
|
+ <result property="lineOverhdNewPlanQt" column="line_overhd_new_plan_qt" />
|
|
|
+ <result property="lineOverhdNewAccuQt" column="line_overhd_new_accu_qt" />
|
|
|
+ <result property="distTransNewPlanQt" column="dist_trans_new_plan_qt" />
|
|
|
+ <result property="distTransNewAccuQt" column="dist_trans_new_accu_qt" />
|
|
|
+ <result property="lowVoltLinePlanQt" column="low_volt_line_plan_qt" />
|
|
|
+ <result property="lowVoltLineAccuQt" column="low_volt_line_accu_qt" />
|
|
|
+ <result property="towerPlanQt" column="tower_plan_qt" />
|
|
|
+ <result property="towerAccuQt" column="tower_accu_qt" />
|
|
|
+ <result property="ringCabinetPlanQt" column="ring_cabinet_plan_qt" />
|
|
|
+ <result property="ringCabinetAccuQt" column="ring_cabinet_accu_qt" />
|
|
|
+ <result property="poleTabPlanQt" column="pole_tab_plan_qt" />
|
|
|
+ <result property="poleTabAccuQt" column="pole_tab_accu_qt" />
|
|
|
+ <result property="stdOrgNo" column="std_org_no" />
|
|
|
+ <result property="stdOrgNm" column="std_org_nm" />
|
|
|
+ <result property="stdCityOrgNo" column="std_city_org_no" />
|
|
|
+ <result property="stdCityOrgNm" column="std_city_org_nm" />
|
|
|
+ <result property="stdCountyOrgNo" column="std_county_org_no" />
|
|
|
+ <result property="stdCountyOrgNm" column="std_county_org_nm" />
|
|
|
+ <result property="dataDt" column="data_dt" />
|
|
|
+ <result property="etlTm" column="etl_tm" />
|
|
|
+
|
|
|
+ <result property="lineCableNewAccuQtWork" column="line_cable_new_accu_qt_work" />
|
|
|
+ <result property="lineOverhdNewAccuQtWork" column="line_overhd_new_accu_qt_work" />
|
|
|
+ <result property="distTransNewAccuQtWork" column="dist_trans_new_accu_qt_work" />
|
|
|
+ <result property="lowVoltLineAccuQtWork" column="low_volt_line_accu_qt_work" />
|
|
|
+ <result property="towerAccuQtWork" column="tower_accu_qt_work" />
|
|
|
+ <result property="ringCabinetAccuQtWork" column="ring_cabinet_accu_qt_work" />
|
|
|
+ <result property="poleTabAccuQtWork" column="pole_tab_accu_qt_work" />
|
|
|
+
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectPdmWorkCompleStatisticsVo">
|
|
|
+ select batch_id, batch_name, batch_code, plan_year, id, pro_code, pro_name, sort_serial, small_village_name, village_name, complete_flag, pro_category, line_cable_new_plan_qt, line_cable_new_accu_qt, line_overhd_new_plan_qt, line_overhd_new_accu_qt, dist_trans_new_plan_qt, dist_trans_new_accu_qt, low_volt_line_plan_qt, low_volt_line_accu_qt, tower_plan_qt, tower_accu_qt, ring_cabinet_plan_qt, ring_cabinet_accu_qt, pole_tab_plan_qt, pole_tab_accu_qt, std_org_no, std_org_nm, std_city_org_no, std_city_org_nm, std_county_org_no, std_county_org_nm, data_dt, etl_tm from pdm_work_comple_statistics
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectPdmWorkCompleStatisticsList" parameterType="PdmWorkCompleStatistics" resultMap="PdmWorkCompleStatisticsResult">
|
|
|
+ <include refid="selectPdmWorkCompleStatisticsVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="batchId != null and batchId != ''"> and batch_id = #{batchId}</if>
|
|
|
+ <if test="batchName != null and batchName != ''"> and batch_name like concat('%', #{batchName}, '%')</if>
|
|
|
+ <if test="batchCode != null and batchCode != ''"> and batch_code = #{batchCode}</if>
|
|
|
+ <if test="planYear != null and planYear != ''"> and plan_year = #{planYear}</if>
|
|
|
+ <if test="proCode != null and proCode != ''"> and pro_code = #{proCode}</if>
|
|
|
+ <if test="proName != null and proName != ''"> and pro_name like concat('%', #{proName}, '%')</if>
|
|
|
+ <if test="sortSerial != null and sortSerial != ''"> and sort_serial = #{sortSerial}</if>
|
|
|
+ <if test="smallVillageName != null and smallVillageName != ''"> and small_village_name like concat('%', #{smallVillageName}, '%')</if>
|
|
|
+ <if test="villageName != null and villageName != ''"> and village_name like concat('%', #{villageName}, '%')</if>
|
|
|
+ <if test="completeFlag != null and completeFlag != ''"> and complete_flag = #{completeFlag}</if>
|
|
|
+ <if test="proCategory != null and proCategory != ''"> and pro_category = #{proCategory}</if>
|
|
|
+ <if test="lineCableNewPlanQt != null "> and line_cable_new_plan_qt = #{lineCableNewPlanQt}</if>
|
|
|
+ <if test="lineCableNewAccuQt != null "> and line_cable_new_accu_qt = #{lineCableNewAccuQt}</if>
|
|
|
+ <if test="lineOverhdNewPlanQt != null "> and line_overhd_new_plan_qt = #{lineOverhdNewPlanQt}</if>
|
|
|
+ <if test="lineOverhdNewAccuQt != null "> and line_overhd_new_accu_qt = #{lineOverhdNewAccuQt}</if>
|
|
|
+ <if test="distTransNewPlanQt != null "> and dist_trans_new_plan_qt = #{distTransNewPlanQt}</if>
|
|
|
+ <if test="distTransNewAccuQt != null "> and dist_trans_new_accu_qt = #{distTransNewAccuQt}</if>
|
|
|
+ <if test="lowVoltLinePlanQt != null "> and low_volt_line_plan_qt = #{lowVoltLinePlanQt}</if>
|
|
|
+ <if test="lowVoltLineAccuQt != null "> and low_volt_line_accu_qt = #{lowVoltLineAccuQt}</if>
|
|
|
+ <if test="towerPlanQt != null "> and tower_plan_qt = #{towerPlanQt}</if>
|
|
|
+ <if test="towerAccuQt != null "> and tower_accu_qt = #{towerAccuQt}</if>
|
|
|
+ <if test="ringCabinetPlanQt != null "> and ring_cabinet_plan_qt = #{ringCabinetPlanQt}</if>
|
|
|
+ <if test="ringCabinetAccuQt != null "> and ring_cabinet_accu_qt = #{ringCabinetAccuQt}</if>
|
|
|
+ <if test="poleTabPlanQt != null "> and pole_tab_plan_qt = #{poleTabPlanQt}</if>
|
|
|
+ <if test="poleTabAccuQt != null "> and pole_tab_accu_qt = #{poleTabAccuQt}</if>
|
|
|
+ <if test="stdOrgNo != null and stdOrgNo != ''"> and std_org_no = #{stdOrgNo}</if>
|
|
|
+ <if test="stdOrgNm != null and stdOrgNm != ''"> and std_org_nm = #{stdOrgNm}</if>
|
|
|
+ <if test="stdCityOrgNo != null and stdCityOrgNo != ''"> and std_city_org_no = #{stdCityOrgNo}</if>
|
|
|
+ <if test="stdCityOrgNm != null and stdCityOrgNm != ''"> and std_city_org_nm = #{stdCityOrgNm}</if>
|
|
|
+ <if test="stdCountyOrgNo != null and stdCountyOrgNo != ''"> and std_county_org_no = #{stdCountyOrgNo}</if>
|
|
|
+ <if test="stdCountyOrgNm != null and stdCountyOrgNm != ''"> and std_county_org_nm = #{stdCountyOrgNm}</if>
|
|
|
+ <if test="dataDt != null and dataDt != ''"> and data_dt = #{dataDt}</if>
|
|
|
+ <if test="etlTm != null and etlTm != ''"> and etl_tm = #{etlTm}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectPdmWorkCompleStatistics" parameterType="PdmWorkCompleStatistics" resultType="com.ruoyi.powerdistribution.domain.vo.PdmWorkCompleStatisticsVO">
|
|
|
+
|
|
|
+ select batch_id, batch_name, batch_code, plan_year, t1.id, pro_code, pro_name, sort_serial, small_village_name, village_name, complete_flag, pro_category, line_cable_new_plan_qt, line_cable_new_accu_qt, line_overhd_new_plan_qt, line_overhd_new_accu_qt, dist_trans_new_plan_qt, dist_trans_new_accu_qt, low_volt_line_plan_qt, low_volt_line_accu_qt, tower_plan_qt, tower_accu_qt, ring_cabinet_plan_qt, ring_cabinet_accu_qt, pole_tab_plan_qt, pole_tab_accu_qt, std_org_no, std_org_nm, std_city_org_no, std_city_org_nm, std_county_org_no, std_county_org_nm, data_dt, etl_tm,
|
|
|
+ IFNULL(t2.line_cable_new_accu_qt_work,0) line_cable_new_accu_qt_work,
|
|
|
+ IFNULL(t2.line_overhd_new_accu_qt_work,0) line_overhd_new_accu_qt_work,
|
|
|
+ IFNULL(t2.dist_trans_new_accu_qt_work,0) dist_trans_new_accu_qt_work,
|
|
|
+ IFNULL(t2.low_volt_line_accu_qt_work,0) low_volt_line_accu_qt_work,
|
|
|
+ IFNULL(t2.ring_cabinet_accu_qt_work,0) ring_cabinet_accu_qt_work,
|
|
|
+ IFNULL(t2.pole_tab_accu_qt_work,0) pole_tab_accu_qt_work
|
|
|
+ from pdm_work_comple_statistics t1
|
|
|
+ LEFT JOIN (
|
|
|
+ select proj_id,
|
|
|
+ sum(if(volt_lvl_cd = '2001008' and ((op_content like '%新建%' and op_content like '%电缆%') or (op_content like '%更换%' and op_content like '%电缆%')or (op_content like '%拆除%' and op_content like '%电缆%')),1,0)) line_cable_new_accu_qt_work,
|
|
|
+ sum(if(volt_lvl_cd = '2001008' and ((op_content like '%新建%' and op_content like '%导线%') or (op_content like '%更换%' and op_content like '%导线%')or (op_content like '%拆除%' and op_content like '%导线%')),1,0)) line_overhd_new_accu_qt_work,
|
|
|
+ sum(if(volt_lvl_cd = '2001008' and ((op_content like '%更换%' and op_content like '%变压器%') or (op_content like '%更换%' and op_content like '%变压器%')or (op_content like '%拆除%' and op_content like '%变压器%')),1,0)) dist_trans_new_accu_qt_work,
|
|
|
+ sum(if(volt_lvl_cd = '2001009' and ((op_content like '%新建%' and op_content like '%电缆%') or (op_content like '%更换%' and op_content like '%电缆%')or (op_content like '%拆除%' and op_content like '%电缆%')),1,0)) low_volt_line_accu_qt_work,
|
|
|
+ sum(if((op_content like '%新建%' and op_content like '%环网%') or (op_content like '%导线%' and op_content like '%环网%')or (op_content like '%拆除%' and op_content like '%环网%'),1,0)) ring_cabinet_accu_qt_work,
|
|
|
+ sum(if(volt_lvl_cd = '2001008' and
|
|
|
+ ((op_content like '%新建%' and op_content like '%断路器%') or (op_content like '%更换%' and op_content like '%断路器%') or (op_content like '%拆除%' and op_content like '%断路器%')
|
|
|
+ or (op_content like '%新建%' and op_content like '%开关%') or (op_content like '%更换%' and op_content like '%开关%') or (op_content like '%拆除%' and op_content like '%开关%')
|
|
|
+ or(op_content like '%新建%' and op_content like '%刀闸%') or (op_content like '%更换%' and op_content like '%刀闸%') or (op_content like '%拆除%' and op_content like '%刀闸%')
|
|
|
+ or (op_content like '%新建%' and op_content like '%避雷器%') or (op_content like '%更换%' and op_content like '%避雷器%') or (op_content like '%拆除%' and op_content like '%避雷器%')
|
|
|
+ ),1,0)) pole_tab_accu_qt_work
|
|
|
+ FROM pdm_work_plan
|
|
|
+ GROUP BY proj_id
|
|
|
+ ) t2 on t1.id = t2.proj_id
|
|
|
+
|
|
|
+ <where>
|
|
|
+ <if test="batchId != null and batchId != ''"> and batch_id = #{batchId}</if>
|
|
|
+ <if test="batchName != null and batchName != ''"> and batch_name like concat('%', #{batchName}, '%')</if>
|
|
|
+ <if test="batchCode != null and batchCode != ''"> and batch_code = #{batchCode}</if>
|
|
|
+ <if test="planYear != null and planYear != ''"> and plan_year = #{planYear}</if>
|
|
|
+ <if test="proCode != null and proCode != ''"> and pro_code = #{proCode}</if>
|
|
|
+ <if test="proName != null and proName != ''"> and pro_name like concat('%', #{proName}, '%')</if>
|
|
|
+ <if test="sortSerial != null and sortSerial != ''"> and sort_serial = #{sortSerial}</if>
|
|
|
+ <if test="smallVillageName != null and smallVillageName != ''"> and small_village_name like concat('%', #{smallVillageName}, '%')</if>
|
|
|
+ <if test="villageName != null and villageName != ''"> and village_name like concat('%', #{villageName}, '%')</if>
|
|
|
+ <if test="completeFlag != null and completeFlag != ''"> and complete_flag = #{completeFlag}</if>
|
|
|
+ <if test="proCategory != null and proCategory != ''"> and pro_category = #{proCategory}</if>
|
|
|
+ <if test="lineCableNewPlanQt != null "> and line_cable_new_plan_qt = #{lineCableNewPlanQt}</if>
|
|
|
+ <if test="lineCableNewAccuQt != null "> and line_cable_new_accu_qt = #{lineCableNewAccuQt}</if>
|
|
|
+ <if test="lineOverhdNewPlanQt != null "> and line_overhd_new_plan_qt = #{lineOverhdNewPlanQt}</if>
|
|
|
+ <if test="lineOverhdNewAccuQt != null "> and line_overhd_new_accu_qt = #{lineOverhdNewAccuQt}</if>
|
|
|
+ <if test="distTransNewPlanQt != null "> and dist_trans_new_plan_qt = #{distTransNewPlanQt}</if>
|
|
|
+ <if test="distTransNewAccuQt != null "> and dist_trans_new_accu_qt = #{distTransNewAccuQt}</if>
|
|
|
+ <if test="lowVoltLinePlanQt != null "> and low_volt_line_plan_qt = #{lowVoltLinePlanQt}</if>
|
|
|
+ <if test="lowVoltLineAccuQt != null "> and low_volt_line_accu_qt = #{lowVoltLineAccuQt}</if>
|
|
|
+ <if test="towerPlanQt != null "> and tower_plan_qt = #{towerPlanQt}</if>
|
|
|
+ <if test="towerAccuQt != null "> and tower_accu_qt = #{towerAccuQt}</if>
|
|
|
+ <if test="ringCabinetPlanQt != null "> and ring_cabinet_plan_qt = #{ringCabinetPlanQt}</if>
|
|
|
+ <if test="ringCabinetAccuQt != null "> and ring_cabinet_accu_qt = #{ringCabinetAccuQt}</if>
|
|
|
+ <if test="poleTabPlanQt != null "> and pole_tab_plan_qt = #{poleTabPlanQt}</if>
|
|
|
+ <if test="poleTabAccuQt != null "> and pole_tab_accu_qt = #{poleTabAccuQt}</if>
|
|
|
+ <if test="stdOrgNo != null and stdOrgNo != ''"> and std_org_no = #{stdOrgNo}</if>
|
|
|
+ <if test="stdOrgNm != null and stdOrgNm != ''"> and std_org_nm = #{stdOrgNm}</if>
|
|
|
+ <if test="stdCityOrgNo != null and stdCityOrgNo != ''"> and std_city_org_no = #{stdCityOrgNo}</if>
|
|
|
+ <if test="stdCityOrgNm != null and stdCityOrgNm != ''"> and std_city_org_nm = #{stdCityOrgNm}</if>
|
|
|
+ <if test="stdCountyOrgNo != null and stdCountyOrgNo != ''"> and std_county_org_no = #{stdCountyOrgNo}</if>
|
|
|
+ <if test="stdCountyOrgNm != null and stdCountyOrgNm != ''"> and std_county_org_nm = #{stdCountyOrgNm}</if>
|
|
|
+ <if test="dataDt != null and dataDt != ''"> and data_dt = #{dataDt}</if>
|
|
|
+ <if test="etlTm != null and etlTm != ''"> and etl_tm = #{etlTm}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectPdmWorkCompleStatisticsById" parameterType="String" resultMap="PdmWorkCompleStatisticsResult">
|
|
|
+ <include refid="selectPdmWorkCompleStatisticsVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertPdmWorkCompleStatistics" parameterType="PdmWorkCompleStatistics">
|
|
|
+ insert into pdm_work_comple_statistics
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="batchId != null">batch_id,</if>
|
|
|
+ <if test="batchName != null">batch_name,</if>
|
|
|
+ <if test="batchCode != null">batch_code,</if>
|
|
|
+ <if test="planYear != null">plan_year,</if>
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="proCode != null">pro_code,</if>
|
|
|
+ <if test="proName != null">pro_name,</if>
|
|
|
+ <if test="sortSerial != null">sort_serial,</if>
|
|
|
+ <if test="smallVillageName != null">small_village_name,</if>
|
|
|
+ <if test="villageName != null">village_name,</if>
|
|
|
+ <if test="completeFlag != null">complete_flag,</if>
|
|
|
+ <if test="proCategory != null">pro_category,</if>
|
|
|
+ <if test="lineCableNewPlanQt != null">line_cable_new_plan_qt,</if>
|
|
|
+ <if test="lineCableNewAccuQt != null">line_cable_new_accu_qt,</if>
|
|
|
+ <if test="lineOverhdNewPlanQt != null">line_overhd_new_plan_qt,</if>
|
|
|
+ <if test="lineOverhdNewAccuQt != null">line_overhd_new_accu_qt,</if>
|
|
|
+ <if test="distTransNewPlanQt != null">dist_trans_new_plan_qt,</if>
|
|
|
+ <if test="distTransNewAccuQt != null">dist_trans_new_accu_qt,</if>
|
|
|
+ <if test="lowVoltLinePlanQt != null">low_volt_line_plan_qt,</if>
|
|
|
+ <if test="lowVoltLineAccuQt != null">low_volt_line_accu_qt,</if>
|
|
|
+ <if test="towerPlanQt != null">tower_plan_qt,</if>
|
|
|
+ <if test="towerAccuQt != null">tower_accu_qt,</if>
|
|
|
+ <if test="ringCabinetPlanQt != null">ring_cabinet_plan_qt,</if>
|
|
|
+ <if test="ringCabinetAccuQt != null">ring_cabinet_accu_qt,</if>
|
|
|
+ <if test="poleTabPlanQt != null">pole_tab_plan_qt,</if>
|
|
|
+ <if test="poleTabAccuQt != null">pole_tab_accu_qt,</if>
|
|
|
+ <if test="stdOrgNo != null">std_org_no,</if>
|
|
|
+ <if test="stdOrgNm != null">std_org_nm,</if>
|
|
|
+ <if test="stdCityOrgNo != null">std_city_org_no,</if>
|
|
|
+ <if test="stdCityOrgNm != null">std_city_org_nm,</if>
|
|
|
+ <if test="stdCountyOrgNo != null">std_county_org_no,</if>
|
|
|
+ <if test="stdCountyOrgNm != null">std_county_org_nm,</if>
|
|
|
+ <if test="dataDt != null">data_dt,</if>
|
|
|
+ <if test="etlTm != null">etl_tm,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="batchId != null">#{batchId},</if>
|
|
|
+ <if test="batchName != null">#{batchName},</if>
|
|
|
+ <if test="batchCode != null">#{batchCode},</if>
|
|
|
+ <if test="planYear != null">#{planYear},</if>
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="proCode != null">#{proCode},</if>
|
|
|
+ <if test="proName != null">#{proName},</if>
|
|
|
+ <if test="sortSerial != null">#{sortSerial},</if>
|
|
|
+ <if test="smallVillageName != null">#{smallVillageName},</if>
|
|
|
+ <if test="villageName != null">#{villageName},</if>
|
|
|
+ <if test="completeFlag != null">#{completeFlag},</if>
|
|
|
+ <if test="proCategory != null">#{proCategory},</if>
|
|
|
+ <if test="lineCableNewPlanQt != null">#{lineCableNewPlanQt},</if>
|
|
|
+ <if test="lineCableNewAccuQt != null">#{lineCableNewAccuQt},</if>
|
|
|
+ <if test="lineOverhdNewPlanQt != null">#{lineOverhdNewPlanQt},</if>
|
|
|
+ <if test="lineOverhdNewAccuQt != null">#{lineOverhdNewAccuQt},</if>
|
|
|
+ <if test="distTransNewPlanQt != null">#{distTransNewPlanQt},</if>
|
|
|
+ <if test="distTransNewAccuQt != null">#{distTransNewAccuQt},</if>
|
|
|
+ <if test="lowVoltLinePlanQt != null">#{lowVoltLinePlanQt},</if>
|
|
|
+ <if test="lowVoltLineAccuQt != null">#{lowVoltLineAccuQt},</if>
|
|
|
+ <if test="towerPlanQt != null">#{towerPlanQt},</if>
|
|
|
+ <if test="towerAccuQt != null">#{towerAccuQt},</if>
|
|
|
+ <if test="ringCabinetPlanQt != null">#{ringCabinetPlanQt},</if>
|
|
|
+ <if test="ringCabinetAccuQt != null">#{ringCabinetAccuQt},</if>
|
|
|
+ <if test="poleTabPlanQt != null">#{poleTabPlanQt},</if>
|
|
|
+ <if test="poleTabAccuQt != null">#{poleTabAccuQt},</if>
|
|
|
+ <if test="stdOrgNo != null">#{stdOrgNo},</if>
|
|
|
+ <if test="stdOrgNm != null">#{stdOrgNm},</if>
|
|
|
+ <if test="stdCityOrgNo != null">#{stdCityOrgNo},</if>
|
|
|
+ <if test="stdCityOrgNm != null">#{stdCityOrgNm},</if>
|
|
|
+ <if test="stdCountyOrgNo != null">#{stdCountyOrgNo},</if>
|
|
|
+ <if test="stdCountyOrgNm != null">#{stdCountyOrgNm},</if>
|
|
|
+ <if test="dataDt != null">#{dataDt},</if>
|
|
|
+ <if test="etlTm != null">#{etlTm},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updatePdmWorkCompleStatistics" parameterType="PdmWorkCompleStatistics">
|
|
|
+ update pdm_work_comple_statistics
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="batchId != null">batch_id = #{batchId},</if>
|
|
|
+ <if test="batchName != null">batch_name = #{batchName},</if>
|
|
|
+ <if test="batchCode != null">batch_code = #{batchCode},</if>
|
|
|
+ <if test="planYear != null">plan_year = #{planYear},</if>
|
|
|
+ <if test="proCode != null">pro_code = #{proCode},</if>
|
|
|
+ <if test="proName != null">pro_name = #{proName},</if>
|
|
|
+ <if test="sortSerial != null">sort_serial = #{sortSerial},</if>
|
|
|
+ <if test="smallVillageName != null">small_village_name = #{smallVillageName},</if>
|
|
|
+ <if test="villageName != null">village_name = #{villageName},</if>
|
|
|
+ <if test="completeFlag != null">complete_flag = #{completeFlag},</if>
|
|
|
+ <if test="proCategory != null">pro_category = #{proCategory},</if>
|
|
|
+ <if test="lineCableNewPlanQt != null">line_cable_new_plan_qt = #{lineCableNewPlanQt},</if>
|
|
|
+ <if test="lineCableNewAccuQt != null">line_cable_new_accu_qt = #{lineCableNewAccuQt},</if>
|
|
|
+ <if test="lineOverhdNewPlanQt != null">line_overhd_new_plan_qt = #{lineOverhdNewPlanQt},</if>
|
|
|
+ <if test="lineOverhdNewAccuQt != null">line_overhd_new_accu_qt = #{lineOverhdNewAccuQt},</if>
|
|
|
+ <if test="distTransNewPlanQt != null">dist_trans_new_plan_qt = #{distTransNewPlanQt},</if>
|
|
|
+ <if test="distTransNewAccuQt != null">dist_trans_new_accu_qt = #{distTransNewAccuQt},</if>
|
|
|
+ <if test="lowVoltLinePlanQt != null">low_volt_line_plan_qt = #{lowVoltLinePlanQt},</if>
|
|
|
+ <if test="lowVoltLineAccuQt != null">low_volt_line_accu_qt = #{lowVoltLineAccuQt},</if>
|
|
|
+ <if test="towerPlanQt != null">tower_plan_qt = #{towerPlanQt},</if>
|
|
|
+ <if test="towerAccuQt != null">tower_accu_qt = #{towerAccuQt},</if>
|
|
|
+ <if test="ringCabinetPlanQt != null">ring_cabinet_plan_qt = #{ringCabinetPlanQt},</if>
|
|
|
+ <if test="ringCabinetAccuQt != null">ring_cabinet_accu_qt = #{ringCabinetAccuQt},</if>
|
|
|
+ <if test="poleTabPlanQt != null">pole_tab_plan_qt = #{poleTabPlanQt},</if>
|
|
|
+ <if test="poleTabAccuQt != null">pole_tab_accu_qt = #{poleTabAccuQt},</if>
|
|
|
+ <if test="stdOrgNo != null">std_org_no = #{stdOrgNo},</if>
|
|
|
+ <if test="stdOrgNm != null">std_org_nm = #{stdOrgNm},</if>
|
|
|
+ <if test="stdCityOrgNo != null">std_city_org_no = #{stdCityOrgNo},</if>
|
|
|
+ <if test="stdCityOrgNm != null">std_city_org_nm = #{stdCityOrgNm},</if>
|
|
|
+ <if test="stdCountyOrgNo != null">std_county_org_no = #{stdCountyOrgNo},</if>
|
|
|
+ <if test="stdCountyOrgNm != null">std_county_org_nm = #{stdCountyOrgNm},</if>
|
|
|
+ <if test="dataDt != null">data_dt = #{dataDt},</if>
|
|
|
+ <if test="etlTm != null">etl_tm = #{etlTm},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deletePdmWorkCompleStatisticsById" parameterType="String">
|
|
|
+ delete from pdm_work_comple_statistics where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deletePdmWorkCompleStatisticsByIds" parameterType="String">
|
|
|
+ delete from pdm_work_comple_statistics where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+
|
|
|
+</mapper>
|