|
|
@@ -1,7 +1,10 @@ |
|
|
|
package com.ningdatech.pmapi.projectdeclared.controller; |
|
|
|
|
|
|
|
import com.ningdatech.basic.model.PageVo; |
|
|
|
import com.ningdatech.pmapi.common.util.ExcelDownUtil; |
|
|
|
import com.ningdatech.pmapi.projectdeclared.manage.FinalAcceptanceManage; |
|
|
|
import com.ningdatech.pmapi.projectdeclared.model.dto.DefaultDeclaredDTO; |
|
|
|
import com.ningdatech.pmapi.projectdeclared.model.vo.FinalAcceptanceVO; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq; |
|
|
|
import com.ningdatech.pmapi.projectlib.model.vo.ProjectLibListItemVO; |
|
|
|
import io.swagger.annotations.Api; |
|
|
@@ -11,6 +14,8 @@ import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @Classname FinalAcceptanceController |
|
|
@@ -32,4 +37,23 @@ public class FinalAcceptanceController { |
|
|
|
public PageVo<ProjectLibListItemVO> projectlist(@ModelAttribute ProjectListReq req) { |
|
|
|
return finalAcceptanceManage.projectLibList(req); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/export") |
|
|
|
@ApiOperation("待终验申报的项目导出") |
|
|
|
public void exportList(ProjectListReq req, HttpServletResponse response){ |
|
|
|
ExcelDownUtil.downXls(response,req,finalAcceptanceManage::exportList); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "待终验申报的项目列表", notes = "待终验申报的项目列表") |
|
|
|
@GetMapping("/detail/{projectId}") |
|
|
|
public FinalAcceptanceVO detailByProjectId(@PathVariable Long projectId) { |
|
|
|
return finalAcceptanceManage.detailByProjectId(projectId); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "终验申报", notes = "终验申报") |
|
|
|
@PostMapping("/start-process") |
|
|
|
public String startTheProcess(@Validated @RequestBody DefaultDeclaredDTO dto) { |
|
|
|
String instanceId = finalAcceptanceManage.startProcess(dto); |
|
|
|
return "终验申报 【" + instanceId + "】 成功"; |
|
|
|
} |
|
|
|
} |