Antiloveg 8 years ago
parent
commit
fa174aaca3

+ 5 - 3
src/main/java/com/goafanti/common/controller/PortalController.java

@@ -60,6 +60,9 @@ public class PortalController extends BaseController {
 			demand = demandService.findOrgPortalDemandDetail(id);
 		}
 		if (null != demand) {
+			if (null != demand.getBudgetCost()) {
+				demand.setBudgetCostS(demand.getBudgetCost() + UNIT);
+			}
 			Integer industryCategoryA = demand.getIndustryCategoryA();
 			String industryCategory = "";
 			boolean a = Boolean.FALSE;
@@ -81,7 +84,7 @@ public class PortalController extends BaseController {
 						industryCategory += (a ? s.getIndustryCategoryAS() : "") + (a && b ? DELIMITER : "")
 								+ (b ? s.getIndustryCategoryBS() : "");
 						s.setIndustryCategory(industryCategory);
-						if (null != s.getBudgetCost()){
+						if (null != s.getBudgetCost()) {
 							s.setBudgetCostS(s.getBudgetCost() + UNIT);
 						}
 					}
@@ -101,7 +104,7 @@ public class PortalController extends BaseController {
 			industryCategory += (a ? demand.getIndustryCategoryAS() : "") + (a && b ? DELIMITER : "")
 					+ (b ? demand.getIndustryCategoryBS() : "");
 			demand.setIndustryCategory(industryCategory);
-			
+
 			String location = "";
 			String province = demand.getProvince();
 			String city = demand.getCity();
@@ -202,6 +205,5 @@ public class PortalController extends BaseController {
 		mv.addObject("achievement", achievement);
 		return mv;
 	}
-	
 
 }

+ 24 - 16
src/main/java/com/goafanti/portal/bo/DemandPortalDetailBo.java

@@ -3,32 +3,42 @@ package com.goafanti.portal.bo;
 import java.math.BigDecimal;
 
 public class DemandPortalDetailBo {
-	private String			id;
+	private String		id;
 
-	private String			name;
+	private String		name;
 
-	private String			keyword;
+	private String		keyword;
 
-	private Integer			industryCategoryA;
+	private Integer		industryCategoryA;
 
-	private String			industryCategoryAS;
+	private String		industryCategoryAS;
 
-	private String			industryCategoryBS;
+	private String		industryCategoryBS;
 
-	private BigDecimal		budgetCost;
+	private BigDecimal	budgetCost;
 
-	private String			province;
+	private String		budgetCostS;
 
-	private String			city;
+	private String		province;
 
-	private String			problemDes;
+	private String		city;
 
-	private String			interestId;
+	private String		problemDes;
 
-	private String			location;
+	private String		interestId;
+
+	private String		location;
+
+	private String		industryCategory;
+
+	public String getBudgetCostS() {
+		return budgetCostS;
+	}
+
+	public void setBudgetCostS(String budgetCostS) {
+		this.budgetCostS = budgetCostS;
+	}
 
-	private String			industryCategory;
-	
 	public String getIndustryCategory() {
 		return industryCategory;
 	}
@@ -85,7 +95,6 @@ public class DemandPortalDetailBo {
 		this.industryCategoryA = industryCategoryA;
 	}
 
-
 	public String getIndustryCategoryAS() {
 		return industryCategoryAS;
 	}
@@ -134,5 +143,4 @@ public class DemandPortalDetailBo {
 		this.city = city;
 	}
 
-
 }

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/detail/demandDetail.html

@@ -73,7 +73,7 @@
 				<span class="detial_sub_icon"> <img
 					th:src="${portalHost +'/img/demand_ico_3.png'}" alt="预算" />
 				</span> <span class="detial_sub_title"> 预算: </span> <span
-					class="money_text" th:text="${demand.budgetCost + '万元'}"> 面议
+					class="money_text" th:text="${demand.budgetCostS}"> 面议
 				</span>
 			</div>
 			<div class="col-md-6 detial_sub">