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
| <?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.dnc.mapper.WorkStepMapper">
| <select id="getByUserPerms" resultType="org.jeecg.modules.dnc.entity.WorkStep">
| select
| p.step_id
| , p.product_id
| , p.component_id
| , p.parts_id
| , p.PROCESS_ID
| , p.step_name
| , p.step_code
| , p.CRAFT_NO
| , p.craft_version
| , p.step_type
| , p.CREATE_TIME
| , p.create_by
| , p.UPDATE_TIME
| , p.update_by
| from nc_work_step p
| inner join
| (select distinct step_id from nc_permission_stream where delete_flag = 0 and user_id=#{userId}) s
| on p.step_id = s.step_id
| where p.delete_flag = 0
| </select>
| </mapper>
|
|