|
@@ -1,12 +1,11 @@
|
|
|
package com.rongwei.bsserver.controller;
|
|
|
|
|
|
|
|
|
-import cn.hutool.core.util.ObjectUtil;
|
|
|
-import com.rongwei.bscommon.sys.config.api.ResponseVO;
|
|
|
-import com.rongwei.bscommon.sys.feign.LuckySheetService;
|
|
|
import com.rongwei.bscommon.sys.service.LuckysheetService;
|
|
|
+import com.rongwei.bscommon.sys.service.ZhcxProjectManageRectifyBatchService;
|
|
|
import com.rongwei.bscommon.sys.service.ZhcxProjectManageService;
|
|
|
import com.rongwei.bsentity.domain.ZhcxProjectManageDo;
|
|
|
+import com.rongwei.bsentity.domain.ZhcxProjectManageRectifyBatchDo;
|
|
|
import com.rongwei.bsentity.dto.project.ExportProjectSummaryDto;
|
|
|
import com.rongwei.bsentity.dto.project.SavePorjectSummaryDto;
|
|
|
import com.rongwei.bsentity.dto.project.UpdateDataVerificationRequest;
|
|
@@ -43,21 +42,31 @@ public class ZhcxProjectManageController {
|
|
|
|
|
|
@Autowired
|
|
|
private LuckysheetService luckysheetService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ZhcxProjectManageRectifyBatchService projectManageRectifyBatchService;
|
|
|
/**
|
|
|
- * 复制新增
|
|
|
+ * 生成整改清单
|
|
|
* @param projectManageDo
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/genSummaryFiles")
|
|
|
@ApiOperation("生成汇总文件")
|
|
|
public R genSummaryFiles(@RequestBody ZhcxProjectManageDo projectManageDo){
|
|
|
- try {
|
|
|
- String files = luckysheetService.genProjectSummaryFiles(projectManageDo.getId());
|
|
|
- return R.ok(files);
|
|
|
- } catch (Exception e) {
|
|
|
- log.error("生成异常, {}", e);
|
|
|
- return R.error("生成异常!");
|
|
|
- }
|
|
|
+ String files = luckysheetService.genProjectSummaryFiles(projectManageDo.getId());
|
|
|
+ return R.ok(files);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 生成整改清单
|
|
|
+ * @param batch
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/genBatchSummaryFiles")
|
|
|
+ @ApiOperation("生成批次汇总文件")
|
|
|
+ public R genBatchSummaryFiles(@RequestBody ZhcxProjectManageRectifyBatchDo batch){
|
|
|
+ String files = projectManageRectifyBatchService.genProjectSummaryFiles(batch.getId());
|
|
|
+ return R.ok(files);
|
|
|
}
|
|
|
|
|
|
/**
|