| | |
| | | |
| | | <select id="performanceShiftList" resultMap="performanceShiftPageMap"> |
| | | SELECT |
| | | if(u.department is not null and u.department != '', CONCAT(u.name, '(', u.department, ')'), u.name) name, |
| | | GROUP_CONCAT(s.work_time, ':', s.shift, ':', s.id order by s.work_time SEPARATOR ';') AS shift_time, u.id user_id, u.department |
| | | <!--if(u.department is not null and u.department != '', CONCAT(u.name, '(', u.department, ')'), u.name) name,--> |
| | | u.name name, |
| | | GROUP_CONCAT(s.work_time, ':', s.shift, ':', s.id order by s.work_time SEPARATOR ';') AS shift_time, u.id user_id, u.dept_id |
| | | FROM performance_shift s |
| | | LEFT JOIN user u on u.id = s.user_id |
| | | <where> |
| | |
| | | <if test="laboratory != null and laboratory != ''"> |
| | | </if> |
| | | </where> |
| | | order by s.create_time |
| | | GROUP BY u.id |
| | | order by s.create_time |
| | | </select> |
| | | |
| | | <select id="seldepLimsId" resultType="java.lang.String"> |
| | |
| | | from user u |
| | | left join department_lims dl |
| | | on FIND_IN_SET(dl.id,u.depart_lims_id) |
| | | where dl.name in('通信产品实验室','电力产品实验室') |
| | | where dl.name in('通信产品实验室','电力产品实验室','检测办') |
| | | and u.status = 0 |
| | | and u.is_custom = 0 |
| | | </select> |