|
|
|
|
@ -120,26 +120,11 @@ |
|
|
|
|
</foreach> |
|
|
|
|
and is_deleted = 0 |
|
|
|
|
</select> |
|
|
|
|
<select id="assLimsTree" resultType="org.springblade.modules.system.pojo.vo.DeptVO"> |
|
|
|
|
SELECT |
|
|
|
|
id, |
|
|
|
|
parent_id, |
|
|
|
|
dept_name AS title, |
|
|
|
|
id AS "value", |
|
|
|
|
id AS "key" |
|
|
|
|
FROM |
|
|
|
|
blade_dept |
|
|
|
|
WHERE |
|
|
|
|
is_deleted = 0 AND dept_category = 5 AND id IN ( |
|
|
|
|
SELECT |
|
|
|
|
dept_id |
|
|
|
|
FROM |
|
|
|
|
lab_maintenance_plan |
|
|
|
|
WHERE |
|
|
|
|
is_deleted = 0 |
|
|
|
|
<!-- <if test = "createUser!=null and createUser!=''" >AND create_user = #{createUser}</if>--> |
|
|
|
|
) |
|
|
|
|
<if test = "tenantId!=null and tenantId!=''" >AND tenant_id = #{tenantId}</if> |
|
|
|
|
<select id="assLimsTree" resultMap="treeNodeResultMap"> |
|
|
|
|
select id, parent_id, dept_name as title, id as "value", id as "key" from blade_dept where is_deleted = 0 and dept_category = 5 |
|
|
|
|
<if test="_parameter!=null and _parameter!=''"> |
|
|
|
|
and tenant_id = #{_parameter} |
|
|
|
|
</if> |
|
|
|
|
ORDER BY sort |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|