Browse Source

设置地址没有返回长沙,设置关注数初始为20

anderx 8 years ago
parent
commit
136b9e8018

+ 4 - 0
src/main/java/com/goafanti/achievement/bo/AchievementListBo.java

@@ -7,6 +7,7 @@ import org.apache.commons.lang3.time.DateFormatUtils;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonFormat.Shape;
 import com.goafanti.common.constant.AFTConstants;
+import com.goafanti.common.utils.StringUtils;
 
 public class AchievementListBo {
 
@@ -397,6 +398,9 @@ public class AchievementListBo {
 	}
 
 	public String getOwnerPostalAddress() {
+		if (StringUtils.isEmpty(ownerPostalAddress)) {
+			return "湖南长沙";
+		}
 		return ownerPostalAddress;
 	}
 

+ 18 - 1
src/main/java/com/goafanti/achievement/bo/AchievementPartnerListBo.java

@@ -8,6 +8,7 @@ import org.apache.commons.lang3.time.DateFormatUtils;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonFormat.Shape;
 import com.goafanti.common.constant.AFTConstants;
+import com.goafanti.common.utils.StringUtils;
 
 public class AchievementPartnerListBo {
 	private String		id;
@@ -97,6 +98,11 @@ public class AchievementPartnerListBo {
 	
 	private String buyIntention;
 	
+	/**
+	 * 所有人地址
+	 */
+	private String 	ownerPostalAddress;
+	
 	public Integer getFieldA() {
 		return fieldA;
 	}
@@ -246,7 +252,7 @@ public class AchievementPartnerListBo {
 
 	public String getCountInterest() {
 	    
-		return countInterest;
+		return String.valueOf(Integer.valueOf(countInterest)+20);
 	}
 
 	public void setCountInterest(String countInterest) {
@@ -268,6 +274,17 @@ public class AchievementPartnerListBo {
 	public void setBuyIntention(String buyIntention) {
 		this.buyIntention = buyIntention;
 	}
+
+	public String getOwnerPostalAddress() {
+		if (StringUtils.isEmpty(ownerPostalAddress)) {
+			return "湖南长沙";
+		}
+		return ownerPostalAddress;
+	}
+
+	public void setOwnerPostalAddress(String ownerPostalAddress) {
+		this.ownerPostalAddress = ownerPostalAddress;
+	}
 	
 	
 	

+ 1 - 1
src/main/java/com/goafanti/achievement/bo/AchievementUserOwnerDetailBo.java

@@ -105,7 +105,7 @@ public class AchievementUserOwnerDetailBo extends AchievementOrgOwnerDetailBo {
 	}
 
 	public String getCountInterest() {
-		return CountInterest;
+		return String.valueOf(Integer.valueOf(CountInterest)+20);
 	}
 
 	public void setCountInterest(String countInterest) {

+ 5 - 1
src/main/java/com/goafanti/demand/bo/DemandListBo.java

@@ -11,6 +11,7 @@ import org.apache.commons.lang3.time.DateFormatUtils;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonFormat.Shape;
 import com.goafanti.common.constant.AFTConstants;
+import com.goafanti.common.utils.StringUtils;
 
 public class DemandListBo {
 
@@ -317,7 +318,7 @@ public class DemandListBo {
 
 
 	public String getCountInterest() {
-		return countInterest;
+		return String.valueOf(Integer.valueOf(countInterest)+20);
 	}
 
 	public void setCountInterest(String countInterest) {
@@ -341,6 +342,9 @@ public class DemandListBo {
 	}
 
 	public String getEmployerAddress() {
+		if (StringUtils.isEmpty(employerAddress)) {
+			return "湖南长沙";
+		}
 		return employerAddress;
 	}
 

+ 1 - 1
src/main/java/com/goafanti/demand/bo/ObjectInterestListBo.java

@@ -55,7 +55,7 @@ public class ObjectInterestListBo {
 		}
 	}
 	public String getCountInterest() {
-		return countInterest;
+		return String.valueOf(Integer.valueOf(countInterest)+20);
 	}
 	public void setCountInterest(String countInterest) {
 		this.countInterest = countInterest;

+ 26 - 0
src/main/java/com/goafanti/portal/bo/DemandSearchListBo.java

@@ -8,6 +8,7 @@ import org.apache.commons.lang3.time.DateFormatUtils;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonFormat.Shape;
 import com.goafanti.common.constant.AFTConstants;
+import com.goafanti.common.utils.StringUtils;
 
 public class DemandSearchListBo {
 	private String		id;
@@ -90,6 +91,12 @@ public class DemandSearchListBo {
 	 * 接单数
 	 */
 	private String orderCount;
+	/**
+	 * 关注数量
+	 */
+	private String countInterest;
+	
+	private String  employerAddress;
 	
 	public String getEmployerName() {
 		return employerName;
@@ -259,5 +266,24 @@ public class DemandSearchListBo {
 		this.orderCount = orderCount;
 	}
 
+	public String getCountInterest() {
+		return String.valueOf(Integer.valueOf(countInterest)+20);
+	}
+
+	public void setCountInterest(String countInterest) {
+		this.countInterest = countInterest;
+	}
+
+	public String getEmployerAddress() {
+		if (StringUtils.isEmpty(employerAddress)) {
+			return "湖南长沙";
+		}
+		return employerAddress;
+	}
+
+	public void setEmployerAddress(String employerAddress) {
+		this.employerAddress = employerAddress;
+	}
+
 	
 }

+ 1 - 1
src/main/java/com/goafanti/user/bo/UserIdentityBo.java

@@ -101,7 +101,7 @@ public class UserIdentityBo extends UserIdentity {
 	}
 
 	public String getCountInterest() {
-		return countInterest;
+		return String.valueOf(Integer.valueOf(countInterest)+20);
 	}
 
 	public void setCountInterest(String countInterest) {