Commit 6ee632676172d7975cfcfaa5cfe59b7757e43b34

Authored by 张志伟
2 parents 4d50293d 2ae387c9

Merge remote-tracking branch 'origin/dev' into test

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 */
@@ -44,6 +45,7 @@ public class FollowAttachmentDTO { @@ -44,6 +45,7 @@ public class FollowAttachmentDTO {
44 * 反馈类型 45 * 反馈类型
45 */ 46 */
46 @EnumValue(enumClass = FeedbackTypeEnum.class, message = "反馈类型不正确") 47 @EnumValue(enumClass = FeedbackTypeEnum.class, message = "反馈类型不正确")
  48 + @NotNull(message = "反馈类型不能为空")
47 private Integer feedbackType; 49 private Integer feedbackType;
48 /** 50 /**
49 * 描述 51 * 描述
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