Commit 2ae387c9e96ef598f939b6fa50c118fed0a324d7

Authored by 张志伟
1 parent 21728859

:fire: 新增参数校验

fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/dto/FollowAttachmentDTO.java
@@ -20,6 +20,7 @@ import java.util.Objects; @@ -20,6 +20,7 @@ import java.util.Objects;
20 @Data 20 @Data
21 @ToString 21 @ToString
22 public class FollowAttachmentDTO { 22 public class FollowAttachmentDTO {
  23 + private Long id;
23 /** 24 /**
24 * 跟进记录id 25 * 跟进记录id
25 */ 26 */
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,13 +525,14 @@ public abstract class AbstractFollowStrategy implements FollowStrategy {
525 BV.isTrue(record.getUserId().equals(userId), () -> "无法跟进非本人待办任务"); 525 BV.isTrue(record.getUserId().equals(userId), () -> "无法跟进非本人待办任务");
526 BV.isTrue(Boolean.FALSE.equals(record.getOutTime()), () -> "无法跟进已逾期的待办任务"); 526 BV.isTrue(Boolean.FALSE.equals(record.getOutTime()), () -> "无法跟进已逾期的待办任务");
527 FollowRecordLog recordLog = new FollowRecordLog(); 527 FollowRecordLog recordLog = new FollowRecordLog();
  528 + recordLog.setId(dto.getId());
528 recordLog.setAttachments(dto.getAttachments()); 529 recordLog.setAttachments(dto.getAttachments());
529 recordLog.setFeedbackType(dto.getFeedbackTypeEnum()); 530 recordLog.setFeedbackType(dto.getFeedbackTypeEnum());
530 recordLog.setAttType(dto.getAttTypeEnum()); 531 recordLog.setAttType(dto.getAttTypeEnum());
531 recordLog.setDescribes(dto.getDescribes()); 532 recordLog.setDescribes(dto.getDescribes());
532 recordLog.setRecordId(dto.getRecordId()); 533 recordLog.setRecordId(dto.getRecordId());
533 recordLog.setUploadTime(new Date()); 534 recordLog.setUploadTime(new Date());
534 - followRecordLogService.save(recordLog); 535 + followRecordLogService.saveOrUpdate(recordLog);
535 feedbackTask(record.getTaskId(), dto.getFeedbackTypeEnum()); 536 feedbackTask(record.getTaskId(), dto.getFeedbackTypeEnum());
536 } 537 }
537 538