Crunchy
2024-05-08 38a12f2899e0f48383058250ee378fd3b5855658
performance-server/src/main/resources/mapper/PerformanceShiftMapper.xml
@@ -4,11 +4,10 @@
    <select id="performanceShiftPage" resultType="map">
        SELECT
            s.id,
            if(u.department is not null and u.department != '', CONCAT(u.name, '(', u.department, ')'), u.name) name,
            GROUP_CONCAT(s.work_time, ':', s.shift SEPARATOR ';') AS shiftTime
        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 SEPARATOR ';') AS shiftTime
        FROM performance_shift s
                 LEFT JOIN user u on u.id = s.user_id
        LEFT JOIN user u on u.id = s.user_id
        GROUP BY u.id
        <where>
            <if test="time != null and time != ''">