Commit 03e9c11f by Kazuyuki Hida

ローカル保存している件数の補正を外した(復活させるかもしれない)。

parent 32a1d389
......@@ -1226,17 +1226,17 @@ public class OperationLogic extends AbstractLogic {
WorkingReportDao dao = AbstractDao.getDao(WorkingReportDao.class);
// ローカル保存している分を補正する
Map<Long, Integer> working = dao.getWorkingTaskReportCounts();
for (OperationDto dto : list) {
Integer workingCount = working.get(dto.operationId);
if (workingCount != null) {
if (dto.reportType == 1) {
// 定期点検の場合は、先にレポートが作られるので、その分を差し引く
dto.statusNotStartedCount -= workingCount;
}
dto.statusWorkingCount += workingCount;
}
}
// Map<Long, Integer> working = dao.getWorkingTaskReportCounts();
// for (OperationDto dto : list) {
// Integer workingCount = working.get(dto.operationId);
// if (workingCount != null) {
// if (dto.reportType == 1) {
// // 定期点検の場合は、先にレポートが作られるので、その分を差し引く
// dto.statusNotStartedCount -= workingCount;
// }
// dto.statusWorkingCount += workingCount;
// }
// }
return list;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment