|
|
@@ -271,7 +271,11 @@ public class AdminJtBusinessController extends CertifyApiController{
|
|
|
jtBusinessService.updateProject(jtBusinessProject);
|
|
|
return result;
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 撤销项目
|
|
|
+ * @param jtBusinessProject
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@RequestMapping(value="/project/annul" ,method=RequestMethod.POST)
|
|
|
private Result projectAnnul(JtBusinessProject jtBusinessProject) {
|
|
|
Result result=new Result();
|
|
|
@@ -284,7 +288,30 @@ public class AdminJtBusinessController extends CertifyApiController{
|
|
|
result.setData(jtBusinessService.updateProject(jtBusinessProject));
|
|
|
return result;
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 项目是否热门
|
|
|
+ * @param jtBusinessProject
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value="/project/ifHot" ,method=RequestMethod.POST)
|
|
|
+ private Result projectIfHot(JtBusinessProject jtBusinessProject) {
|
|
|
+ Result result=new Result();
|
|
|
+ if (StringUtils.isBlank(jtBusinessProject.getId())) {
|
|
|
+ result.getError().add(buildError(ErrorConstants.PARAM_ERROR,"","撤销"));
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ if (null==jtBusinessProject.getIsHot()) {
|
|
|
+ result.getError().add(buildError(ErrorConstants.PARAM_ERROR,"","撤销"));
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ if (jtBusinessProject.getIsHot()==0) {
|
|
|
+ jtBusinessProject.setIsHot(1);
|
|
|
+ }else {
|
|
|
+ jtBusinessProject.setIsHot(0);
|
|
|
+ }
|
|
|
+ result.setData(jtBusinessService.updateProject(jtBusinessProject));
|
|
|
+ return result;
|
|
|
+ }
|
|
|
/*
|
|
|
* 新增标签
|
|
|
* */
|