e62d35228e0fccf016a33ffcd0fa8d6871e48b8d.svn-base 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package cn.com.goldenwater.dcproj.controller.tacplan;
  2. import cn.com.goldenwater.core.web.BaseResponse;
  3. import cn.com.goldenwater.dcproj.service.*;
  4. import io.swagger.annotations.ApiOperation;
  5. import org.slf4j.Logger;
  6. import org.slf4j.LoggerFactory;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.*;
  9. import static cn.com.goldenwater.core.web.BaseController.buildFailResponse;
  10. import static cn.com.goldenwater.core.web.BaseController.buildSuccessResponse;
  11. @RestController
  12. @RequestMapping("/tac/province/pblm/info/dataMigration")
  13. public class DataMigrationController {
  14. private Logger logger = LoggerFactory.getLogger(getClass());
  15. @Autowired
  16. private DataMigrationService dataMigrationService;
  17. @ApiOperation(value = "旧阶段问题数据复制至新阶段第一阶段")
  18. @RequestMapping(value = "/newplan1", method = RequestMethod.GET)
  19. public BaseResponse newplan1() {
  20. boolean newplan= dataMigrationService.newplan1();
  21. if(newplan){
  22. return buildSuccessResponse();
  23. }
  24. return buildFailResponse();
  25. }
  26. @ApiOperation(value = "所有问题提交问题新阶段审核流程")
  27. @RequestMapping(value = "/planProcess2", method = RequestMethod.GET)
  28. public BaseResponse planProcess2(@RequestParam(value = "nextId", required = false) String nextId) {
  29. boolean planProcess = dataMigrationService.planProcess2(nextId);
  30. if(planProcess){
  31. return buildSuccessResponse();
  32. }
  33. return buildFailResponse();
  34. }
  35. }