|
@@ -18,6 +18,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
18
|
18
|
<result property="zhUserId" column="zh_user_id" />
|
19
|
19
|
<result property="zhTime" column="zh_time" />
|
20
|
20
|
<result property="zhComment" column="zh_comment" />
|
|
21
|
+ <result property="jsbUserId" column="jsb_user_id" />
|
|
22
|
+ <result property="jsbTime" column="jsb_time" />
|
|
23
|
+ <result property="jsbComment" column="jsb_comment" />
|
21
|
24
|
<result property="jsUserId" column="js_user_id" />
|
22
|
25
|
<result property="jsTime" column="js_time" />
|
23
|
26
|
<result property="jsComment" column="js_comment" />
|
|
@@ -39,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
39
|
42
|
<result property="amount" column="amount" />
|
40
|
43
|
<association property="reportUser" javaType="SysUser" resultMap="ReportUserResult" />
|
41
|
44
|
<association property="zhUser" javaType="SysUser" resultMap="ZhUserResult" />
|
|
45
|
+ <association property="jsbUser" javaType="SysUser" resultMap="jsbUserResult" />
|
42
|
46
|
<association property="jsUser" javaType="SysUser" resultMap="JsUserResult" />
|
43
|
47
|
<association property="jyUser" javaType="SysUser" resultMap="JyUserResult" />
|
44
|
48
|
<association property="managerUser" javaType="SysUser" resultMap="ManagerUserResult" />
|
|
@@ -58,6 +62,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
58
|
62
|
<result property="nickName" column="zh_nick_name" />
|
59
|
63
|
</resultMap>
|
60
|
64
|
|
|
65
|
+ <resultMap type="SysUser" id="jsbUserResult">
|
|
66
|
+ <result property="userId" column="user_id" />
|
|
67
|
+ <result property="nickName" column="jsb_nick_name" />
|
|
68
|
+ </resultMap>
|
|
69
|
+
|
61
|
70
|
<resultMap type="SysUser" id="JsUserResult">
|
62
|
71
|
<result property="userId" column="user_id" />
|
63
|
72
|
<result property="nickName" column="js_nick_name" />
|
|
@@ -96,17 +105,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
96
|
105
|
</resultMap>
|
97
|
106
|
|
98
|
107
|
<sql id="selectCmcSettleVo">
|
99
|
|
- select distinct s.settle_id, s.project_id, p.project_number, p.project_name, p.undertaking_dept, s.xm_name, s.workload_report, s.reporter, u.nick_name as report_nick_name, s.report_time, s.settle_comment, s.zh_user_id, u1.nick_name as zh_nick_name,
|
100
|
|
- s.zh_time, s.zh_comment, s.js_user_id, u2.nick_name as js_nick_name, s.js_time, s.js_comment, s.jy_user_id, u3.nick_name as jy_nick_name, s.jy_time, s.jy_comment, ss.amount,
|
101
|
|
- s.manager_user_id, u4.nick_name as manager_nick_name, s.manager_time, s.manager_comment, s.gm_user_id, u5.nick_name as gm_nick_name, s.gm_time, s.gm_comment, ss.content,
|
102
|
|
- s.dsz_user_id, u6.nick_name as dsz_nick_name, s.dsz_time, s.dsz_comment, s.settle_document, s.modify_document, s.final_document, s.report_dept, d.dept_name from cmc_settle as s
|
|
108
|
+ select distinct s.settle_id, s.project_id, p.project_number, p.project_name, p.undertaking_dept, s.xm_name, s.workload_report, s.reporter, u.nick_name as report_nick_name, s.report_time,
|
|
109
|
+ s.settle_comment, s.zh_user_id, u1.nick_name as zh_nick_name,s.zh_time, s.zh_comment, s.jsb_user_id, u2.nick_name as jsb_nick_name,s.jsb_time, s.jsb_comment,
|
|
110
|
+ s.js_user_id, u3.nick_name as js_nick_name, s.js_time, s.js_comment, s.jy_user_id, u4.nick_name as jy_nick_name, s.jy_time, s.jy_comment, ss.amount,
|
|
111
|
+ s.manager_user_id, u5.nick_name as manager_nick_name, s.manager_time, s.manager_comment, s.gm_user_id, u6.nick_name as gm_nick_name, s.gm_time, s.gm_comment, ss.content,
|
|
112
|
+ s.dsz_user_id, u7.nick_name as dsz_nick_name, s.dsz_time, s.dsz_comment, s.settle_document, s.modify_document, s.final_document, s.report_dept, d.dept_name from cmc_settle as s
|
103
|
113
|
left join sys_user as u on u.user_id = s.reporter
|
104
|
114
|
left join sys_user as u1 on u1.user_id = s.zh_user_id
|
105
|
|
- left join sys_user as u2 on u2.user_id = s.js_user_id
|
106
|
|
- left join sys_user as u3 on u3.user_id = s.jy_user_id
|
107
|
|
- left join sys_user as u4 on u4.user_id = s.manager_user_id
|
108
|
|
- left join sys_user as u5 on u5.user_id = s.gm_user_id
|
109
|
|
- left join sys_user as u6 on u6.user_id = s.dsz_user_id
|
|
115
|
+ left join sys_user as u2 on u2.user_id = s.jsb_user_id
|
|
116
|
+ left join sys_user as u3 on u3.user_id = s.js_user_id
|
|
117
|
+ left join sys_user as u4 on u4.user_id = s.jy_user_id
|
|
118
|
+ left join sys_user as u5 on u5.user_id = s.manager_user_id
|
|
119
|
+ left join sys_user as u6 on u6.user_id = s.gm_user_id
|
|
120
|
+ left join sys_user as u7 on u7.user_id = s.dsz_user_id
|
110
|
121
|
left join cmc_project as p on p.project_id = s.project_id
|
111
|
122
|
left join sys_dept as d on d.dept_id = s.report_dept
|
112
|
123
|
left join cmc_settle_summary as ss on ss.settle_id = s.settle_id
|
|
@@ -129,6 +140,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
129
|
140
|
<if test="zhUserId != null "> and s.zh_user_id = #{zhUserId}</if>
|
130
|
141
|
<if test="zhTime != null "> and s.zh_time = #{zhTime}</if>
|
131
|
142
|
<if test="zhComment != null and zhComment != ''"> and s.zh_comment = #{zhComment}</if>
|
|
143
|
+ <if test="jsbUserId != null "> and s.jsb_user_id = #{jsbUserId}</if>
|
|
144
|
+ <if test="jsbTime != null "> and s.jsb_time = #{jsbTime}</if>
|
|
145
|
+ <if test="jsbComment != null and jsbComment != ''"> and s.jsb_comment = #{jsbComment}</if>
|
132
|
146
|
<if test="jsUserId != null "> and s.js_user_id = #{jsUserId}</if>
|
133
|
147
|
<if test="jsTime != null "> and s.js_time = #{jsTime}</if>
|
134
|
148
|
<if test="jsComment != null and jsComment != ''"> and s.js_comment = #{jsComment}</if>
|
|
@@ -166,6 +180,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
166
|
180
|
<if test="zhUserId != null">zh_user_id,</if>
|
167
|
181
|
<if test="zhTime != null">zh_time,</if>
|
168
|
182
|
<if test="zhComment != null">zh_comment,</if>
|
|
183
|
+ <if test="jsbUserId != null">jsb_user_id,</if>
|
|
184
|
+ <if test="jsbTime != null">jsb_time,</if>
|
|
185
|
+ <if test="jsbComment != null">jsb_comment,</if>
|
169
|
186
|
<if test="jsUserId != null">js_user_id,</if>
|
170
|
187
|
<if test="jsTime != null">js_time,</if>
|
171
|
188
|
<if test="jsComment != null">js_comment,</if>
|
|
@@ -197,6 +214,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
197
|
214
|
<if test="zhUserId != null">#{zhUserId},</if>
|
198
|
215
|
<if test="zhTime != null">#{zhTime},</if>
|
199
|
216
|
<if test="zhComment != null">#{zhComment},</if>
|
|
217
|
+ <if test="jsbUserId != null">#{jsbUserId},</if>
|
|
218
|
+ <if test="jsbTime != null">#{jsbTime},</if>
|
|
219
|
+ <if test="jsbComment != null">#{jsbComment},</if>
|
200
|
220
|
<if test="jsUserId != null">#{jsUserId},</if>
|
201
|
221
|
<if test="jsTime != null">#{jsTime},</if>
|
202
|
222
|
<if test="jsComment != null">#{jsComment},</if>
|
|
@@ -231,6 +251,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
231
|
251
|
<if test="zhUserId != null">zh_user_id = #{zhUserId},</if>
|
232
|
252
|
<if test="zhTime != null">zh_time = #{zhTime},</if>
|
233
|
253
|
<if test="zhComment != null">zh_comment = #{zhComment},</if>
|
|
254
|
+ <if test="jsbUserId != null">jsb_user_id = #{jsbUserId},</if>
|
|
255
|
+ <if test="jsbTime != null">jsb_time = #{jsbTime},</if>
|
|
256
|
+ <if test="jsbComment != null">jsb_comment = #{jsbComment},</if>
|
234
|
257
|
<if test="jsUserId != null">js_user_id = #{jsUserId},</if>
|
235
|
258
|
<if test="jsTime != null">js_time = #{jsTime},</if>
|
236
|
259
|
<if test="jsComment != null">js_comment = #{jsComment},</if>
|