|
|
|
@ -210,7 +210,7 @@
|
|
|
|
|
where nick_name = #{part}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectTaskId" resultType="java.lang.Integer">
|
|
|
|
|
select id from asset_task where dwmc like concat('%',#{dwmc},'%') and type like concat('%',#{type},'%')
|
|
|
|
|
select id from asset_task where dwmc like concat('%',#{dwmc},'%') and type like concat('%',#{type},'%') and task_status = '1'
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getAppSchema" resultType="com.ruoyi.common.core.domain.entity.SysDept">
|
|
|
|
|
WITH RECURSIVE category_tree AS (-- 初始查询,找出根节点或特定parentid的记录
|
|
|
|
@ -222,7 +222,7 @@
|
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
|
WHERE
|
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
|
|
|
|
|
GROUP BY
|
|
|
|
|
d.dept_id,
|
|
|
|
|
d.parent_id,
|
|
|
|
@ -244,7 +244,8 @@
|
|
|
|
|
) SELECT
|
|
|
|
|
*
|
|
|
|
|
FROM
|
|
|
|
|
category_tree;
|
|
|
|
|
category_tree
|
|
|
|
|
ORDER BY dept_id desc
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getEmailSchema" resultType="com.ruoyi.common.core.domain.entity.SysDept">
|
|
|
|
|
WITH RECURSIVE category_tree AS (-- 初始查询,找出根节点或特定parentid的记录
|
|
|
|
@ -256,7 +257,7 @@
|
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
|
WHERE
|
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
|
|
|
|
|
GROUP BY
|
|
|
|
|
d.dept_id,
|
|
|
|
|
d.parent_id,
|
|
|
|
@ -278,7 +279,8 @@
|
|
|
|
|
) SELECT
|
|
|
|
|
*
|
|
|
|
|
FROM
|
|
|
|
|
category_tree;
|
|
|
|
|
category_tree
|
|
|
|
|
ORDER BY dept_id desc
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getMiniSchema" resultType="com.ruoyi.common.core.domain.entity.SysDept">
|
|
|
|
|
WITH RECURSIVE category_tree AS (-- 初始查询,找出根节点或特定parentid的记录
|
|
|
|
@ -290,7 +292,7 @@
|
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
|
WHERE
|
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
|
|
|
|
|
GROUP BY
|
|
|
|
|
d.dept_id,
|
|
|
|
|
d.parent_id,
|
|
|
|
@ -312,7 +314,8 @@
|
|
|
|
|
) SELECT
|
|
|
|
|
*
|
|
|
|
|
FROM
|
|
|
|
|
category_tree;
|
|
|
|
|
category_tree
|
|
|
|
|
ORDER BY dept_id desc
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getGzpSchema" resultType="com.ruoyi.common.core.domain.entity.SysDept">
|
|
|
|
|
WITH RECURSIVE category_tree AS (-- 初始查询,找出根节点或特定parentid的记录
|
|
|
|
@ -324,7 +327,7 @@
|
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
|
WHERE
|
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
|
|
|
|
|
GROUP BY
|
|
|
|
|
d.dept_id,
|
|
|
|
|
d.parent_id,
|
|
|
|
@ -346,7 +349,8 @@
|
|
|
|
|
) SELECT
|
|
|
|
|
*
|
|
|
|
|
FROM
|
|
|
|
|
category_tree;
|
|
|
|
|
category_tree
|
|
|
|
|
ORDER BY dept_id desc
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getWebSchema" resultType="com.ruoyi.common.core.domain.entity.SysDept">
|
|
|
|
|
WITH RECURSIVE category_tree AS (-- 初始查询,找出根节点或特定parentid的记录
|
|
|
|
@ -358,7 +362,6 @@
|
|
|
|
|
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
|
|
|
|
|
WHERE
|
|
|
|
|
d.dept_id IS NOT NULL
|
|
|
|
|
AND d.parent_id != 0
|
|
|
|
|
GROUP BY
|
|
|
|
|
d.dept_id,
|
|
|
|
|
d.parent_id,
|
|
|
|
@ -380,7 +383,8 @@
|
|
|
|
|
) SELECT
|
|
|
|
|
*
|
|
|
|
|
FROM
|
|
|
|
|
category_tree;
|
|
|
|
|
category_tree
|
|
|
|
|
ORDER BY dept_id desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<update id="deleteUnits">
|
|
|
|
|