| | |
| | | , p.parts_status |
| | | , p.description |
| | | , p.CREATE_TIME |
| | | , p.CREATE_USER |
| | | , p.create_by |
| | | , p.UPDATE_TIME |
| | | , p.UPDATE_USER |
| | | , p.update_by |
| | | , (select sys_user.realname from sys_user where p.create_by=sys_user.username) as createName |
| | | , (select sys_user.realname from sys_user where p.update_by=sys_user.username) as updateName |
| | | from nc_parts_info p |
| | | inner join |
| | | (select distinct parts_id from nc_permission_stream where delete_flag = 0 and user_id=#{userId}) s |
| | | on p.parts_id = s.parts_id |
| | | (select business_id,business_type from nc_permission_stream_new where delete_flag = 0 and user_id=#{userId}) s |
| | | on p.parts_id = s.business_id and s.business_type='3' |
| | | where p.delete_flag = 0 |
| | | </select> |
| | | </mapper> |