修复小计导出bug
This commit is contained in:
+8
-2
@@ -101,8 +101,14 @@ public class TaskExport {
|
|||||||
}
|
}
|
||||||
def total = []
|
def total = []
|
||||||
total[2] = "小计"
|
total[2] = "小计"
|
||||||
total[3] = map.get(result[result.size() - 1][0]).get("totalScore")
|
if (map.get(result[result.size() - 1][0]) != null) {
|
||||||
total[4] = map.get(result[result.size() - 1][0]).get("workTime")
|
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
|
result << total
|
||||||
|
|
||||||
for (Map<String, Double> info : map.values()) {
|
for (Map<String, Double> info : map.values()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user