Browse Source

凌云集团更改公司

peiguo 5 years ago
parent
commit
c40118991a
1 changed files with 2 additions and 2 deletions
  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>