|
|
|
@ -39,7 +39,8 @@ public class CockpitMonthPerformanceInfoCmd {
|
|
|
|
|
userList.add(employeeId);
|
|
|
|
|
|
|
|
|
|
LocalDate currentDate = LocalDate.now();
|
|
|
|
|
Map<String, Object> scoreMap = new HashMap<String, Object>();
|
|
|
|
|
List<Map<String, Object>> scoreList = new ArrayList<Map<String, Object>>();
|
|
|
|
|
Map<String, Object> scoreMap = null;
|
|
|
|
|
for (int i = 0; i < 6; i++) {
|
|
|
|
|
LocalDate lastLocalDate = currentDate.minus(i, ChronoUnit.MONTHS); // 当前日期减去6个月
|
|
|
|
|
LocalDate startDay = lastLocalDate.with(TemporalAdjusters.firstDayOfMonth()); // 计算当前月份的首日
|
|
|
|
@ -62,9 +63,12 @@ public class CockpitMonthPerformanceInfoCmd {
|
|
|
|
|
}
|
|
|
|
|
log.error("currentMonth:"+currentMonth);
|
|
|
|
|
|
|
|
|
|
scoreMap.put(currentMonth,score);
|
|
|
|
|
scoreMap = new HashMap<String, Object>();
|
|
|
|
|
scoreMap.put("month",currentMonth);
|
|
|
|
|
scoreMap.put("score",score);
|
|
|
|
|
scoreList.add(scoreMap);
|
|
|
|
|
}
|
|
|
|
|
dataMap.put("datas",scoreMap);
|
|
|
|
|
dataMap.put("datas",scoreList);
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|