|
@@ -25,6 +25,8 @@
|
25
|
25
|
<result property="managerComment" column="manager_comment" />
|
26
|
26
|
<result property="unionUserId" column="union_user_id" />
|
27
|
27
|
<result property="unionComment" column="union_comment" />
|
|
28
|
+ <result property="gmUserId" column="gm_user_id" />
|
|
29
|
+ <result property="gmComment" column="gm_comment" />
|
28
|
30
|
<result property="dispatcher" column="dispatcher" />
|
29
|
31
|
<result property="dispatchComment" column="dispatch_comment" />
|
30
|
32
|
<result property="estimateCost" column="estimate_cost" />
|
|
@@ -50,7 +52,7 @@
|
50
|
52
|
</resultMap>
|
51
|
53
|
|
52
|
54
|
<sql id="selectCmcCarApprovalVo">
|
53
|
|
- select ca.car_apply_id, ca.applier, u.nick_name, ca.use_dept, d.dept_name, ca.cars, ca.drivers, ca.project_id, p.project_number, p.project_name, ca.apply_reason, ca.passengers, ca.apply_date, ca.begin_date, ca.begin_halfday, ca.end_date, ca.end_halfday, ca.days, ca.dept_user_id, ca.dept_comment, ca.manager_user_id, ca.manager_comment, ca.union_user_id, ca.union_comment, ca.dispatcher, ca.dispatch_comment, ca.estimate_cost from cmc_car_approval as ca
|
|
55
|
+ select ca.car_apply_id, ca.applier, u.nick_name, ca.use_dept, d.dept_name, ca.cars, ca.drivers, ca.project_id, p.project_number, p.project_name, ca.apply_reason, ca.passengers, ca.apply_date, ca.begin_date, ca.begin_halfday, ca.end_date, ca.end_halfday, ca.days, ca.dept_user_id, ca.dept_comment, ca.manager_user_id, ca.manager_comment, ca.union_user_id, ca.union_comment, ca.gm_user_id, ca.gm_comment, ca.dispatcher, ca.dispatch_comment, ca.estimate_cost from cmc_car_approval as ca
|
54
|
56
|
left join sys_user as u on u.user_id = ca.applier
|
55
|
57
|
left join sys_dept as d on d.dept_id = ca.use_dept
|
56
|
58
|
left join cmc_project as p on ca.project_id = p.project_id
|
|
@@ -78,6 +80,8 @@
|
78
|
80
|
<if test="managerComment != null and managerComment != ''"> and ca.manager_comment = #{managerComment}</if>
|
79
|
81
|
<if test="unionUserId != null "> and ca.union_user_id = #{unionUserId}</if>
|
80
|
82
|
<if test="unionComment != null and unionComment != ''"> and ca.union_comment = #{unionComment}</if>
|
|
83
|
+ <if test="gmUserId != null "> and ca.gm_user_id = #{gmUserId}</if>
|
|
84
|
+ <if test="gmComment != null and gmComment != ''"> and ca.gm_comment = #{gmComment}</if>
|
81
|
85
|
<if test="dispatcher != null "> and ca.dispatcher = #{dispatcher}</if>
|
82
|
86
|
<if test="dispatchComment != null and dispatchComment != ''"> and ca.dispatch_comment = #{dispatchComment}</if>
|
83
|
87
|
<if test="estimateCost != null "> and ca.estimate_cost = #{estimateCost}</if>
|
|
@@ -112,6 +116,8 @@
|
112
|
116
|
<if test="managerComment != null">manager_comment,</if>
|
113
|
117
|
<if test="unionUserId != null">union_user_id,</if>
|
114
|
118
|
<if test="unionComment != null">union_comment,</if>
|
|
119
|
+ <if test="gmUserId != null">gm_user_id,</if>
|
|
120
|
+ <if test="gmComment != null">gm_comment,</if>
|
115
|
121
|
<if test="dispatcher != null">dispatcher,</if>
|
116
|
122
|
<if test="dispatchComment != null">dispatch_comment,</if>
|
117
|
123
|
<if test="estimateCost != null">estimate_cost,</if>
|
|
@@ -137,6 +143,8 @@
|
137
|
143
|
<if test="managerComment != null">#{managerComment},</if>
|
138
|
144
|
<if test="unionUserId != null">#{unionUserId},</if>
|
139
|
145
|
<if test="unionComment != null">#{unionComment},</if>
|
|
146
|
+ <if test="gmUserId != null">#{gmUserId},</if>
|
|
147
|
+ <if test="gmComment != null">#{gmComment},</if>
|
140
|
148
|
<if test="dispatcher != null">#{dispatcher},</if>
|
141
|
149
|
<if test="dispatchComment != null">#{dispatchComment},</if>
|
142
|
150
|
<if test="estimateCost != null">#{estimateCost},</if>
|
|
@@ -165,6 +173,8 @@
|
165
|
173
|
<if test="managerComment != null">manager_comment = #{managerComment},</if>
|
166
|
174
|
<if test="unionUserId != null">union_user_id = #{unionUserId},</if>
|
167
|
175
|
<if test="unionComment != null">union_comment = #{unionComment},</if>
|
|
176
|
+ <if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
|
|
177
|
+ <if test="gmComment != null">gm_comment = #{gmComment},</if>
|
168
|
178
|
<if test="dispatcher != null">dispatcher = #{dispatcher},</if>
|
169
|
179
|
<if test="dispatchComment != null">dispatch_comment = #{dispatchComment},</if>
|
170
|
180
|
<if test="estimateCost != null">estimate_cost = #{estimateCost},</if>
|