|
@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
9
|
9
|
<result property="applier" column="applier" />
|
10
|
10
|
<result property="useDept" column="use_dept" />
|
11
|
11
|
<result property="devices" column="devices" />
|
|
12
|
+ <result property="modifyDevices" column="modify_devices" />
|
12
|
13
|
<result property="projectId" column="project_id" />
|
13
|
14
|
<result property="applyReason" column="apply_reason" />
|
14
|
15
|
<result property="applyDate" column="apply_date" />
|
|
@@ -59,9 +60,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
59
|
60
|
</resultMap>
|
60
|
61
|
|
61
|
62
|
<sql id="selectCmcDeviceApprovalVo">
|
62
|
|
- select da.device_apply_id, da.applier, u.nick_name as applier_nick_name, da.use_dept, d.dept_name, da.devices, da.project_id, p.project_number, p.project_name,
|
63
|
|
- da.apply_reason, da.apply_date, da.return_date, da.begin_date, da.end_date, da.days, da.state, da.manager_user_id, u1.nick_name as manager_nick_name,
|
64
|
|
- da.manager_comment, da.dispatcher, u2.nick_name as dispatch_nick_name, da.dispatch_comment, da.estimate_cost, da.remark, da.manager_time, da.dispatch_time from cmc_device_approval as da
|
|
63
|
+ select da.device_apply_id, da.applier, u.nick_name as applier_nick_name, da.use_dept, d.dept_name, da.devices, da.modify_devices, da.project_id, p.project_number, p.project_name,
|
|
64
|
+ da.apply_reason, da.apply_date, da.return_date, da.begin_date, da.end_date, da.days, da.state, da.manager_user_id, u1.nick_name as manager_nick_name, da.manager_comment,
|
|
65
|
+ da.dispatcher, u2.nick_name as dispatch_nick_name, da.dispatch_comment, da.estimate_cost, da.remark, da.manager_time, da.dispatch_time from cmc_device_approval as da
|
65
|
66
|
left join sys_user as u on u.user_id = da.applier
|
66
|
67
|
left join sys_user as u1 on u1.user_id = da.manager_user_id
|
67
|
68
|
left join sys_user as u2 on u2.user_id = da.dispatcher
|
|
@@ -75,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
75
|
76
|
<if test="applier != null "> and da.applier = #{applier}</if>
|
76
|
77
|
<if test="useDept != null "> and da.use_dept = #{useDept}</if>
|
77
|
78
|
<if test="devices != null and devices != ''"> and da.devices like concat('%', #{devices}, '%')</if>
|
|
79
|
+ <if test="modifyDevices != null and modifyDevices != ''"> and da.modify_devices like concat('%', #{modifyDevices}, '%')</if>
|
78
|
80
|
<if test="projectId != null and projectId != ''"> and da.project_id = #{projectId}</if>
|
79
|
81
|
<if test="applyReason != null and applyReason != ''"> and da.apply_reason = #{applyReason}</if>
|
80
|
82
|
<if test="applyDate != null "> and da.apply_date = #{applyDate}</if>
|
|
@@ -104,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
104
|
106
|
<if test="applier != null">applier,</if>
|
105
|
107
|
<if test="useDept != null">use_dept,</if>
|
106
|
108
|
<if test="devices != null">devices,</if>
|
|
109
|
+ <if test="modifyDevices != null">modify_devices,</if>
|
107
|
110
|
<if test="projectId != null">project_id,</if>
|
108
|
111
|
<if test="applyReason != null">apply_reason,</if>
|
109
|
112
|
<if test="applyDate != null">apply_date,</if>
|
|
@@ -126,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
126
|
129
|
<if test="applier != null">#{applier},</if>
|
127
|
130
|
<if test="useDept != null">#{useDept},</if>
|
128
|
131
|
<if test="devices != null">#{devices},</if>
|
|
132
|
+ <if test="modifyDevices != null">#{modifyDevices},</if>
|
129
|
133
|
<if test="projectId != null">#{projectId},</if>
|
130
|
134
|
<if test="applyReason != null">#{applyReason},</if>
|
131
|
135
|
<if test="applyDate != null">#{applyDate},</if>
|
|
@@ -151,6 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
151
|
155
|
<if test="applier != null">applier = #{applier},</if>
|
152
|
156
|
<if test="useDept != null">use_dept = #{useDept},</if>
|
153
|
157
|
<if test="devices != null">devices = #{devices},</if>
|
|
158
|
+ <if test="modifyDevices != null">modify_devices = #{modifyDevices},</if>
|
154
|
159
|
<if test="projectId != null">project_id = #{projectId},</if>
|
155
|
160
|
<if test="applyReason != null">apply_reason = #{applyReason},</if>
|
156
|
161
|
<if test="applyDate != null">apply_date = #{applyDate},</if>
|