|
@@ -7,7 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
7
|
7
|
<resultMap type="CmcDeviceApproval" id="CmcDeviceApprovalResult">
|
8
|
8
|
<result property="deviceApplyId" column="device_apply_id" />
|
9
|
9
|
<result property="applier" column="applier" />
|
10
|
|
- <result property="deviceId" column="device_id" />
|
|
10
|
+ <result property="devices" column="devices" />
|
11
|
11
|
<result property="projectNumber" column="project_number" />
|
12
|
12
|
<result property="applyReason" column="apply_reason" />
|
13
|
13
|
<result property="applyDate" column="apply_date" />
|
|
@@ -27,14 +27,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
27
|
27
|
</resultMap>
|
28
|
28
|
|
29
|
29
|
<sql id="selectCmcDeviceApprovalVo">
|
30
|
|
- select device_apply_id, applier, device_id, project_number, apply_reason, apply_date, return_date, begin_date, begin_halfday, end_date, end_halfday, days, dept_user_id, dept_comment, manager_user_id, manager_comment, dispatcher, dispatch_comment, estimate_cost from cmc_device_approval
|
|
30
|
+ select device_apply_id, applier, devices, project_number, apply_reason, apply_date, return_date, begin_date, begin_halfday, end_date, end_halfday, days, dept_user_id, dept_comment, manager_user_id, manager_comment, dispatcher, dispatch_comment, estimate_cost from cmc_device_approval
|
31
|
31
|
</sql>
|
32
|
32
|
|
33
|
33
|
<select id="selectCmcDeviceApprovalList" parameterType="CmcDeviceApproval" resultMap="CmcDeviceApprovalResult">
|
34
|
34
|
<include refid="selectCmcDeviceApprovalVo"/>
|
35
|
35
|
<where>
|
36
|
36
|
<if test="applier != null "> and applier = #{applier}</if>
|
37
|
|
- <if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
|
|
37
|
+ <if test="devices != null and devices != ''"> and devices = #{devices}</if>
|
38
|
38
|
<if test="projectNumber != null and projectNumber != ''"> and project_number = #{projectNumber}</if>
|
39
|
39
|
<if test="applyReason != null and applyReason != ''"> and apply_reason = #{applyReason}</if>
|
40
|
40
|
<if test="applyDate != null "> and apply_date = #{applyDate}</if>
|
|
@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
64
|
64
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
65
|
65
|
<if test="deviceApplyId != null">device_apply_id,</if>
|
66
|
66
|
<if test="applier != null">applier,</if>
|
67
|
|
- <if test="deviceId != null">device_id,</if>
|
|
67
|
+ <if test="devices != null">devices,</if>
|
68
|
68
|
<if test="projectNumber != null">project_number,</if>
|
69
|
69
|
<if test="applyReason != null">apply_reason,</if>
|
70
|
70
|
<if test="applyDate != null">apply_date,</if>
|
|
@@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
85
|
85
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
86
|
86
|
<if test="deviceApplyId != null">#{deviceApplyId},</if>
|
87
|
87
|
<if test="applier != null">#{applier},</if>
|
88
|
|
- <if test="deviceId != null">#{deviceId},</if>
|
|
88
|
+ <if test="devices != null">#{devices},</if>
|
89
|
89
|
<if test="projectNumber != null">#{projectNumber},</if>
|
90
|
90
|
<if test="applyReason != null">#{applyReason},</if>
|
91
|
91
|
<if test="applyDate != null">#{applyDate},</if>
|
|
@@ -109,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
109
|
109
|
update cmc_device_approval
|
110
|
110
|
<trim prefix="SET" suffixOverrides=",">
|
111
|
111
|
<if test="applier != null">applier = #{applier},</if>
|
112
|
|
- <if test="deviceId != null">device_id = #{deviceId},</if>
|
|
112
|
+ <if test="devices != null">devices = #{devices},</if>
|
113
|
113
|
<if test="projectNumber != null">project_number = #{projectNumber},</if>
|
114
|
114
|
<if test="applyReason != null">apply_reason = #{applyReason},</if>
|
115
|
115
|
<if test="applyDate != null">apply_date = #{applyDate},</if>
|