|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
7
|
7
|
<resultMap type="CmcBorrow" id="CmcBorrowResult">
|
8
|
8
|
<result property="borrowId" column="borrow_id" />
|
9
|
9
|
<result property="projectId" column="project_id" />
|
|
10
|
+ <result property="undertakingDept" column="undertaking_dept" />
|
10
|
11
|
<result property="applyReason" column="apply_reason" />
|
11
|
12
|
<result property="borrowUsage" column="borrow_usage" />
|
12
|
13
|
<result property="applier" column="applier" />
|
|
@@ -90,10 +91,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
90
|
91
|
<result property="projectId" column="project_id" />
|
91
|
92
|
<result property="projectNumber" column="project_number" />
|
92
|
93
|
<result property="projectName" column="project_name" />
|
|
94
|
+ <result property="undertakingDept" column="undertaking_dept" />
|
93
|
95
|
</resultMap>
|
94
|
96
|
|
95
|
97
|
<sql id="selectCmcBorrowVo">
|
96
|
|
- select b.borrow_id, b.project_id, p.project_number, p.project_name, b.apply_reason, b.applier, u.nick_name as applier_nick_name, d.dept_name, b.apply_dept, b.remark, b.borrow_usage,
|
|
98
|
+ select b.borrow_id, b.project_id, p.project_number, p.project_name, p.undertaking_dept, b.apply_reason, b.applier, u.nick_name as applier_nick_name, d.dept_name, b.apply_dept, b.remark, b.borrow_usage,
|
97
|
99
|
b.apply_date, b.apply_amount, b.manager_amount, b.dept_comment, b.dept_user_id, u1.nick_name as dept_nick_name, b.manager_comment, b.manager_user_id, u2.nick_name as manager_nick_name,
|
98
|
100
|
b.zjl_user_id, u3.nick_name as zjl_nick_name, b.zjl_comment, b.dsz_comment, b.union_user_id, u4.nick_name as union_nick_name, b.union_comment, b.cw_user_id, u5.nick_name as cw_nick_name,
|
99
|
101
|
b.dsz_user_id, u6.nick_name as dsz_nick_name, b.cw_comment, b.dept_time, b.manager_time, b.zjl_time, b.dsz_time, b.lend_time, b.lend_document, b.borrow_document, b.union_time from cmc_borrow as b
|
|
@@ -112,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
112
|
114
|
<include refid="selectCmcBorrowVo"/>
|
113
|
115
|
<where>
|
114
|
116
|
<if test="projectId != null and projectId != ''"> and b.project_id = #{projectId}</if>
|
|
117
|
+ <if test="undertakingDept != null and undertakingDept != ''"> and p.undertaking_dept = #{undertakingDept}</if>
|
115
|
118
|
<if test="applyReason != null and applyReason != ''"> and b.apply_reason = #{applyReason}</if>
|
116
|
119
|
<if test="borrowUsage != null and borrowUsage != ''"> and b.borrow_usage = #{borrowUsage}</if>
|
117
|
120
|
<if test="applyDept != null and applyDept != ''"> and b.apply_dept = #{applyDept}</if>
|