shudonghui 1 년 전
부모
커밋
18b7d38105
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      sop-business/src/main/resources/mapper/DeviceMonitorMapper.xml

+ 1 - 1
sop-business/src/main/resources/mapper/DeviceMonitorMapper.xml

@@ -63,7 +63,7 @@
 
         SELECT s.id ,
         s.`name` NAME,
-        sum(l.devices) devices
+        ifNull(sum(l.devices),0) devices
 
         FROM
         t_b_service s