|
@@ -23,7 +23,8 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDeptVo">
|
|
|
- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
|
|
|
+ select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time,d.remarks
|
|
|
+ ,d.address,d.project_contact,d.bank_account_name,d.bank_of_deposit,d.account_number
|
|
|
from sys_dept d
|
|
|
</sql>
|
|
|
|
|
@@ -60,7 +61,8 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
|
|
|
- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,d.remarks,d.address,
|
|
|
+ select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,d.remarks,d.address
|
|
|
+ ,d.project_contact,d.bank_account_name,d.bank_of_deposit,d.account_number,
|
|
|
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
|
from sys_dept d
|
|
|
where d.dept_id = #{deptId}
|
|
@@ -110,6 +112,10 @@
|
|
|
<if test="email != null and email != ''">email,</if>
|
|
|
<if test="address != null and address != ''">address,</if>
|
|
|
<if test="remarks != null and remarks != ''">remarks,</if>
|
|
|
+ <if test="projectContact != null and projectContact != ''">project_contact,</if>
|
|
|
+ <if test="bankAccountName != null and bankAccountName != ''">bank_account_name,</if>
|
|
|
+ <if test="bankOfDeposit != null and bankOfDeposit != ''">bank_of_deposit,</if>
|
|
|
+ <if test="accountNumber != null and accountNumber != ''">account_number,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
create_time
|
|
@@ -124,6 +130,10 @@
|
|
|
<if test="email != null and email != ''">#{email},</if>
|
|
|
<if test="address != null and address != ''">#{address},</if>
|
|
|
<if test="remarks != null and remarks != ''">#{remarks},</if>
|
|
|
+ <if test="projectContact != null and projectContact != ''">#{projectContact},</if>
|
|
|
+ <if test="bankAccountName != null and bankAccountName != ''">#{bankAccountName},</if>
|
|
|
+ <if test="bankOfDeposit != null and bankOfDeposit != ''">#{bankOfDeposit},</if>
|
|
|
+ <if test="accountNumber != null and accountNumber != ''">#{accountNumber},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
sysdate()
|
|
@@ -138,6 +148,10 @@
|
|
|
<if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
|
|
|
<if test="address != null and address != ''">address = #{address},</if>
|
|
|
<if test="remarks != null and remarks != ''">remarks = #{remarks},</if>
|
|
|
+ <if test="projectContact != null and projectContact != ''">project_contact = #{projectContact},</if>
|
|
|
+ <if test="bankAccountName != null and bankAccountName != ''">bank_account_name = #{bankAccountName},</if>
|
|
|
+ <if test="bankOfDeposit != null and bankOfDeposit != ''">bank_of_deposit = #{bankOfDeposit},</if>
|
|
|
+ <if test="accountNumber != null and accountNumber != ''">account_number = #{accountNumber},</if>
|
|
|
<if test="orderNum != null">order_num = #{orderNum},</if>
|
|
|
<if test="leader != null">leader = #{leader},</if>
|
|
|
<if test="phone != null">phone = #{phone},</if>
|