|
@@ -362,8 +362,8 @@ public class ProjectController {
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/getGanttData")
|
|
|
- public HttpRespMsg getGanttData(@RequestParam(required = false, defaultValue = "0") Integer type, String startDate, String endDate, String userId, Integer projectId, String groupName, HttpServletRequest request) {
|
|
|
- return projectService.getGanttData(type, startDate, endDate, userId, projectId, groupName, request);
|
|
|
+ public HttpRespMsg getGanttData(@RequestParam(required = false, defaultValue = "0") Integer type, String startDate, String endDate, String userId, Integer projectId, String groupName,Integer taskType, HttpServletRequest request) {
|
|
|
+ return projectService.getGanttData(type, startDate, endDate, userId, projectId, groupName,taskType, request);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -517,5 +517,16 @@ public class ProjectController {
|
|
|
public HttpRespMsg batchSetParticipation(HttpServletRequest request,String projectIdArray,String userIds){
|
|
|
return projectService.batchSetParticipation(request,projectIdArray,userIds);
|
|
|
}
|
|
|
+ @RequestMapping("/changeCurrentStage")
|
|
|
+ public HttpRespMsg changeCurrentStage(Integer projectId,String currentStage){
|
|
|
+ HttpRespMsg httpRespMsg=new HttpRespMsg();
|
|
|
+ Project project = projectService.getById(projectId);
|
|
|
+ project.setCurrentStage(currentStage);
|
|
|
+ if(projectService.updateById(project)){
|
|
|
+ return httpRespMsg;
|
|
|
+ }
|
|
|
+ httpRespMsg.setError("更新失败");
|
|
|
+ return httpRespMsg;
|
|
|
+ }
|
|
|
}
|
|
|
|