|
|
@@ -13,6 +13,8 @@
|
|
13
|
13
|
<result property="updateTime" column="update_time"/>
|
|
14
|
14
|
<result property="remark" column="remark"/>
|
|
15
|
15
|
<result property="id" column="id"/>
|
|
|
16
|
+ <result property="categoryCodeOne" column="category_code_one"/>
|
|
|
17
|
+ <result property="categoryNameOne" column="category_name_one"/>
|
|
16
|
18
|
<result property="categoryCode" column="category_code"/>
|
|
17
|
19
|
<result property="categoryName" column="category_name"/>
|
|
18
|
20
|
<result property="code" column="code"/>
|
|
|
@@ -22,8 +24,6 @@
|
|
22
|
24
|
<result property="unit" column="unit"/>
|
|
23
|
25
|
<result property="leaveType" column="leave_type"/>
|
|
24
|
26
|
<result property="rewardPunishmentType" column="reward_punishment_type"/>
|
|
25
|
|
- <result property="categoryCodeOne" column="category_code_one"/>
|
|
26
|
|
- <result property="categoryNameOne" column="category_name_one"/>
|
|
27
|
27
|
</resultMap>
|
|
28
|
28
|
|
|
29
|
29
|
<sql id="selectBasePerformanceIndicatorVo">
|
|
|
@@ -35,6 +35,8 @@
|
|
35
|
35
|
update_time,
|
|
36
|
36
|
remark,
|
|
37
|
37
|
id,
|
|
|
38
|
+ category_code_one,
|
|
|
39
|
+ category_name_one,
|
|
38
|
40
|
category_code,
|
|
39
|
41
|
category_name,
|
|
40
|
42
|
code,
|
|
|
@@ -43,9 +45,7 @@
|
|
43
|
45
|
score,
|
|
44
|
46
|
unit,
|
|
45
|
47
|
leave_type,
|
|
46
|
|
- reward_punishment_type,
|
|
47
|
|
- category_code_one,
|
|
48
|
|
- category_name_one
|
|
|
48
|
+ reward_punishment_type
|
|
49
|
49
|
from base_performance_indicator
|
|
50
|
50
|
</sql>
|
|
51
|
51
|
|
|
|
@@ -55,6 +55,11 @@
|
|
55
|
55
|
<where>
|
|
56
|
56
|
<if test="tenantId != null and tenantId != ''">and tenant_id = #{tenantId}</if>
|
|
57
|
57
|
<if test="revision != null ">and revision = #{revision}</if>
|
|
|
58
|
+ <if test="categoryCodeOne != null and categoryCodeOne != ''">and category_code_one = #{categoryCodeOne}
|
|
|
59
|
+ </if>
|
|
|
60
|
+ <if test="categoryNameOne != null and categoryNameOne != ''">and category_name_one like
|
|
|
61
|
+ concat('%', #{categoryNameOne}, '%')
|
|
|
62
|
+ </if>
|
|
58
|
63
|
<if test="categoryCode != null and categoryCode != ''">and category_code = #{categoryCode}</if>
|
|
59
|
64
|
<if test="categoryName != null and categoryName != ''">and category_name like concat('%', #{categoryName},
|
|
60
|
65
|
'%')
|
|
|
@@ -68,11 +73,6 @@
|
|
68
|
73
|
<if test="rewardPunishmentType != null and rewardPunishmentType != ''">and reward_punishment_type =
|
|
69
|
74
|
#{rewardPunishmentType}
|
|
70
|
75
|
</if>
|
|
71
|
|
- <if test="categoryCodeOne != null and categoryCodeOne != ''">and category_code_one = #{categoryCodeOne}
|
|
72
|
|
- </if>
|
|
73
|
|
- <if test="categoryNameOne != null and categoryNameOne != ''">and category_name_one like
|
|
74
|
|
- concat('%', #{categoryNameOne}, '%')
|
|
75
|
|
- </if>
|
|
76
|
76
|
</where>
|
|
77
|
77
|
order by create_time desc
|
|
78
|
78
|
</select>
|
|
|
@@ -93,6 +93,8 @@
|
|
93
|
93
|
<if test="updateBy != null">update_by,</if>
|
|
94
|
94
|
<if test="updateTime != null">update_time,</if>
|
|
95
|
95
|
<if test="remark != null">remark,</if>
|
|
|
96
|
+ <if test="categoryCodeOne != null">category_code_one,</if>
|
|
|
97
|
+ <if test="categoryNameOne != null">category_name_one,</if>
|
|
96
|
98
|
<if test="categoryCode != null and categoryCode != ''">category_code,</if>
|
|
97
|
99
|
<if test="categoryName != null and categoryName != ''">category_name,</if>
|
|
98
|
100
|
<if test="code != null">code,</if>
|
|
|
@@ -102,8 +104,6 @@
|
|
102
|
104
|
<if test="unit != null">unit,</if>
|
|
103
|
105
|
<if test="leaveType != null">leave_type,</if>
|
|
104
|
106
|
<if test="rewardPunishmentType != null">reward_punishment_type,</if>
|
|
105
|
|
- <if test="categoryCodeOne != null">category_code_one,</if>
|
|
106
|
|
- <if test="categoryNameOne != null">category_name_one,</if>
|
|
107
|
107
|
</trim>
|
|
108
|
108
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
109
|
109
|
<if test="tenantId != null">#{tenantId},</if>
|
|
|
@@ -113,6 +113,8 @@
|
|
113
|
113
|
<if test="updateBy != null">#{updateBy},</if>
|
|
114
|
114
|
<if test="updateTime != null">#{updateTime},</if>
|
|
115
|
115
|
<if test="remark != null">#{remark},</if>
|
|
|
116
|
+ <if test="categoryCodeOne != null">#{categoryCodeOne},</if>
|
|
|
117
|
+ <if test="categoryNameOne != null">#{categoryNameOne},</if>
|
|
116
|
118
|
<if test="categoryCode != null and categoryCode != ''">#{categoryCode},</if>
|
|
117
|
119
|
<if test="categoryName != null and categoryName != ''">#{categoryName},</if>
|
|
118
|
120
|
<if test="code != null">#{code},</if>
|
|
|
@@ -122,8 +124,6 @@
|
|
122
|
124
|
<if test="unit != null">#{unit},</if>
|
|
123
|
125
|
<if test="leaveType != null">#{leaveType},</if>
|
|
124
|
126
|
<if test="rewardPunishmentType != null">#{rewardPunishmentType},</if>
|
|
125
|
|
- <if test="categoryCodeOne != null">#{categoryCodeOne},</if>
|
|
126
|
|
- <if test="categoryNameOne != null">#{categoryNameOne},</if>
|
|
127
|
127
|
</trim>
|
|
128
|
128
|
</insert>
|
|
129
|
129
|
|
|
|
@@ -137,6 +137,8 @@
|
|
137
|
137
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
138
|
138
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
139
|
139
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
140
|
+ <if test="categoryCodeOne != null">category_code_one = #{categoryCodeOne},</if>
|
|
|
141
|
+ <if test="categoryNameOne != null">category_name_one = #{categoryNameOne},</if>
|
|
140
|
142
|
<if test="categoryCode != null and categoryCode != ''">category_code = #{categoryCode},</if>
|
|
141
|
143
|
<if test="categoryName != null and categoryName != ''">category_name = #{categoryName},</if>
|
|
142
|
144
|
<if test="code != null">code = #{code},</if>
|
|
|
@@ -146,8 +148,6 @@
|
|
146
|
148
|
<if test="unit != null">unit = #{unit},</if>
|
|
147
|
149
|
<if test="leaveType != null">leave_type = #{leaveType},</if>
|
|
148
|
150
|
<if test="rewardPunishmentType != null">reward_punishment_type = #{rewardPunishmentType},</if>
|
|
149
|
|
- <if test="categoryCodeOne != null">category_code_one = #{categoryCodeOne},</if>
|
|
150
|
|
- <if test="categoryNameOne != null">category_name_one = #{categoryNameOne},</if>
|
|
151
|
151
|
</trim>
|
|
152
|
152
|
where id = #{id}
|
|
153
|
153
|
</update>
|