Browse Source

1.如果为设置考勤时段,则查全天。
2.大屏修改。

zhengqiang 5 years ago
parent
commit
554c346f71

+ 3 - 1
web/src/main/java/com/jpsoft/smart/modules/business/controller/HealthPublicityController.java

@@ -74,6 +74,7 @@ public class HealthPublicityController {
         }
 
         List<Map> itemList = new ArrayList<>();
+        int visitorNum = checkedVisitorNum;
 
         for (int i = 0; i < personDeviceLogList1.size(); i++) {
             PersonDeviceLog item = personDeviceLogList1.get(i);
@@ -81,7 +82,8 @@ public class HealthPublicityController {
             Map<String, Object> map = new HashMap<>();
 
             if (item.getPerson() == null) {
-                map.put("name", "访客" + (checkedVisitorNum - i));
+                map.put("name", "访客" + visitorNum);
+                visitorNum--;
             } else {
                 map.put("name", item.getPerson().getName());
             }