|
@@ -1,15 +1,13 @@
|
|
|
package com.rongwei.bsserver.controller;
|
|
|
|
|
|
import com.rongwei.bscommon.sys.service.impl.GanttServiceImpl;
|
|
|
+import com.rongwei.bsentity.vo.ProcessGanttListVo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
@@ -29,8 +27,6 @@ public class GanttController {
|
|
|
|
|
|
/**
|
|
|
* 根据条件获取甘特图相关信息
|
|
|
- *
|
|
|
- * @param params
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/list")
|
|
@@ -40,4 +36,14 @@ public class GanttController {
|
|
|
return ganttService.getListByCondition(searchDate, factoryId, workshopId);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据条件获取甘特图相关信息
|
|
|
+ * @param processGanttListVo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/processGanttList")
|
|
|
+ public R processGanttList(@RequestBody ProcessGanttListVo processGanttListVo) {
|
|
|
+ return ganttService.getListByCondition(processGanttListVo.getStartTime(), processGanttListVo.getFactoryId(), processGanttListVo.getWorkshopId());
|
|
|
+ }
|
|
|
+
|
|
|
}
|