|
|
@@ -13,7 +13,9 @@ import com.goafanti.admin.service.AdminService;
|
|
|
import com.goafanti.admin.service.AdminVarietiesService;
|
|
|
import com.goafanti.admin.service.BusinessProjectService;
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
+import com.goafanti.common.constant.ErrorConstants;
|
|
|
import com.goafanti.common.controller.BaseApiController;
|
|
|
+import com.goafanti.common.utils.StringUtils;
|
|
|
import com.goafanti.user.service.UserIdentityService;
|
|
|
|
|
|
|
|
|
@@ -46,6 +48,9 @@ public class AppServiceController extends BaseApiController {
|
|
|
@RequestMapping(value = "/getBusinessProject", method = RequestMethod.GET)
|
|
|
public Result getBusinessProject(String id,Integer pNo,Integer pSize) {
|
|
|
Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(id)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"品类必须指定","品类"));
|
|
|
+ }
|
|
|
res.setData(businessProjectService.getBusinessProject(id,pNo, pSize));
|
|
|
return res;
|
|
|
}
|
|
|
@@ -55,8 +60,10 @@ public class AppServiceController extends BaseApiController {
|
|
|
@RequestMapping(value = "/ProjectDetail", method = RequestMethod.GET)
|
|
|
public Result ProjectDetail(String id) {
|
|
|
Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(id)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"项目必须指定","项目"));
|
|
|
+ }
|
|
|
res.setData(businessProjectService.orgProject(id));
|
|
|
-
|
|
|
return res;
|
|
|
}
|
|
|
/**
|
|
|
@@ -83,6 +90,9 @@ public class AppServiceController extends BaseApiController {
|
|
|
@RequestMapping(value = "/consultantDetail", method = RequestMethod.GET)
|
|
|
public Result consultantDetail(String id) {
|
|
|
Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(id)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"咨询师必须指定","咨询师"));
|
|
|
+ }
|
|
|
res.setData(userIdentityService.consultantDetail( id));
|
|
|
return res;
|
|
|
}
|