commit | author | age
|
5cc82f
|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
Y |
2 |
<!DOCTYPE mapper |
|
3 |
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
4 |
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
5 |
<mapper namespace="com.odcc.cpzidc.bis.mapper.IdcUseComputilityMapper"> |
|
6 |
|
|
7 |
<resultMap type="IdcUseComputility" id="IdcUseComputilityResult"> |
|
8 |
<result property="id" column="id" /> |
|
9 |
<result property="baseId" column="base_id" /> |
|
10 |
<result property="dateNode" column="date_node" /> |
|
11 |
<result property="serviceAll" column="service_all" /> |
|
12 |
<result property="haveManagerPlatform" column="have_manager_platform" /> |
|
13 |
<result property="computingGeneral" column="computing_general" /> |
|
14 |
<result property="computingIntelligence16" column="computing_intelligence16" /> |
|
15 |
<result property="computingIntelligence32" column="computing_intelligence32" /> |
|
16 |
<result property="computingGeneralText" column="computing_general_text" /> |
|
17 |
<result property="computingIntelligence16Text" column="computing_intelligence16_text" /> |
|
18 |
<result property="computingIntelligence32Text" column="computing_intelligence32_text" /> |
|
19 |
<result property="sort" column="sort_" /> |
|
20 |
<result property="createTime" column="create_time" /> |
|
21 |
<result property="updateTime" column="update_time" /> |
|
22 |
<result property="updateUser" column="update_user" /> |
|
23 |
<result property="createUser" column="create_user" /> |
|
24 |
<result property="remark" column="remark" /> |
|
25 |
</resultMap> |
|
26 |
|
|
27 |
<sql id="selectIdcUseComputilityVo"> |
|
28 |
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 |
|
29 |
</sql> |
|
30 |
|
|
31 |
<select id="selectIdcUseComputilityList" parameterType="IdcUseComputility" resultMap="IdcUseComputilityResult"> |
|
32 |
<include refid="selectIdcUseComputilityVo"/> |
|
33 |
<where> |
|
34 |
<if test="baseId != null "> and base_id = #{baseId}</if> |
|
35 |
<if test="dateNode != null and dateNode != ''"> and date_node = #{dateNode}</if> |
|
36 |
<if test="serviceAll != null "> and service_all = #{serviceAll}</if> |
|
37 |
<if test="haveManagerPlatform != null "> and have_manager_platform = #{haveManagerPlatform}</if> |
|
38 |
<if test="computingGeneral != null "> and computing_general = #{computingGeneral}</if> |
|
39 |
<if test="computingIntelligence16 != null "> and computing_intelligence16 = #{computingIntelligence16}</if> |
|
40 |
<if test="computingIntelligence32 != null "> and computing_intelligence32 = #{computingIntelligence32}</if> |
|
41 |
<if test="computingGeneralText != null and computingGeneralText != ''"> and computing_general_text = #{computingGeneralText}</if> |
|
42 |
<if test="computingIntelligence16Text != null and computingIntelligence16Text != ''"> and computing_intelligence16_text = #{computingIntelligence16Text}</if> |
|
43 |
<if test="computingIntelligence32Text != null and computingIntelligence32Text != ''"> and computing_intelligence32_text = #{computingIntelligence32Text}</if> |
|
44 |
<if test="sort != null "> and sort_ = #{sort}</if> |
|
45 |
<if test="updateUser != null "> and update_user = #{updateUser}</if> |
|
46 |
<if test="createUser != null "> and create_user = #{createUser}</if> |
|
47 |
</where> |
|
48 |
</select> |
|
49 |
|
|
50 |
<select id="selectIdcUseComputilityById" parameterType="Long" resultMap="IdcUseComputilityResult"> |
|
51 |
<include refid="selectIdcUseComputilityVo"/> |
|
52 |
where id = #{id} |
|
53 |
</select> |
|
54 |
|
|
55 |
<insert id="insertIdcUseComputility" parameterType="IdcUseComputility" useGeneratedKeys="true" keyProperty="id"> |
|
56 |
insert into idc_use_computility |
|
57 |
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
58 |
<if test="baseId != null">base_id,</if> |
|
59 |
<if test="dateNode != null and dateNode != ''">date_node,</if> |
|
60 |
<if test="serviceAll != null">service_all,</if> |
|
61 |
<if test="haveManagerPlatform != null">have_manager_platform,</if> |
|
62 |
<if test="computingGeneral != null">computing_general,</if> |
|
63 |
<if test="computingIntelligence16 != null">computing_intelligence16,</if> |
|
64 |
<if test="computingIntelligence32 != null">computing_intelligence32,</if> |
|
65 |
<if test="computingGeneralText != null">computing_general_text,</if> |
|
66 |
<if test="computingIntelligence16Text != null">computing_intelligence16_text,</if> |
|
67 |
<if test="computingIntelligence32Text != null">computing_intelligence32_text,</if> |
|
68 |
<if test="sort != null">sort_,</if> |
|
69 |
<if test="createTime != null">create_time,</if> |
|
70 |
<if test="updateTime != null">update_time,</if> |
|
71 |
<if test="updateUser != null">update_user,</if> |
|
72 |
<if test="createUser != null">create_user,</if> |
|
73 |
<if test="remark != null">remark,</if> |
|
74 |
</trim> |
|
75 |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
76 |
<if test="baseId != null">#{baseId},</if> |
|
77 |
<if test="dateNode != null and dateNode != ''">#{dateNode},</if> |
|
78 |
<if test="serviceAll != null">#{serviceAll},</if> |
|
79 |
<if test="haveManagerPlatform != null">#{haveManagerPlatform},</if> |
|
80 |
<if test="computingGeneral != null">#{computingGeneral},</if> |
|
81 |
<if test="computingIntelligence16 != null">#{computingIntelligence16},</if> |
|
82 |
<if test="computingIntelligence32 != null">#{computingIntelligence32},</if> |
|
83 |
<if test="computingGeneralText != null">#{computingGeneralText},</if> |
|
84 |
<if test="computingIntelligence16Text != null">#{computingIntelligence16Text},</if> |
|
85 |
<if test="computingIntelligence32Text != null">#{computingIntelligence32Text},</if> |
|
86 |
<if test="sort != null">#{sort},</if> |
|
87 |
<if test="createTime != null">#{createTime},</if> |
|
88 |
<if test="updateTime != null">#{updateTime},</if> |
|
89 |
<if test="updateUser != null">#{updateUser},</if> |
|
90 |
<if test="createUser != null">#{createUser},</if> |
|
91 |
<if test="remark != null">#{remark},</if> |
|
92 |
</trim> |
|
93 |
</insert> |
|
94 |
|
|
95 |
<update id="updateIdcUseComputility" parameterType="IdcUseComputility"> |
|
96 |
update idc_use_computility |
|
97 |
<trim prefix="SET" suffixOverrides=","> |
|
98 |
<if test="baseId != null">base_id = #{baseId},</if> |
|
99 |
<if test="dateNode != null and dateNode != ''">date_node = #{dateNode},</if> |
|
100 |
<if test="serviceAll != null">service_all = #{serviceAll},</if> |
|
101 |
<if test="haveManagerPlatform != null">have_manager_platform = #{haveManagerPlatform},</if> |
|
102 |
<if test="computingGeneral != null">computing_general = #{computingGeneral},</if> |
|
103 |
<if test="computingIntelligence16 != null">computing_intelligence16 = #{computingIntelligence16},</if> |
|
104 |
<if test="computingIntelligence32 != null">computing_intelligence32 = #{computingIntelligence32},</if> |
|
105 |
<if test="computingGeneralText != null">computing_general_text = #{computingGeneralText},</if> |
|
106 |
<if test="computingIntelligence16Text != null">computing_intelligence16_text = #{computingIntelligence16Text},</if> |
|
107 |
<if test="computingIntelligence32Text != null">computing_intelligence32_text = #{computingIntelligence32Text},</if> |
|
108 |
<if test="sort != null">sort_ = #{sort},</if> |
|
109 |
<if test="createTime != null">create_time = #{createTime},</if> |
|
110 |
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
111 |
<if test="updateUser != null">update_user = #{updateUser},</if> |
|
112 |
<if test="createUser != null">create_user = #{createUser},</if> |
|
113 |
<if test="remark != null">remark = #{remark},</if> |
|
114 |
</trim> |
|
115 |
where id = #{id} |
|
116 |
</update> |
|
117 |
|
|
118 |
<delete id="deleteIdcUseComputilityById" parameterType="Long"> |
|
119 |
delete from idc_use_computility where id = #{id} |
|
120 |
</delete> |
|
121 |
|
|
122 |
<delete id="deleteIdcUseComputilityByIds" parameterType="String"> |
|
123 |
delete from idc_use_computility where id in |
|
124 |
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
125 |
#{id} |
|
126 |
</foreach> |
|
127 |
</delete> |
|
128 |
</mapper> |