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/IdcUseComputilityMapper.xml |  128 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 128 insertions(+), 0 deletions(-)

diff --git a/cpzidc-bis/src/main/resources/mapper/bis/IdcUseComputilityMapper.xml b/cpzidc-bis/src/main/resources/mapper/bis/IdcUseComputilityMapper.xml
new file mode 100644
index 0000000..4972019
--- /dev/null
+++ b/cpzidc-bis/src/main/resources/mapper/bis/IdcUseComputilityMapper.xml
@@ -0,0 +1,128 @@
+<?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.IdcUseComputilityMapper">
+    
+    <resultMap type="IdcUseComputility" id="IdcUseComputilityResult">
+        <result property="id"    column="id"    />
+        <result property="baseId"    column="base_id"    />
+        <result property="dateNode"    column="date_node"    />
+        <result property="serviceAll"    column="service_all"    />
+        <result property="haveManagerPlatform"    column="have_manager_platform"    />
+        <result property="computingGeneral"    column="computing_general"    />
+        <result property="computingIntelligence16"    column="computing_intelligence16"    />
+        <result property="computingIntelligence32"    column="computing_intelligence32"    />
+        <result property="computingGeneralText"    column="computing_general_text"    />
+        <result property="computingIntelligence16Text"    column="computing_intelligence16_text"    />
+        <result property="computingIntelligence32Text"    column="computing_intelligence32_text"    />
+        <result property="sort"    column="sort_"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="updateUser"    column="update_user"    />
+        <result property="createUser"    column="create_user"    />
+        <result property="remark"    column="remark"    />
+    </resultMap>
+
+    <sql id="selectIdcUseComputilityVo">
+        select id, base_id, date_node, service_all, have_manager_platform, computing_general, computing_intelligence16, computing_intelligence32, computing_general_text, computing_intelligence16_text, computing_intelligence32_text, sort_, create_time, update_time, update_user, create_user, remark from idc_use_computility
+    </sql>
+
+    <select id="selectIdcUseComputilityList" parameterType="IdcUseComputility" resultMap="IdcUseComputilityResult">
+        <include refid="selectIdcUseComputilityVo"/>
+        <where>  
+            <if test="baseId != null "> and base_id = #{baseId}</if>
+            <if test="dateNode != null  and dateNode != ''"> and date_node = #{dateNode}</if>
+            <if test="serviceAll != null "> and service_all = #{serviceAll}</if>
+            <if test="haveManagerPlatform != null "> and have_manager_platform = #{haveManagerPlatform}</if>
+            <if test="computingGeneral != null "> and computing_general = #{computingGeneral}</if>
+            <if test="computingIntelligence16 != null "> and computing_intelligence16 = #{computingIntelligence16}</if>
+            <if test="computingIntelligence32 != null "> and computing_intelligence32 = #{computingIntelligence32}</if>
+            <if test="computingGeneralText != null  and computingGeneralText != ''"> and computing_general_text = #{computingGeneralText}</if>
+            <if test="computingIntelligence16Text != null  and computingIntelligence16Text != ''"> and computing_intelligence16_text = #{computingIntelligence16Text}</if>
+            <if test="computingIntelligence32Text != null  and computingIntelligence32Text != ''"> and computing_intelligence32_text = #{computingIntelligence32Text}</if>
+            <if test="sort != null "> and sort_ = #{sort}</if>
+            <if test="updateUser != null "> and update_user = #{updateUser}</if>
+            <if test="createUser != null "> and create_user = #{createUser}</if>
+        </where>
+    </select>
+    
+    <select id="selectIdcUseComputilityById" parameterType="Long" resultMap="IdcUseComputilityResult">
+        <include refid="selectIdcUseComputilityVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertIdcUseComputility" parameterType="IdcUseComputility" useGeneratedKeys="true" keyProperty="id">
+        insert into idc_use_computility
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="baseId != null">base_id,</if>
+            <if test="dateNode != null and dateNode != ''">date_node,</if>
+            <if test="serviceAll != null">service_all,</if>
+            <if test="haveManagerPlatform != null">have_manager_platform,</if>
+            <if test="computingGeneral != null">computing_general,</if>
+            <if test="computingIntelligence16 != null">computing_intelligence16,</if>
+            <if test="computingIntelligence32 != null">computing_intelligence32,</if>
+            <if test="computingGeneralText != null">computing_general_text,</if>
+            <if test="computingIntelligence16Text != null">computing_intelligence16_text,</if>
+            <if test="computingIntelligence32Text != null">computing_intelligence32_text,</if>
+            <if test="sort != null">sort_,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="updateUser != null">update_user,</if>
+            <if test="createUser != null">create_user,</if>
+            <if test="remark != null">remark,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="baseId != null">#{baseId},</if>
+            <if test="dateNode != null and dateNode != ''">#{dateNode},</if>
+            <if test="serviceAll != null">#{serviceAll},</if>
+            <if test="haveManagerPlatform != null">#{haveManagerPlatform},</if>
+            <if test="computingGeneral != null">#{computingGeneral},</if>
+            <if test="computingIntelligence16 != null">#{computingIntelligence16},</if>
+            <if test="computingIntelligence32 != null">#{computingIntelligence32},</if>
+            <if test="computingGeneralText != null">#{computingGeneralText},</if>
+            <if test="computingIntelligence16Text != null">#{computingIntelligence16Text},</if>
+            <if test="computingIntelligence32Text != null">#{computingIntelligence32Text},</if>
+            <if test="sort != null">#{sort},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="updateUser != null">#{updateUser},</if>
+            <if test="createUser != null">#{createUser},</if>
+            <if test="remark != null">#{remark},</if>
+         </trim>
+    </insert>
+
+    <update id="updateIdcUseComputility" parameterType="IdcUseComputility">
+        update idc_use_computility
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="baseId != null">base_id = #{baseId},</if>
+            <if test="dateNode != null and dateNode != ''">date_node = #{dateNode},</if>
+            <if test="serviceAll != null">service_all = #{serviceAll},</if>
+            <if test="haveManagerPlatform != null">have_manager_platform = #{haveManagerPlatform},</if>
+            <if test="computingGeneral != null">computing_general = #{computingGeneral},</if>
+            <if test="computingIntelligence16 != null">computing_intelligence16 = #{computingIntelligence16},</if>
+            <if test="computingIntelligence32 != null">computing_intelligence32 = #{computingIntelligence32},</if>
+            <if test="computingGeneralText != null">computing_general_text = #{computingGeneralText},</if>
+            <if test="computingIntelligence16Text != null">computing_intelligence16_text = #{computingIntelligence16Text},</if>
+            <if test="computingIntelligence32Text != null">computing_intelligence32_text = #{computingIntelligence32Text},</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="updateUser != null">update_user = #{updateUser},</if>
+            <if test="createUser != null">create_user = #{createUser},</if>
+            <if test="remark != null">remark = #{remark},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteIdcUseComputilityById" parameterType="Long">
+        delete from idc_use_computility where id = #{id}
+    </delete>
+
+    <delete id="deleteIdcUseComputilityByIds" parameterType="String">
+        delete from idc_use_computility 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