소스 검색

凌云集团更改公司

peiguo 5 년 전
부모
커밋
c40118991a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      whepi-web/src/main/resources/mapper/SweepCodeMapper.xml

+ 2 - 2
whepi-web/src/main/resources/mapper/SweepCodeMapper.xml

@@ -436,7 +436,7 @@
         SELECT
         CONCAT( d.ridgepole, d.unit ) AS unit,
         de.department_name AS departmentName,
-        count(de.department_name) as clockCount
+        count(ifnull(de.department_id,unit)) AS clockCount
         FROM out_scan c
         inner join (select user_id,min(date) as dateStr
         from out_scan
@@ -469,7 +469,7 @@
                 and de.department_id = #{departmentId}
             </if>
         </where>
-        group by de.department_name, d.ridgepole, d.unit,de.department_name
+        group by de.department_id, d.ridgepole, d.unit,de.department_name
         order by unit,de.department_name
     </select>