| | |
| | | public R<Boolean> audit(@RequestBody TTaskAuditDTO dto) { |
| | | dto.setAuditTime(LocalDateTime.now()); |
| | | TTask task = taskCleanerService.getById(dto.getTaskId()); |
| | | TTaskDetail one = taskDetailService.lambdaQuery().eq(TTaskDetail::getTaskId, dto.getTaskId()) |
| | | .orderByDesc(BaseModel::getCreateTime).last("limit 1").one(); |
| | | dto.setClearStatus(one.getClearStatus()); |
| | | TLocation location = locationService.getById(task.getLocationId()); |
| | | TNotice tNotice = new TNotice(); |
| | | TNoticeSet noticeSet = noticeSetService.lambdaQuery().eq(TNoticeSet::getType, 2).last("limit 1") |
| | |
| | | noticeService.save(tNotice); |
| | | dto.setAuditPerson(tokenService.getLoginUser().getUserId()+""); |
| | | taskDetailService.save(dto); |
| | | one.setAuditPerson(tokenService.getLoginUser().getUserId()+""); |
| | | one.setAuditTime(LocalDateTime.now()); |
| | | one.setAuditRemark(dto.getAuditRemark()); |
| | | one.setAuditStatus(dto.getAuditStatus()); |
| | | taskDetailService.updateById(one); |
| | | return R.ok(); |
| | | } |
| | | @Log(title = "批量审核任务", businessType = BusinessType.UPDATE) |
| | |
| | | byId4.setUnqualifiedName(byId3.getDataContent()); |
| | | } |
| | | } |
| | | SysUser sysUser = sysUserService.selectUserById(Long.valueOf(byId4.getAuditPerson())); |
| | | if (sysUser!=null){ |
| | | byId4.setAuditPersonName(sysUser.getUserName()); |
| | | if (byId4.getAuditPerson()!=null){ |
| | | SysUser sysUser = sysUserService.selectUserById(Long.valueOf(byId4.getAuditPerson())); |
| | | if (sysUser!=null){ |
| | | byId4.setAuditPersonName(sysUser.getUserName()); |
| | | } |
| | | } |
| | | taskDetailVO.setTaskDetail(byId4); |
| | | return R.ok(taskDetailVO); |