From 9a224d216652ef2d6ff2e0bd01fba69c86a3f277 Mon Sep 17 00:00:00 2001
From: yanzhaofeige <yanzhaofeige@qq.com>
Date: Fri, 11 Oct 2024 11:28:55 +0800
Subject: [PATCH] 基础表单更新

---
 cpzidc-bis/src/main/resources/mapper/bis/IdcBuildBaseMapper.xml |  233 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 233 insertions(+), 0 deletions(-)

diff --git a/cpzidc-bis/src/main/resources/mapper/bis/IdcBuildBaseMapper.xml b/cpzidc-bis/src/main/resources/mapper/bis/IdcBuildBaseMapper.xml
new file mode 100644
index 0000000..a1d9650
--- /dev/null
+++ b/cpzidc-bis/src/main/resources/mapper/bis/IdcBuildBaseMapper.xml
@@ -0,0 +1,233 @@
+<?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.odcc.cpzidc.bis.mapper.IdcBuildBaseMapper">
+    
+    <resultMap type="IdcBuildBase" id="IdcBuildBaseResult">
+        <result property="id"    column="id"    />
+        <result property="type"    column="type"    />
+        <result property="businessType"    column="business_type"    />
+        <result property="frameNum"    column="frame_num"    />
+        <result property="framePower"    column="frame_power"    />
+        <result property="name"    column="name"    />
+        <result property="province"    column="province"    />
+        <result property="city"    column="city"    />
+        <result property="area"    column="area"    />
+        <result property="address"    column="address"    />
+        <result property="addressExt"    column="address_ext"    />
+        <result property="building"    column="building"    />
+        <result property="creditCode"    column="credit_code"    />
+        <result property="mainbody"    column="mainbody"    />
+        <result property="mainbodyHeader"    column="mainbody_header"    />
+        <result property="mainbodyType"    column="mainbody_type"    />
+        <result property="investment"    column="investment"    />
+        <result property="progress"    column="progress"    />
+        <result property="productionTime"    column="production_time"    />
+        <result property="dcBuildingLevel"    column="dc_building_level"    />
+        <result property="dcAllArea"    column="dc_all_area"    />
+        <result property="dcItArea"    column="dc_it_area"    />
+        <result property="buildingType"    column="building_type"    />
+        <result property="seismicLevel"    column="seismic_level"    />
+        <result property="useType"    column="use_type"    />
+        <result property="pueDesign"    column="pue_design"    />
+        <result property="waterDesign"    column="water_design"    />
+        <result property="netOperator"    column="net_operator"    />
+        <result property="netOperatorOther"    column="net_operator_other"    />
+        <result property="netLevel"    column="net_level"    />
+        <result property="remark"    column="remark"    />
+        <result property="sort"    column="sort_"    />
+        <result property="message"    column="message"    />
+        <result property="state"    column="state"    />
+        <result property="isEnable"    column="is_enable"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="createUser"    column="create_user"    />
+    </resultMap>
+
+    <sql id="selectIdcBuildBaseVo">
+        select id, type, business_type, frame_num, frame_power, name, province, city, area, address, address_ext, building, credit_code, mainbody, mainbody_header, mainbody_type, investment, progress, production_time, dc_building_level, dc_all_area, dc_it_area, building_type, seismic_level, use_type, pue_design, water_design, net_operator, net_operator_other, net_level, remark, sort_, message, state, is_enable, create_time, update_time, create_user from idc_build_base
+    </sql>
+
+    <select id="selectIdcBuildBaseList" parameterType="IdcBuildBase" resultMap="IdcBuildBaseResult">
+        <include refid="selectIdcBuildBaseVo"/>
+        <where>  
+            <if test="type != null "> and type = #{type}</if>
+            <if test="businessType != null "> and business_type = #{businessType}</if>
+            <if test="frameNum != null "> and frame_num = #{frameNum}</if>
+            <if test="framePower != null "> and frame_power = #{framePower}</if>
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="province != null  and province != ''"> and province = #{province}</if>
+            <if test="city != null  and city != ''"> and city = #{city}</if>
+            <if test="area != null  and area != ''"> and area = #{area}</if>
+            <if test="address != null  and address != ''"> and address = #{address}</if>
+            <if test="addressExt != null  and addressExt != ''"> and address_ext = #{addressExt}</if>
+            <if test="building != null  and building != ''"> and building = #{building}</if>
+            <if test="creditCode != null  and creditCode != ''"> and credit_code = #{creditCode}</if>
+            <if test="mainbody != null  and mainbody != ''"> and mainbody = #{mainbody}</if>
+            <if test="mainbodyHeader != null  and mainbodyHeader != ''"> and mainbody_header = #{mainbodyHeader}</if>
+            <if test="mainbodyType != null  and mainbodyType != ''"> and mainbody_type = #{mainbodyType}</if>
+            <if test="investment != null  and investment != ''"> and investment = #{investment}</if>
+            <if test="progress != null  and progress != ''"> and progress = #{progress}</if>
+            <if test="productionTime != null  and productionTime != ''"> and production_time = #{productionTime}</if>
+            <if test="dcBuildingLevel != null  and dcBuildingLevel != ''"> and dc_building_level = #{dcBuildingLevel}</if>
+            <if test="dcAllArea != null "> and dc_all_area = #{dcAllArea}</if>
+            <if test="dcItArea != null "> and dc_it_area = #{dcItArea}</if>
+            <if test="buildingType != null  and buildingType != ''"> and building_type = #{buildingType}</if>
+            <if test="seismicLevel != null  and seismicLevel != ''"> and seismic_level = #{seismicLevel}</if>
+            <if test="useType != null  and useType != ''"> and use_type = #{useType}</if>
+            <if test="pueDesign != null "> and pue_design = #{pueDesign}</if>
+            <if test="waterDesign != null  and waterDesign != ''"> and water_design = #{waterDesign}</if>
+            <if test="netOperator != null  and netOperator != ''"> and net_operator = #{netOperator}</if>
+            <if test="netOperatorOther != null  and netOperatorOther != ''"> and net_operator_other = #{netOperatorOther}</if>
+            <if test="netLevel != null  and netLevel != ''"> and net_level = #{netLevel}</if>
+            <if test="sort != null "> and sort_ = #{sort}</if>
+            <if test="message != null  and message != ''"> and message = #{message}</if>
+            <if test="state != null "> and state = #{state}</if>
+            <if test="isEnable != null "> and is_enable = #{isEnable}</if>
+            <if test="createUser != null "> and create_user = #{createUser}</if>
+        </where>
+    </select>
+    
+    <select id="selectIdcBuildBaseById" parameterType="Long" resultMap="IdcBuildBaseResult">
+        <include refid="selectIdcBuildBaseVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertIdcBuildBase" parameterType="IdcBuildBase" useGeneratedKeys="true" keyProperty="id">
+        insert into idc_build_base
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="type != null">type,</if>
+            <if test="businessType != null">business_type,</if>
+            <if test="frameNum != null">frame_num,</if>
+            <if test="framePower != null">frame_power,</if>
+            <if test="name != null and name != ''">name,</if>
+            <if test="province != null and province != ''">province,</if>
+            <if test="city != null and city != ''">city,</if>
+            <if test="area != null and area != ''">area,</if>
+            <if test="address != null and address != ''">address,</if>
+            <if test="addressExt != null">address_ext,</if>
+            <if test="building != null and building != ''">building,</if>
+            <if test="creditCode != null and creditCode != ''">credit_code,</if>
+            <if test="mainbody != null and mainbody != ''">mainbody,</if>
+            <if test="mainbodyHeader != null and mainbodyHeader != ''">mainbody_header,</if>
+            <if test="mainbodyType != null and mainbodyType != ''">mainbody_type,</if>
+            <if test="investment != null">investment,</if>
+            <if test="progress != null and progress != ''">progress,</if>
+            <if test="productionTime != null and productionTime != ''">production_time,</if>
+            <if test="dcBuildingLevel != null and dcBuildingLevel != ''">dc_building_level,</if>
+            <if test="dcAllArea != null">dc_all_area,</if>
+            <if test="dcItArea != null">dc_it_area,</if>
+            <if test="buildingType != null and buildingType != ''">building_type,</if>
+            <if test="seismicLevel != null and seismicLevel != ''">seismic_level,</if>
+            <if test="useType != null and useType != ''">use_type,</if>
+            <if test="pueDesign != null">pue_design,</if>
+            <if test="waterDesign != null and waterDesign != ''">water_design,</if>
+            <if test="netOperator != null and netOperator != ''">net_operator,</if>
+            <if test="netOperatorOther != null">net_operator_other,</if>
+            <if test="netLevel != null and netLevel != ''">net_level,</if>
+            <if test="remark != null">remark,</if>
+            <if test="sort != null">sort_,</if>
+            <if test="message != null">message,</if>
+            <if test="state != null">state,</if>
+            <if test="isEnable != null">is_enable,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="createUser != null">create_user,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="type != null">#{type},</if>
+            <if test="businessType != null">#{businessType},</if>
+            <if test="frameNum != null">#{frameNum},</if>
+            <if test="framePower != null">#{framePower},</if>
+            <if test="name != null and name != ''">#{name},</if>
+            <if test="province != null and province != ''">#{province},</if>
+            <if test="city != null and city != ''">#{city},</if>
+            <if test="area != null and area != ''">#{area},</if>
+            <if test="address != null and address != ''">#{address},</if>
+            <if test="addressExt != null">#{addressExt},</if>
+            <if test="building != null and building != ''">#{building},</if>
+            <if test="creditCode != null and creditCode != ''">#{creditCode},</if>
+            <if test="mainbody != null and mainbody != ''">#{mainbody},</if>
+            <if test="mainbodyHeader != null and mainbodyHeader != ''">#{mainbodyHeader},</if>
+            <if test="mainbodyType != null and mainbodyType != ''">#{mainbodyType},</if>
+            <if test="investment != null">#{investment},</if>
+            <if test="progress != null and progress != ''">#{progress},</if>
+            <if test="productionTime != null and productionTime != ''">#{productionTime},</if>
+            <if test="dcBuildingLevel != null and dcBuildingLevel != ''">#{dcBuildingLevel},</if>
+            <if test="dcAllArea != null">#{dcAllArea},</if>
+            <if test="dcItArea != null">#{dcItArea},</if>
+            <if test="buildingType != null and buildingType != ''">#{buildingType},</if>
+            <if test="seismicLevel != null and seismicLevel != ''">#{seismicLevel},</if>
+            <if test="useType != null and useType != ''">#{useType},</if>
+            <if test="pueDesign != null">#{pueDesign},</if>
+            <if test="waterDesign != null and waterDesign != ''">#{waterDesign},</if>
+            <if test="netOperator != null and netOperator != ''">#{netOperator},</if>
+            <if test="netOperatorOther != null">#{netOperatorOther},</if>
+            <if test="netLevel != null and netLevel != ''">#{netLevel},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="sort != null">#{sort},</if>
+            <if test="message != null">#{message},</if>
+            <if test="state != null">#{state},</if>
+            <if test="isEnable != null">#{isEnable},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="createUser != null">#{createUser},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIdcBuildBase" parameterType="IdcBuildBase">
+        update idc_build_base
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="type != null">type = #{type},</if>
+            <if test="businessType != null">business_type = #{businessType},</if>
+            <if test="frameNum != null">frame_num = #{frameNum},</if>
+            <if test="framePower != null">frame_power = #{framePower},</if>
+            <if test="name != null and name != ''">name = #{name},</if>
+            <if test="province != null and province != ''">province = #{province},</if>
+            <if test="city != null and city != ''">city = #{city},</if>
+            <if test="area != null and area != ''">area = #{area},</if>
+            <if test="address != null and address != ''">address = #{address},</if>
+            <if test="addressExt != null">address_ext = #{addressExt},</if>
+            <if test="building != null and building != ''">building = #{building},</if>
+            <if test="creditCode != null and creditCode != ''">credit_code = #{creditCode},</if>
+            <if test="mainbody != null and mainbody != ''">mainbody = #{mainbody},</if>
+            <if test="mainbodyHeader != null and mainbodyHeader != ''">mainbody_header = #{mainbodyHeader},</if>
+            <if test="mainbodyType != null and mainbodyType != ''">mainbody_type = #{mainbodyType},</if>
+            <if test="investment != null">investment = #{investment},</if>
+            <if test="progress != null and progress != ''">progress = #{progress},</if>
+            <if test="productionTime != null and productionTime != ''">production_time = #{productionTime},</if>
+            <if test="dcBuildingLevel != null and dcBuildingLevel != ''">dc_building_level = #{dcBuildingLevel},</if>
+            <if test="dcAllArea != null">dc_all_area = #{dcAllArea},</if>
+            <if test="dcItArea != null">dc_it_area = #{dcItArea},</if>
+            <if test="buildingType != null and buildingType != ''">building_type = #{buildingType},</if>
+            <if test="seismicLevel != null and seismicLevel != ''">seismic_level = #{seismicLevel},</if>
+            <if test="useType != null and useType != ''">use_type = #{useType},</if>
+            <if test="pueDesign != null">pue_design = #{pueDesign},</if>
+            <if test="waterDesign != null and waterDesign != ''">water_design = #{waterDesign},</if>
+            <if test="netOperator != null and netOperator != ''">net_operator = #{netOperator},</if>
+            <if test="netOperatorOther != null">net_operator_other = #{netOperatorOther},</if>
+            <if test="netLevel != null and netLevel != ''">net_level = #{netLevel},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="sort != null">sort_ = #{sort},</if>
+            <if test="message != null">message = #{message},</if>
+            <if test="state != null">state = #{state},</if>
+            <if test="isEnable != null">is_enable = #{isEnable},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="createUser != null">create_user = #{createUser},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIdcBuildBaseById" parameterType="Long">
+        delete from idc_build_base where id = #{id}
+    </delete>
+
+    <delete id="deleteIdcBuildBaseByIds" parameterType="String">
+        delete from idc_build_base where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.3