|
@@ -25,11 +25,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
25
|
25
|
<result property="degree" column="degree" />
|
26
|
26
|
<result property="contractSign" column="contract_sign" />
|
27
|
27
|
<result property="contractExpire" column="contract_expire" />
|
|
28
|
+ <result property="status" column="status" />
|
28
|
29
|
</resultMap>
|
29
|
30
|
|
30
|
31
|
<sql id="selectCmcUserHistoryVo">
|
31
|
32
|
select history_id, user_id, dept_id, titles, certificates, roleIds, postIds, pm_level, engineer_level, post_level, salary_level, operator_level, update_time, update_reason,
|
32
|
|
- political_affiliation, graduate_school, major, degree, contract_sign, contract_expire from cmc_user_history
|
|
33
|
+ political_affiliation, graduate_school, major, degree, contract_sign, contract_expire, status from cmc_user_history
|
33
|
34
|
</sql>
|
34
|
35
|
|
35
|
36
|
<select id="selectCmcUserHistoryList" parameterType="CmcUserHistory" resultMap="CmcUserHistoryResult">
|
|
@@ -74,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
74
|
75
|
<if test="degree != null">degree,</if>
|
75
|
76
|
<if test="contractSign != null">contract_sign,</if>
|
76
|
77
|
<if test="contractExpire != null">contract_expire,</if>
|
|
78
|
+ <if test="status != null">status,</if>
|
77
|
79
|
</trim>
|
78
|
80
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
79
|
81
|
<if test="userId != null">#{userId},</if>
|
|
@@ -95,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
95
|
97
|
<if test="degree != null">#{degree},</if>
|
96
|
98
|
<if test="contractSign != null">#{contractSign},</if>
|
97
|
99
|
<if test="contractExpire != null">#{contractExpire},</if>
|
|
100
|
+ <if test="status != null">#{status},</if>
|
98
|
101
|
</trim>
|
99
|
102
|
</insert>
|
100
|
103
|
|
|
@@ -120,6 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
120
|
123
|
<if test="degree != null">#{degree},</if>
|
121
|
124
|
<if test="contractSign != null">#{contractSign},</if>
|
122
|
125
|
<if test="contractExpire != null">#{contractExpire},</if>
|
|
126
|
+ <if test="status != null">#{status},</if>
|
123
|
127
|
</trim>
|
124
|
128
|
where history_id = #{historyId}
|
125
|
129
|
</update>
|