| | |
| | | taskResult.setDistributeStatus(1); |
| | | taskResult.setUpdateUser(AuthUtil.getUserId()); |
| | | taskResult.setUpdateTime(new Date()); |
| | | if (!gdTaskResultService.updateById(taskResult)) { |
| | | if (!gdTaskResultService.updateTaskResultById(taskResult)) { |
| | | throw new RuntimeException("成果状态更新失败"); |
| | | } |
| | | return true; |
| | |
| | | if (taskResult == null || (taskResult.getIsDeleted() != null && taskResult.getIsDeleted() != 0)) { |
| | | throw new RuntimeException("成果不存在"); |
| | | } |
| | | // 使用XML方式更新成果信息(更新所有字段) |
| | | taskResult.setDistributeStatus(targetStatus); |
| | | taskResult.setUpdateUser(AuthUtil.getUserId()); |
| | | taskResult.setUpdateTime(new Date()); |
| | | if (!gdTaskResultService.updateById(taskResult)) { |
| | | if (!gdTaskResultService.updateTaskResultById(taskResult)) { |
| | | throw new RuntimeException("成果状态更新失败"); |
| | | } |
| | | return true; |