Browse Source

成果需求显示BUG修复

Michael 8 years ago
parent
commit
70ddbf67e4

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

@@ -382,7 +382,8 @@ public class AchievementListBo {
 
 
 	public String getCountInterest() {
-		return String.valueOf(Integer.valueOf(countInterest)+20);
+		if (StringUtils.isBlank(countInterest)) countInterest = "0";
+			return String.valueOf(Integer.valueOf(countInterest)+20);
 	}
 
 	public void setCountInterest(String countInterest) {

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

@@ -318,6 +318,7 @@ public class DemandListBo {
 
 
 	public String getCountInterest() {
+		if (StringUtils.isBlank(countInterest)) countInterest = "0";
 		return String.valueOf(Integer.valueOf(countInterest)+20);
 	}