Antiloveg 8 years ago
parent
commit
3e5c8e59d2

+ 4 - 9
src/main/java/com/goafanti/common/controller/PortalController.java

@@ -1,6 +1,5 @@
 package com.goafanti.common.controller;
 
-import java.math.BigDecimal;
 import java.util.Arrays;
 import java.util.List;
 
@@ -82,6 +81,9 @@ public class PortalController extends BaseController {
 						industryCategory += (a ? s.getIndustryCategoryAS() : "") + (a && b ? DELIMITER : "")
 								+ (b ? s.getIndustryCategoryBS() : "");
 						s.setIndustryCategory(industryCategory);
+						if (null != s.getBudgetCost()){
+							s.setBudgetCostS(s.getBudgetCost() + UNIT);
+						}
 					}
 
 				}
@@ -99,7 +101,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();
@@ -201,12 +203,5 @@ public class PortalController extends BaseController {
 		return mv;
 	}
 	
-	/*public static void main(String[] args) {
-		BigDecimal bd = new BigDecimal(null);
-		System.out.println(bd);
-		if (bd.equals(null)){
-			System.out.println(true);
-		}
-	}*/
 
 }

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

@@ -133,7 +133,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="${similar.budgetCost + '万元'}">
+						class="money_text" th:text="${similar.budgetCostS}">
 						10000000元 </span>
 				</div>
 				<div class="detial_sub">