package cn.com.goldenwater.dcproj.controller.tacplan; import cn.com.goldenwater.core.web.BaseResponse; import cn.com.goldenwater.dcproj.service.*; import io.swagger.annotations.ApiOperation; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import static cn.com.goldenwater.core.web.BaseController.buildFailResponse; import static cn.com.goldenwater.core.web.BaseController.buildSuccessResponse; @RestController @RequestMapping("/tac/province/pblm/info/dataMigration") public class DataMigrationController { private Logger logger = LoggerFactory.getLogger(getClass()); @Autowired private DataMigrationService dataMigrationService; @ApiOperation(value = "旧阶段问题数据复制至新阶段第一阶段") @RequestMapping(value = "/newplan1", method = RequestMethod.GET) public BaseResponse newplan1() { boolean newplan= dataMigrationService.newplan1(); if(newplan){ return buildSuccessResponse(); } return buildFailResponse(); } @ApiOperation(value = "所有问题提交问题新阶段审核流程") @RequestMapping(value = "/planProcess2", method = RequestMethod.GET) public BaseResponse planProcess2(@RequestParam(value = "nextId", required = false) String nextId) { boolean planProcess = dataMigrationService.planProcess2(nextId); if(planProcess){ return buildSuccessResponse(); } return buildFailResponse(); } }