Преглед изворни кода

删掉uservo的两个注解。

xuxuan пре 5 година
родитељ
комит
25ac766a71
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      site/src/main/java/com/mooctest/crowd/site/data/vo/UserVO.java

+ 1 - 4
site/src/main/java/com/mooctest/crowd/site/data/vo/UserVO.java

@@ -28,9 +28,7 @@ public class UserVO implements Serializable {
     private String email;
     private String mobile;
     private String password;
-    @JsonIgnore
     private String province;
-    @JsonIgnore
     private String city;
     private String photoUrl;
     private Double allProjectPrice;
@@ -43,10 +41,9 @@ public class UserVO implements Serializable {
     private String address;
 
 
-
     public UserVO(User user) {
         BeanUtils.copyProperties(user, this);
-        this.address=this.province+this.city;
+        this.address = this.province + this.city;
         this.password = "********";
         if (user.getEvaluationAgency() != null) {
             this.authType = "agency";