|
@@ -33,6 +33,7 @@
|
33
|
33
|
<result property="managerTime" column="manager_time" />
|
34
|
34
|
<result property="unionTime" column="union_time" />
|
35
|
35
|
<result property="gmTime" column="gm_time" />
|
|
36
|
+ <result property="dszTime" column="dsz_time" />
|
36
|
37
|
<result property="dispatchTime" column="dispatch_time" />
|
37
|
38
|
<association property="applierUser" javaType="SysUser" resultMap="ApplierUserResult" />
|
38
|
39
|
<association property="dept" javaType="SysDept" resultMap="SysDeptResult" />
|
|
@@ -41,6 +42,7 @@
|
41
|
42
|
<association property="managerUser" javaType="SysUser" resultMap="ManagerUserResult" />
|
42
|
43
|
<association property="unionUser" javaType="SysUser" resultMap="UnionUserResult" />
|
43
|
44
|
<association property="gmUser" javaType="SysUser" resultMap="GmUserResult" />
|
|
45
|
+ <association property="dszUser" javaType="SysUser" resultMap="DszUserResult" />
|
44
|
46
|
<association property="dispatchUser" javaType="SysUser" resultMap="DispatchUserResult" />
|
45
|
47
|
</resultMap>
|
46
|
48
|
|
|
@@ -69,6 +71,11 @@
|
69
|
71
|
<result property="nickName" column="gm_nick_name" />
|
70
|
72
|
</resultMap>
|
71
|
73
|
|
|
74
|
+ <resultMap type="SysUser" id="DszUserResult">
|
|
75
|
+ <result property="userId" column="user_id" />
|
|
76
|
+ <result property="nickName" column="dsz_nick_name" />
|
|
77
|
+ </resultMap>
|
|
78
|
+
|
72
|
79
|
<resultMap type="SysUser" id="DispatchUserResult">
|
73
|
80
|
<result property="userId" column="user_id" />
|
74
|
81
|
<result property="nickName" column="dispatch_nick_name" />
|
|
@@ -89,13 +96,15 @@
|
89
|
96
|
select ca.car_apply_id, ca.applier, u.nick_name as applier_nick_name, ca.use_dept, d.dept_name, ca.cars, ca.drivers, ca.project_id, p.project_number, p.project_name,
|
90
|
97
|
ca.apply_reason, ca.passengers, ca.apply_date, ca.begin_date, ca.end_date, ca.days, ca.dept_user_id, u1.nick_name as dept_nick_name, ca.dept_comment, ca.manager_user_id,
|
91
|
98
|
u2.nick_name as manager_nick_name, ca.manager_comment, ca.car_usage, ca.union_user_id, u3.nick_name as union_nick_name, ca.union_comment, ca.gm_user_id, u4.nick_name as gm_nick_name,
|
92
|
|
- ca.gm_comment, ca.dispatcher, u5.nick_name as dispatch_nick_name, ca.dispatch_comment, ca.estimate_cost, ca.dept_time, ca.manager_time, ca.union_time, ca.gm_time, ca.dispatch_time from cmc_car_approval as ca
|
|
99
|
+ ca.dsz_user_id, u5.nick_name as dsz_nick_name, ca.gm_comment, ca.dsz_comment, ca.dispatcher, u6.nick_name as dispatch_nick_name, ca.dispatch_comment, ca.estimate_cost, ca.dept_time,
|
|
100
|
+ ca.manager_time, ca.union_time, ca.gm_time, ca.dsz_time, ca.dispatch_time from cmc_car_approval as ca
|
93
|
101
|
left join sys_user as u on u.user_id = ca.applier
|
94
|
102
|
left join sys_user as u1 on u1.user_id = ca.dept_user_id
|
95
|
103
|
left join sys_user as u2 on u2.user_id = ca.manager_user_id
|
96
|
104
|
left join sys_user as u3 on u3.user_id = ca.union_user_id
|
97
|
105
|
left join sys_user as u4 on u4.user_id = ca.gm_user_id
|
98
|
|
- left join sys_user as u5 on u5.user_id = ca.dispatcher
|
|
106
|
+ left join sys_user as u5 on u5.user_id = ca.dsz_user_id
|
|
107
|
+ left join sys_user as u6 on u6.user_id = ca.dispatcher
|
99
|
108
|
left join sys_dept as d on d.dept_id = ca.use_dept
|
100
|
109
|
left join cmc_project as p on ca.project_id = p.project_id
|
101
|
110
|
</sql>
|
|
@@ -159,6 +168,8 @@
|
159
|
168
|
<if test="unionComment != null">union_comment,</if>
|
160
|
169
|
<if test="gmUserId != null">gm_user_id,</if>
|
161
|
170
|
<if test="gmComment != null">gm_comment,</if>
|
|
171
|
+ <if test="dszUserId != null">dsz_user_id,</if>
|
|
172
|
+ <if test="dszComment != null">dsz_comment,</if>
|
162
|
173
|
<if test="dispatcher != null">dispatcher,</if>
|
163
|
174
|
<if test="dispatchComment != null">dispatch_comment,</if>
|
164
|
175
|
<if test="estimateCost != null">estimate_cost,</if>
|
|
@@ -185,6 +196,8 @@
|
185
|
196
|
<if test="unionComment != null">#{unionComment},</if>
|
186
|
197
|
<if test="gmUserId != null">#{gmUserId},</if>
|
187
|
198
|
<if test="gmComment != null">#{gmComment},</if>
|
|
199
|
+ <if test="dszUserId != null">#{dszUserId},</if>
|
|
200
|
+ <if test="dszComment != null">#{dszComment},</if>
|
188
|
201
|
<if test="dispatcher != null">#{dispatcher},</if>
|
189
|
202
|
<if test="dispatchComment != null">#{dispatchComment},</if>
|
190
|
203
|
<if test="estimateCost != null">#{estimateCost},</if>
|
|
@@ -214,6 +227,8 @@
|
214
|
227
|
<if test="unionComment != null">union_comment = #{unionComment},</if>
|
215
|
228
|
<if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
|
216
|
229
|
<if test="gmComment != null">gm_comment = #{gmComment},</if>
|
|
230
|
+ <if test="dszUserId != null">dsz_user_id = #{dszUserId},</if>
|
|
231
|
+ <if test="dszComment != null">dsz_comment = #{dszComment},</if>
|
217
|
232
|
<if test="dispatcher != null">dispatcher = #{dispatcher},</if>
|
218
|
233
|
<if test="dispatchComment != null">dispatch_comment = #{dispatchComment},</if>
|
219
|
234
|
<if test="estimateCost != null">estimate_cost = #{estimateCost},</if>
|
|
@@ -221,6 +236,7 @@
|
221
|
236
|
<if test="managerTime != null ">manager_time = #{managerTime},</if>
|
222
|
237
|
<if test="unionTime != null ">union_time = #{unionTime},</if>
|
223
|
238
|
<if test="gmTime != null ">gm_time = #{gmTime},</if>
|
|
239
|
+ <if test="dszTime != null ">dsz_time = #{dszTime}</if>
|
224
|
240
|
<if test="dispatchTime != null ">dispatch_time = #{dispatchTime}</if>
|
225
|
241
|
</trim>
|
226
|
242
|
where car_apply_id = #{carApplyId}
|