Commit 3e686d04 by wangli

bugfix

1 parent 2a7ea8b9
......@@ -310,7 +310,8 @@ public class ScheduleServiceImpl implements ScheduleService {
List<Map<String, Object>> results = orderRequestMPDao.selectMaps(wrapper);
for (Map<String, Object> result : results) {
String skill = (String) result.get("skill");
Integer count = (Integer) result.get("count");
Long countValue = (Long) result.get("count");
Integer count = countValue.intValue();
String skillCategory = skillMap.get(skill);
Integer value = map.getOrDefault(skillCategory, 0);
......@@ -336,7 +337,8 @@ public class ScheduleServiceImpl implements ScheduleService {
List<Map<String, Object>> results = orderRequestMPDao.selectMaps(wrapper);
for (Map<String, Object> result : results) {
String groupId = (String) result.get("org_group_id");
Integer count = (Integer) result.get("count");
Long countValue = (Long) result.get("count");
Integer count = countValue.intValue();
Integer groupCategory = groupCategoryMapping.get(groupId);
Integer value = map.getOrDefault(groupCategory, 0);
......@@ -364,15 +366,17 @@ public class ScheduleServiceImpl implements ScheduleService {
for (Map<String, Object> result : results) {
String method = (String) result.get("appointment_method");
String status = (String) result.get("appointment_status");
Integer count = (Integer) result.get("count");
Long countValue = (Long) result.get("count");
int count = countValue.intValue();
if (status.equals("NOT_ASSIGNED")) {
notAssignTotal += 1;
notAssignTotal += count;
continue;
}
if (method.equals("MANUAL")) {
manualTotal += 1;
manualTotal += count;
} else {
autoTotal += 1;
autoTotal += count;
}
}
map.put("autoTotal", autoTotal);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!