| | |
| | | } |
| | | |
| | | @Override |
| | | public Double queryCompletedWork(TaskDaliyQueryCriteria criteria){ |
| | | public Double queryCompletedWork(TaskDaliyQueryCriteria criteria, Boolean readOnly){ |
| | | // 已完成工时 |
| | | Double completedWork = 0D; |
| | | // 国际时间转中国时间 |
| | |
| | | completedWork += taskDaliyDay.getConsumedHours(); |
| | | } |
| | | |
| | | // 本日任务日报 |
| | | taskDaliyDay.setSettlementStatus(Constant.SETTLEMENT_STATUS_SETTLED); |
| | | // 保存本日任务日报 |
| | | taskDaliyRepository.save(taskDaliyDay); |
| | | // 是否只读 |
| | | if (!readOnly) { |
| | | // 本日任务日报 |
| | | taskDaliyDay.setSettlementStatus(Constant.SETTLEMENT_STATUS_SETTLED); |
| | | // 保存本日任务日报 |
| | | taskDaliyRepository.save(taskDaliyDay); |
| | | } |
| | | } |
| | | } |
| | | } |