Commit c232dfda46b285b2963355cc51ccd13f0cb83507

Authored by 张志伟
1 parent 8138d2a7

:bug: BUG修复

fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/vo/follow/FollowRecordVO.java
@@ -6,6 +6,7 @@ import cn.fw.valhalla.domain.enums.FollowTypeEnum; @@ -6,6 +6,7 @@ import cn.fw.valhalla.domain.enums.FollowTypeEnum;
6 import lombok.Data; 6 import lombok.Data;
7 7
8 import java.util.Date; 8 import java.util.Date;
  9 +import java.util.Objects;
9 10
10 /** 11 /**
11 * @author : kurisu 12 * @author : kurisu
@@ -54,14 +55,23 @@ public class FollowRecordVO { @@ -54,14 +55,23 @@ public class FollowRecordVO {
54 private Integer times; 55 private Integer times;
55 56
56 public Integer getAttType() { 57 public Integer getAttType() {
  58 + if (Objects.isNull(attType)) {
  59 + return null;
  60 + }
57 return attType.getValue(); 61 return attType.getValue();
58 } 62 }
59 63
60 public Integer getFollowType() { 64 public Integer getFollowType() {
  65 + if (Objects.isNull(followType)) {
  66 + return null;
  67 + }
61 return followType.getValue(); 68 return followType.getValue();
62 } 69 }
63 70
64 public Integer getFeedbackType() { 71 public Integer getFeedbackType() {
  72 + if (Objects.isNull(feedbackType)) {
  73 + return null;
  74 + }
65 return feedbackType.getValue(); 75 return feedbackType.getValue();
66 } 76 }
67 } 77 }