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/IdcUseInfrastructureMapper.xml | 203 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 203 insertions(+), 0 deletions(-) diff --git a/cpzidc-bis/src/main/resources/mapper/bis/IdcUseInfrastructureMapper.xml b/cpzidc-bis/src/main/resources/mapper/bis/IdcUseInfrastructureMapper.xml new file mode 100644 index 0000000..e0ce8d3 --- /dev/null +++ b/cpzidc-bis/src/main/resources/mapper/bis/IdcUseInfrastructureMapper.xml @@ -0,0 +1,203 @@ +<?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.IdcUseInfrastructureMapper"> + + <resultMap type="IdcUseInfrastructure" id="IdcUseInfrastructureResult"> + <result property="id" column="id" /> + <result property="baseId" column="base_id" /> + <result property="dateNode" column="date_node" /> + <result property="formName" column="form_name" /> + <result property="formTel" column="form_tel" /> + <result property="frameCompBase" column="frame_comp_base" /> + <result property="frameCompEnd" column="frame_comp_end" /> + <result property="frameElectricity" column="frame_electricity" /> + <result property="percentageCloud" column="percentage_cloud" /> + <result property="electricityPrice" column="electricity_price" /> + <result property="annual" column="annual" /> + <result property="cost" column="cost" /> + <result property="bisPercentZhengwu" column="bis_percent_zhengwu" /> + <result property="bisPercentQiye" column="bis_percent_qiye" /> + <result property="bisPercentJinrong" column="bis_percent_jinrong" /> + <result property="bisPercentInternetGongyouyun" column="bis_percent_internet_gongyouyun" /> + <result property="bisPercentInternetWangzhan" column="bis_percent_internet_wangzhan" /> + <result property="bisPercentInternetShiping" column="bis_percent_internet_shiping" /> + <result property="bisPercentInternetAi" column="bis_percent_internet_ai" /> + <result property="bisPercentInternetDianshang" column="bis_percent_internet_dianshang" /> + <result property="bisPercentInternetYouxi" column="bis_percent_internet_youxi" /> + <result property="bisPercentInternetZhifu" column="bis_percent_internet_zhifu" /> + <result property="bisPercentInternetOther" column="bis_percent_internet_other" /> + <result property="bisPercentOther" column="bis_percent_other" /> + <result property="sumChanquan" column="sum_chanquan" /> + <result property="itOperation" column="it_operation" /> + <result property="sort" column="sort_" /> + <result property="createTime" column="create_time" /> + <result property="updateTime" column="update_time" /> + <result property="createUser" column="create_user" /> + <result property="updateUser" column="update_user" /> + <result property="remark" column="remark" /> + </resultMap> + + <sql id="selectIdcUseInfrastructureVo"> + select id, base_id, date_node, form_name, form_tel, frame_comp_base, frame_comp_end, frame_electricity, percentage_cloud, electricity_price, annual, cost, bis_percent_zhengwu, bis_percent_qiye, bis_percent_jinrong, bis_percent_internet_gongyouyun, bis_percent_internet_wangzhan, bis_percent_internet_shiping, bis_percent_internet_ai, bis_percent_internet_dianshang, bis_percent_internet_youxi, bis_percent_internet_zhifu, bis_percent_internet_other, bis_percent_other, sum_chanquan, it_operation, sort_, create_time, update_time, create_user, update_user, remark from idc_use_infrastructure + </sql> + + <select id="selectIdcUseInfrastructureList" parameterType="IdcUseInfrastructure" resultMap="IdcUseInfrastructureResult"> + <include refid="selectIdcUseInfrastructureVo"/> + <where> + <if test="baseId != null "> and base_id = #{baseId}</if> + <if test="dateNode != null and dateNode != ''"> and date_node = #{dateNode}</if> + <if test="formName != null and formName != ''"> and form_name like concat('%', #{formName}, '%')</if> + <if test="formTel != null and formTel != ''"> and form_tel = #{formTel}</if> + <if test="frameCompBase != null "> and frame_comp_base = #{frameCompBase}</if> + <if test="frameCompEnd != null "> and frame_comp_end = #{frameCompEnd}</if> + <if test="frameElectricity != null and frameElectricity != ''"> and frame_electricity = #{frameElectricity}</if> + <if test="percentageCloud != null and percentageCloud != ''"> and percentage_cloud = #{percentageCloud}</if> + <if test="electricityPrice != null "> and electricity_price = #{electricityPrice}</if> + <if test="annual != null and annual != ''"> and annual = #{annual}</if> + <if test="cost != null and cost != ''"> and cost = #{cost}</if> + <if test="bisPercentZhengwu != null and bisPercentZhengwu != ''"> and bis_percent_zhengwu = #{bisPercentZhengwu}</if> + <if test="bisPercentQiye != null and bisPercentQiye != ''"> and bis_percent_qiye = #{bisPercentQiye}</if> + <if test="bisPercentJinrong != null and bisPercentJinrong != ''"> and bis_percent_jinrong = #{bisPercentJinrong}</if> + <if test="bisPercentInternetGongyouyun != null and bisPercentInternetGongyouyun != ''"> and bis_percent_internet_gongyouyun = #{bisPercentInternetGongyouyun}</if> + <if test="bisPercentInternetWangzhan != null and bisPercentInternetWangzhan != ''"> and bis_percent_internet_wangzhan = #{bisPercentInternetWangzhan}</if> + <if test="bisPercentInternetShiping != null and bisPercentInternetShiping != ''"> and bis_percent_internet_shiping = #{bisPercentInternetShiping}</if> + <if test="bisPercentInternetAi != null and bisPercentInternetAi != ''"> and bis_percent_internet_ai = #{bisPercentInternetAi}</if> + <if test="bisPercentInternetDianshang != null and bisPercentInternetDianshang != ''"> and bis_percent_internet_dianshang = #{bisPercentInternetDianshang}</if> + <if test="bisPercentInternetYouxi != null and bisPercentInternetYouxi != ''"> and bis_percent_internet_youxi = #{bisPercentInternetYouxi}</if> + <if test="bisPercentInternetZhifu != null and bisPercentInternetZhifu != ''"> and bis_percent_internet_zhifu = #{bisPercentInternetZhifu}</if> + <if test="bisPercentInternetOther != null and bisPercentInternetOther != ''"> and bis_percent_internet_other = #{bisPercentInternetOther}</if> + <if test="bisPercentOther != null and bisPercentOther != ''"> and bis_percent_other = #{bisPercentOther}</if> + <if test="sumChanquan != null and sumChanquan != ''"> and sum_chanquan = #{sumChanquan}</if> + <if test="itOperation != null and itOperation != ''"> and it_operation = #{itOperation}</if> + <if test="sort != null "> and sort_ = #{sort}</if> + <if test="createUser != null "> and create_user = #{createUser}</if> + <if test="updateUser != null "> and update_user = #{updateUser}</if> + </where> + </select> + + <select id="selectIdcUseInfrastructureById" parameterType="Long" resultMap="IdcUseInfrastructureResult"> + <include refid="selectIdcUseInfrastructureVo"/> + where id = #{id} + </select> + + <insert id="insertIdcUseInfrastructure" parameterType="IdcUseInfrastructure" useGeneratedKeys="true" keyProperty="id"> + insert into idc_use_infrastructure + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="baseId != null">base_id,</if> + <if test="dateNode != null">date_node,</if> + <if test="formName != null">form_name,</if> + <if test="formTel != null">form_tel,</if> + <if test="frameCompBase != null">frame_comp_base,</if> + <if test="frameCompEnd != null">frame_comp_end,</if> + <if test="frameElectricity != null">frame_electricity,</if> + <if test="percentageCloud != null">percentage_cloud,</if> + <if test="electricityPrice != null">electricity_price,</if> + <if test="annual != null">annual,</if> + <if test="cost != null">cost,</if> + <if test="bisPercentZhengwu != null">bis_percent_zhengwu,</if> + <if test="bisPercentQiye != null">bis_percent_qiye,</if> + <if test="bisPercentJinrong != null">bis_percent_jinrong,</if> + <if test="bisPercentInternetGongyouyun != null">bis_percent_internet_gongyouyun,</if> + <if test="bisPercentInternetWangzhan != null">bis_percent_internet_wangzhan,</if> + <if test="bisPercentInternetShiping != null">bis_percent_internet_shiping,</if> + <if test="bisPercentInternetAi != null">bis_percent_internet_ai,</if> + <if test="bisPercentInternetDianshang != null">bis_percent_internet_dianshang,</if> + <if test="bisPercentInternetYouxi != null">bis_percent_internet_youxi,</if> + <if test="bisPercentInternetZhifu != null">bis_percent_internet_zhifu,</if> + <if test="bisPercentInternetOther != null">bis_percent_internet_other,</if> + <if test="bisPercentOther != null">bis_percent_other,</if> + <if test="sumChanquan != null">sum_chanquan,</if> + <if test="itOperation != null">it_operation,</if> + <if test="sort != null">sort_,</if> + <if test="createTime != null">create_time,</if> + <if test="updateTime != null">update_time,</if> + <if test="createUser != null">create_user,</if> + <if test="updateUser != null">update_user,</if> + <if test="remark != null">remark,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="baseId != null">#{baseId},</if> + <if test="dateNode != null">#{dateNode},</if> + <if test="formName != null">#{formName},</if> + <if test="formTel != null">#{formTel},</if> + <if test="frameCompBase != null">#{frameCompBase},</if> + <if test="frameCompEnd != null">#{frameCompEnd},</if> + <if test="frameElectricity != null">#{frameElectricity},</if> + <if test="percentageCloud != null">#{percentageCloud},</if> + <if test="electricityPrice != null">#{electricityPrice},</if> + <if test="annual != null">#{annual},</if> + <if test="cost != null">#{cost},</if> + <if test="bisPercentZhengwu != null">#{bisPercentZhengwu},</if> + <if test="bisPercentQiye != null">#{bisPercentQiye},</if> + <if test="bisPercentJinrong != null">#{bisPercentJinrong},</if> + <if test="bisPercentInternetGongyouyun != null">#{bisPercentInternetGongyouyun},</if> + <if test="bisPercentInternetWangzhan != null">#{bisPercentInternetWangzhan},</if> + <if test="bisPercentInternetShiping != null">#{bisPercentInternetShiping},</if> + <if test="bisPercentInternetAi != null">#{bisPercentInternetAi},</if> + <if test="bisPercentInternetDianshang != null">#{bisPercentInternetDianshang},</if> + <if test="bisPercentInternetYouxi != null">#{bisPercentInternetYouxi},</if> + <if test="bisPercentInternetZhifu != null">#{bisPercentInternetZhifu},</if> + <if test="bisPercentInternetOther != null">#{bisPercentInternetOther},</if> + <if test="bisPercentOther != null">#{bisPercentOther},</if> + <if test="sumChanquan != null">#{sumChanquan},</if> + <if test="itOperation != null">#{itOperation},</if> + <if test="sort != null">#{sort},</if> + <if test="createTime != null">#{createTime},</if> + <if test="updateTime != null">#{updateTime},</if> + <if test="createUser != null">#{createUser},</if> + <if test="updateUser != null">#{updateUser},</if> + <if test="remark != null">#{remark},</if> + </trim> + </insert> + + <update id="updateIdcUseInfrastructure" parameterType="IdcUseInfrastructure"> + update idc_use_infrastructure + <trim prefix="SET" suffixOverrides=","> + <if test="baseId != null">base_id = #{baseId},</if> + <if test="dateNode != null">date_node = #{dateNode},</if> + <if test="formName != null">form_name = #{formName},</if> + <if test="formTel != null">form_tel = #{formTel},</if> + <if test="frameCompBase != null">frame_comp_base = #{frameCompBase},</if> + <if test="frameCompEnd != null">frame_comp_end = #{frameCompEnd},</if> + <if test="frameElectricity != null">frame_electricity = #{frameElectricity},</if> + <if test="percentageCloud != null">percentage_cloud = #{percentageCloud},</if> + <if test="electricityPrice != null">electricity_price = #{electricityPrice},</if> + <if test="annual != null">annual = #{annual},</if> + <if test="cost != null">cost = #{cost},</if> + <if test="bisPercentZhengwu != null">bis_percent_zhengwu = #{bisPercentZhengwu},</if> + <if test="bisPercentQiye != null">bis_percent_qiye = #{bisPercentQiye},</if> + <if test="bisPercentJinrong != null">bis_percent_jinrong = #{bisPercentJinrong},</if> + <if test="bisPercentInternetGongyouyun != null">bis_percent_internet_gongyouyun = #{bisPercentInternetGongyouyun},</if> + <if test="bisPercentInternetWangzhan != null">bis_percent_internet_wangzhan = #{bisPercentInternetWangzhan},</if> + <if test="bisPercentInternetShiping != null">bis_percent_internet_shiping = #{bisPercentInternetShiping},</if> + <if test="bisPercentInternetAi != null">bis_percent_internet_ai = #{bisPercentInternetAi},</if> + <if test="bisPercentInternetDianshang != null">bis_percent_internet_dianshang = #{bisPercentInternetDianshang},</if> + <if test="bisPercentInternetYouxi != null">bis_percent_internet_youxi = #{bisPercentInternetYouxi},</if> + <if test="bisPercentInternetZhifu != null">bis_percent_internet_zhifu = #{bisPercentInternetZhifu},</if> + <if test="bisPercentInternetOther != null">bis_percent_internet_other = #{bisPercentInternetOther},</if> + <if test="bisPercentOther != null">bis_percent_other = #{bisPercentOther},</if> + <if test="sumChanquan != null">sum_chanquan = #{sumChanquan},</if> + <if test="itOperation != null">it_operation = #{itOperation},</if> + <if test="sort != null">sort_ = #{sort},</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> + <if test="updateUser != null">update_user = #{updateUser},</if> + <if test="remark != null">remark = #{remark},</if> + </trim> + where id = #{id} + </update> + + <delete id="deleteIdcUseInfrastructureById" parameterType="Long"> + delete from idc_use_infrastructure where id = #{id} + </delete> + + <delete id="deleteIdcUseInfrastructureByIds" parameterType="String"> + delete from idc_use_infrastructure 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