修复时间传参

This commit is contained in:
沈健
2021-05-12 10:56:56 +08:00
parent 14de739089
commit e20f9c22f1
2 changed files with 10 additions and 4 deletions
@@ -18,7 +18,7 @@ class DingTalkUtils {
String monthStartTime = DateUtils.formatDateByPattern(now, "yyyy-MM-dd HH:mm:ss")
String endTime = DateUtils.formatDateByPattern(DateUtils.getLastDayOfMonth(now), "yyyy-MM-dd") + " 23:59:59"
ScoreExport.export(startTime, monthStartTime, endTime)
ProjectExport.export(monthStartTime, monthStartTime, endTime)
TaskExport.export(endTime, monthStartTime, endTime)
ProjectExport.export(startTime, monthStartTime, endTime)
TaskExport.export(startTime, monthStartTime, endTime)
}
}
@@ -101,8 +101,14 @@ public class TaskExport {
}
def total = []
total[2] = "小计"
total[3] = map.get(result[result.size() - 1][0]).get("totalScore")
total[4] = map.get(result[result.size() - 1][0]).get("workTime")
if (map.get(result[result.size() - 1][0]) != null) {
total[3] = map.get(result[result.size() - 1][0]).get("totalScore")
total[4] = map.get(result[result.size() - 1][0]).get("workTime")
} else {
total[3] = 0
total[4] = 0
print("无该信息" + result[result.size() - 1][0])
}
result << total
for (Map<String, Double> info : map.values()) {