瀏覽代碼

Merge branch 'master' of jishutao/jitao-server into test

liliang4869 7 年之前
父節點
當前提交
469b80b4c4

+ 4 - 4
src/main/java/com/goafanti/business/controller/UserJtBusinessController.java

@@ -160,10 +160,10 @@ public class UserJtBusinessController extends CertifyApiController{
 	
 		JtBusinessProject currentP=jtBusinessService.getBusinessProjectDetail(id);
 		Integer audit=currentP.getAuditStatus();
-		if(audit != ProjectAuditStatus.CREATE.getCode()  && audit !=ProjectAuditStatus.REVOKE.getCode()&& audit!=ProjectAuditStatus.UNAUDITED.getCode()){
-			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "当前状态无法发布"));
-			return res;
-		}
+//		if(audit != ProjectAuditStatus.CREATE.getCode()  && audit !=ProjectAuditStatus.REVOKE.getCode()&& audit!=ProjectAuditStatus.UNAUDITED.getCode()){
+//			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "当前状态无法发布"));
+//			return res;
+//		}
 		JtBusinessProject jtBusinessProject = new JtBusinessProject();
 		jtBusinessProject.setId(id);
 		jtBusinessProject.setAuditStatus(ProjectAuditStatus.SUBMIT.getCode());

+ 1 - 1
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -672,7 +672,7 @@ public class WebpageController extends BaseController {
 		modelAndView.addObject("demand",demand); 
 		
 		//精品需求
-		List<DemandListBo>boutiqueDemandList=LimitLengthUtil.LimitListLengthRandomly(demandService.getBoutiqueDemandList(10,url,""),3,10); 
+		List<DemandListBo>boutiqueDemandList=LimitLengthUtil.LimitListLengthRandomly(demandService.getHotDemand(10,url,""),3,10); 
 		modelAndView.addObject("reboutiquedemand",boutiqueDemandList); 
 		
 		//猜你喜欢

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

@@ -57,7 +57,7 @@
 
 					</div>
 					<div class="fine">
-						<div class="fine_title">精品需求</div>
+						<div class="fine_title">热门需求</div>
 						<div th:each="reboutiquedemand:${reboutiquedemand}" class="pointer">
 							
 							<div th:if="${reboutiquedemand.firstPic} == null " >