|
@@ -141,7 +141,9 @@
|
|
|
|
|
|
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
|
|
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
|
|
select d.type,d.dept_id,d.is_work_section,d.is_sort_packaging,d.tenant_id,d.parent_id, d.ancestors, d.dept_name,d.dept_code, d.order_num, d.phone, d.email, d.status,d.equiment_flag,d.auto_allocation,
|
|
select d.type,d.dept_id,d.is_work_section,d.is_sort_packaging,d.tenant_id,d.parent_id, d.ancestors, d.dept_name,d.dept_code, d.order_num, d.phone, d.email, d.status,d.equiment_flag,d.auto_allocation,
|
|
- (select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
|
|
|
|
+ d.supplier_id,d.is_outsourcing,
|
|
|
|
+ (select dept_name from sys_dept where dept_id = d.parent_id) parent_name,
|
|
|
|
+ (select name from biz_supplier where id = d.supplier_id) supplier_name
|
|
from sys_dept d
|
|
from sys_dept d
|
|
where d.dept_id = #{deptId}
|
|
where d.dept_id = #{deptId}
|
|
</select>
|
|
</select>
|
|
@@ -196,6 +198,8 @@
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
<if test="email != null and email != ''">email,</if>
|
|
<if test="email != null and email != ''">email,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="status != null">status,</if>
|
|
|
|
+ <if test="isOutsourcing != null">is_outsourcing,</if>
|
|
|
|
+ <if test="supplierId != null">supplier_id,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="type != null ">type,</if>
|
|
<if test="type != null ">type,</if>
|
|
create_time
|
|
create_time
|
|
@@ -214,6 +218,8 @@
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
<if test="email != null and email != ''">#{email},</if>
|
|
<if test="email != null and email != ''">#{email},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="status != null">#{status},</if>
|
|
|
|
+ <if test="isOutsourcing != null">#{isOutsourcing},</if>
|
|
|
|
+ <if test="supplierId != null">#{supplierId},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="type != null">#{type},</if>
|
|
<if test="type != null">#{type},</if>
|
|
sysdate()
|
|
sysdate()
|
|
@@ -237,6 +243,8 @@
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
<if test="email != null">email = #{email},</if>
|
|
<if test="email != null">email = #{email},</if>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
|
|
+ <if test="isOutsourcing != null">is_outsourcing = #{isOutsourcing},</if>
|
|
|
|
+ <if test="supplierId != null">supplier_id = #{supplierId},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="type != null">type = #{type},</if>
|
|
<if test="type != null">type = #{type},</if>
|
|
update_time = sysdate()
|
|
update_time = sysdate()
|