Commit 2ae387c9e96ef598f939b6fa50c118fed0a324d7
1 parent
21728859
新增参数校验
Showing
2 changed files
with
3 additions
and
1 deletions
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/dto/FollowAttachmentDTO.java
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/AbstractFollowStrategy.java
... | ... | @@ -525,13 +525,14 @@ public abstract class AbstractFollowStrategy implements FollowStrategy { |
525 | 525 | BV.isTrue(record.getUserId().equals(userId), () -> "无法跟进非本人待办任务"); |
526 | 526 | BV.isTrue(Boolean.FALSE.equals(record.getOutTime()), () -> "无法跟进已逾期的待办任务"); |
527 | 527 | FollowRecordLog recordLog = new FollowRecordLog(); |
528 | + recordLog.setId(dto.getId()); | |
528 | 529 | recordLog.setAttachments(dto.getAttachments()); |
529 | 530 | recordLog.setFeedbackType(dto.getFeedbackTypeEnum()); |
530 | 531 | recordLog.setAttType(dto.getAttTypeEnum()); |
531 | 532 | recordLog.setDescribes(dto.getDescribes()); |
532 | 533 | recordLog.setRecordId(dto.getRecordId()); |
533 | 534 | recordLog.setUploadTime(new Date()); |
534 | - followRecordLogService.save(recordLog); | |
535 | + followRecordLogService.saveOrUpdate(recordLog); | |
535 | 536 | feedbackTask(record.getTaskId(), dto.getFeedbackTypeEnum()); |
536 | 537 | } |
537 | 538 | ... | ... |