zhuguifei
2025-04-28 442928123f63ee497d766f9a7a14f0a6ee067e25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.activiti.mapper.ActNodeMapper">
 
    <select id="findUserByNodeId" resultType="org.jeecg.common.system.vo.LoginUser">
        select * from sys_user
        where username in (select relate_id from act_z_node where node_id = #{nodeId} and proc_def_id = #{procDefId} and type = 1)
            and del_flag = 0
    </select>
    <select id="findRoleByNodeId" resultType="org.jeecg.common.base.entity.Role">
        select * from sys_role
        where role_code in (select relate_id from act_z_node where node_id = #{nodeId} and proc_def_id = #{procDefId} and type = 0)
    </select>
    <select id="findDepartmentByNodeId" resultType="org.jeecg.common.base.entity.Department">
        select * from sys_depart
        where id in (select relate_id from act_z_node where node_id = #{nodeId} and proc_def_id = #{procDefId} and type = 2)
            and del_flag = 0
    </select>
    <select id="findDepartmentManageByNodeId" resultType="org.jeecg.common.base.entity.Department">
        select * from sys_depart
        where id in (select relate_id from act_z_node where node_id = #{nodeId} and proc_def_id = #{procDefId} and type = 5)
            and del_flag = 0
    </select>
    <select id="findFormVariableByNodeId" resultType="java.lang.String">
        select relate_id from act_z_node where node_id = #{nodeId} and proc_def_id = #{procDefId} and type = 6
    </select>
</mapper>