Antiloveg 8 years ago
parent
commit
4ed31d7bad
1 changed files with 13 additions and 3 deletions
  1. 13 3
      src/main/java/com/goafanti/common/controller/PortalController.java

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

@@ -31,11 +31,13 @@ public class PortalController extends BaseController {
 	@Resource
 	private FieldGlossoryService	fieldGlossoryService;
 
-	private static final String		UNIT		= "万元";
+	private static final String		UNIT				= "万元";
 
-	private static final int		MULTIPLE	= 20;
+	private static final int		MULTIPLE			= 20;
 
-	private static final String		DELIMITER	= "/";
+	private static final String		DELIMITER			= "/";
+
+	private static final String		PRICE_NEGOTIABLE	= "价格面议";
 
 	@RequestMapping(value = "/index", method = RequestMethod.GET)
 	public String index(ModelAndView modelview) {
@@ -62,6 +64,8 @@ public class PortalController extends BaseController {
 		if (null != demand) {
 			if (null != demand.getBudgetCost()) {
 				demand.setBudgetCostS(demand.getBudgetCost() + UNIT);
+			} else {
+				demand.setBudgetCostS(PRICE_NEGOTIABLE);
 			}
 			Integer industryCategoryA = demand.getIndustryCategoryA();
 			String industryCategory = "";
@@ -86,6 +90,8 @@ public class PortalController extends BaseController {
 						s.setIndustryCategory(industryCategory);
 						if (null != s.getBudgetCost()) {
 							s.setBudgetCostS(s.getBudgetCost() + UNIT);
+						} else {
+							s.setBudgetCostS(PRICE_NEGOTIABLE);
 						}
 					}
 
@@ -144,6 +150,8 @@ public class PortalController extends BaseController {
 						}
 						if (null != bo.getTransferPrice()) {
 							bo.setTransferPriceS(bo.getTransferPrice() + UNIT);
+						} else {
+							bo.setTransferPriceS(PRICE_NEGOTIABLE);
 						}
 					}
 				}
@@ -197,6 +205,8 @@ public class PortalController extends BaseController {
 			location += (StringUtils.isBlank(province) ? "" : province) + (StringUtils.isBlank(city) ? "" : city);
 			if (null != achievement.getTransferPrice()) {
 				achievement.setTransferPriceS(achievement.getTransferPrice() + UNIT);
+			} else {
+				achievement.setTransferPriceS(PRICE_NEGOTIABLE);
 			}
 			achievement.setLocation(location);