|
@@ -9,8 +9,10 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.core.reports.api.ProjectCloudService;
|
|
|
import cn.com.qmth.examcloud.core.reports.api.request.GetProjectInfoBeanReq;
|
|
|
+import cn.com.qmth.examcloud.core.reports.api.request.UpdateProjectCourseOrgCountReq;
|
|
|
import cn.com.qmth.examcloud.core.reports.api.request.UpdateProjectStatusReq;
|
|
|
import cn.com.qmth.examcloud.core.reports.api.response.GetProjectInfoBeanResp;
|
|
|
+import cn.com.qmth.examcloud.core.reports.api.response.UpdateProjectCourseOrgCountResp;
|
|
|
import cn.com.qmth.examcloud.core.reports.api.response.UpdateProjectStatusResp;
|
|
|
import cn.com.qmth.examcloud.core.reports.service.ProjectService;
|
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
@@ -41,11 +43,24 @@ public class ProjectCloudServiceProvider extends ControllerSupport implements Pr
|
|
|
return new UpdateProjectStatusResp();
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取项目信息")
|
|
|
+ @PostMapping("/getProjectBean")
|
|
|
@Override
|
|
|
- public GetProjectInfoBeanResp getProjectBean(GetProjectInfoBeanReq req) {
|
|
|
+ public GetProjectInfoBeanResp getProjectBean(@RequestBody GetProjectInfoBeanReq req) {
|
|
|
GetProjectInfoBeanResp res=new GetProjectInfoBeanResp();
|
|
|
res.setBean(projectService.getProjectInfoBean(req));
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "更新项目中心、课程数量")
|
|
|
+ @PostMapping("/updateCourseOrgCount")
|
|
|
+ @Override
|
|
|
+ public UpdateProjectCourseOrgCountResp updateProjectCourseOrgCount(@RequestBody UpdateProjectCourseOrgCountReq req) {
|
|
|
+ if(req.getProjectId()==null) {
|
|
|
+ throw new StatusException("1000011", "projectId不能为空");
|
|
|
+ }
|
|
|
+ projectService.updateProjectCourseOrgCount(req);
|
|
|
+ return new UpdateProjectCourseOrgCountResp();
|
|
|
+ }
|
|
|
+
|
|
|
}
|