中国算力平台算力登记系统2.0
yanzhaofeige
3 days ago 9a224d216652ef2d6ff2e0bd01fba69c86a3f277
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
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>