|
@@ -0,0 +1,110 @@
|
|
|
+package org.springblade.archive.controller;
|
|
|
+
|
|
|
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import org.springblade.archive.entity.ArchiveConclusion;
|
|
|
+import org.springblade.archive.entity.ArchiveExpertConclusion;
|
|
|
+import org.springblade.archive.service.IArchiveExpertConclusionService;
|
|
|
+import org.springblade.core.boot.ctrl.BladeController;
|
|
|
+import org.springblade.core.tool.api.R;
|
|
|
+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 java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ *
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@AllArgsConstructor
|
|
|
+@RequestMapping("/archiveExpertConclusion")
|
|
|
+@Api(value = "专家结论", tags = "专家结论")
|
|
|
+public class ArchiveExpertConclusionController extends BladeController {
|
|
|
+
|
|
|
+ private final IArchiveExpertConclusionService conclusionService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 验收申请-历史验收报告
|
|
|
+ */
|
|
|
+ @GetMapping("/getHistoryTable")
|
|
|
+ @ApiOperationSupport(order = 1)
|
|
|
+ @ApiOperation(value = "验收申请-历史验收报告", notes = "传入当前项目id,返回报告数组")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "projectId", value = "项目id", required = true)
|
|
|
+ })
|
|
|
+ public R<List<ArchiveExpertConclusion>> getHistoryTable(@RequestParam Long projectId) {
|
|
|
+ return R.data(conclusionService.getHistoryTable(projectId));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 验收申请-申请验收状态
|
|
|
+ */
|
|
|
+ @GetMapping("/getAppStatus")
|
|
|
+ @ApiOperationSupport(order = 3)
|
|
|
+ @ApiOperation(value = "验收申请-申请验收状态", notes = "传入当前项目id,true显示false屏蔽")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "projectId", value = "项目id", required = true)
|
|
|
+ })
|
|
|
+ public R<Boolean> getAppStatus(@RequestParam Long projectId) {
|
|
|
+ return R.data(conclusionService.getAppStatus(projectId));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 在线验收-预览
|
|
|
+ */
|
|
|
+ @GetMapping("/getAppPreview")
|
|
|
+ @ApiOperationSupport(order = 4)
|
|
|
+ @ApiOperation(value = "在线验收-预览", notes = "传入当前项目id,返回当前期的档案验收URL地址")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "projectId", value = "项目id", required = true)
|
|
|
+ })
|
|
|
+ public R getAppPreview(@RequestParam Long projectId) {
|
|
|
+ return R.data(conclusionService.getAppPreview(projectId));
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 在线验收-查看验收报告
|
|
|
+ */
|
|
|
+ @GetMapping("/getTable")
|
|
|
+ @ApiOperationSupport(order = 5)
|
|
|
+ @ApiOperation(value = "在线验收-查看验收报告", notes = "传入当前项目id,返回当期验收报告URL地址")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "projectId", value = "项目id", required = true)
|
|
|
+ })
|
|
|
+ public R getTable(@RequestParam Long projectId) {
|
|
|
+ return R.data(conclusionService.getTable(projectId));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 编写结论-是否生成打分表
|
|
|
+ */
|
|
|
+ @GetMapping("/creatScore")
|
|
|
+ @ApiOperationSupport(order = 1)
|
|
|
+ @ApiOperation(value = "验收申请-是否生成打分表", notes = "传入当前项目id,返回1选择0不选择")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "projectId", value = "项目id", required = true)
|
|
|
+ })
|
|
|
+ public R creatScore(@RequestParam Long projectId) {
|
|
|
+ return R.data(conclusionService.creatScore(projectId));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 编写结论-修改是否生成打分表
|
|
|
+ */
|
|
|
+ @GetMapping("/updateScore")
|
|
|
+ @ApiOperationSupport(order = 1)
|
|
|
+ @ApiOperation(value = "验收申请-修改是否生成打分表", notes = "传入当前项目id,传入1选择0不选择")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "projectId", value = "项目id", required = true),
|
|
|
+ @ApiImplicitParam(name = "isSelect", value = "1选择0不选择", required = true)
|
|
|
+ })
|
|
|
+ public R creatScore(@RequestParam Long projectId,Integer isSelect) {
|
|
|
+ conclusionService.updateScore(projectId,isSelect);
|
|
|
+ return R.data("修改成功");
|
|
|
+ }
|
|
|
+}
|