|
@@ -11,6 +11,7 @@ import com.jeeplus.core.excel.ExportMode;
|
|
|
import com.jeeplus.core.excel.utils.EasyPoiUtil;
|
|
|
import com.jeeplus.flowable.service.FlowTaskService;
|
|
|
import com.jeeplus.sys.constant.enums.LogTypeEnum;
|
|
|
+import com.jeeplus.sys.service.dto.UserDTO;
|
|
|
import com.jeeplus.sys.utils.DictUtils;
|
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
|
import com.jeeplus.test.cw.invoice.service.dto.CwFinanceInvoiceDTO;
|
|
@@ -20,6 +21,7 @@ import com.jeeplus.test.cw.projectReport.domain.CwProjectReportSignature;
|
|
|
import com.jeeplus.test.cw.projectReport.mapper.ProjectReportWorkAttachmentMapper;
|
|
|
import com.jeeplus.test.cw.projectReport.service.CwProjectReportService;
|
|
|
import com.jeeplus.test.cw.projectReport.service.dto.CwProjectReportSignatureDTO;
|
|
|
+import com.jeeplus.test.cw.projectReport.service.dto.ProjectReportWorkAttachmentDTO;
|
|
|
import com.jeeplus.test.cw.workClientInfo.service.dto.CwWorkClientBaseDTO;
|
|
|
import com.jeeplus.test.oss.domain.WorkAttachment;
|
|
|
import com.jeeplus.test.signature.utils.SignaturePostUtil;
|
|
@@ -35,6 +37,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.Valid;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
@@ -74,6 +77,21 @@ public class CwProjectReportController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 签章附件保存
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiLog(value = "签章附件保存", type = LogTypeEnum.SAVE)
|
|
|
+ @PostMapping("saveSignFiles")
|
|
|
+ public ResponseEntity saveSignFiles(@RequestBody CwProjectReportData reportData) {
|
|
|
+ UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
|
+ if (CollectionUtil.isEmpty(reportData.getCwFileInfoList())) {
|
|
|
+ reportData.setCwFileInfoList(new ArrayList<>());
|
|
|
+ }
|
|
|
+ projectReportService.updateFiles(reportData.getCwFileInfoList(),userDTO,reportData.getId());
|
|
|
+ return ResponseEntity.ok("操作成功");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 查询财务项目信息列表
|
|
|
* @param projectReportData
|
|
|
* @param page
|
|
@@ -371,4 +389,17 @@ public class CwProjectReportController {
|
|
|
List<CwProjectReport> cwProjectReportList = projectReportService.getIdByContractId(contractId, cwProjectReport);
|
|
|
return ResponseEntity.ok(cwProjectReportList);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 生成报告归档信息
|
|
|
+ * @param reportId
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ @GetMapping("saveReportArchive")
|
|
|
+ @ApiOperation(value = "生成报告归档信息")
|
|
|
+ public ResponseEntity saveReportArchive(String reportId) throws Exception {
|
|
|
+ projectReportService.saveReportArchive(reportId);
|
|
|
+ return ResponseEntity.ok("操作成功");
|
|
|
+ }
|
|
|
}
|