Commit c232dfda46b285b2963355cc51ccd13f0cb83507
1 parent
8138d2a7
BUG修复
Showing
1 changed file
with
10 additions
and
0 deletions
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 | import lombok.Data; |
7 | 7 | |
8 | 8 | import java.util.Date; |
9 | +import java.util.Objects; | |
9 | 10 | |
10 | 11 | /** |
11 | 12 | * @author : kurisu |
... | ... | @@ -54,14 +55,23 @@ public class FollowRecordVO { |
54 | 55 | private Integer times; |
55 | 56 | |
56 | 57 | public Integer getAttType() { |
58 | + if (Objects.isNull(attType)) { | |
59 | + return null; | |
60 | + } | |
57 | 61 | return attType.getValue(); |
58 | 62 | } |
59 | 63 | |
60 | 64 | public Integer getFollowType() { |
65 | + if (Objects.isNull(followType)) { | |
66 | + return null; | |
67 | + } | |
61 | 68 | return followType.getValue(); |
62 | 69 | } |
63 | 70 | |
64 | 71 | public Integer getFeedbackType() { |
72 | + if (Objects.isNull(feedbackType)) { | |
73 | + return null; | |
74 | + } | |
65 | 75 | return feedbackType.getValue(); |
66 | 76 | } |
67 | 77 | } | ... | ... |