Commit d56911d6 by Yujin Seo

Merge branch 'feature/contract/sato/1.0.300_51419_count2' into 'contract/sato/1.0.300'

作業一覧で、ローカル保存している報告数の補正を行うようにした。

See merge request !297
parents d9e70a6b 09c839fb
......@@ -1271,17 +1271,13 @@ 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) {
dto.statusNotStartedCount += 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