|
@@ -3,6 +3,7 @@ package com.jeeplus.finance.projectReport.service;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import cn.hutool.core.util.ArrayUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
+import cn.hutool.extra.spring.SpringUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.TypeReference;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -37,6 +38,8 @@ import com.jeeplus.pubmodules.oss.service.OssService;
|
|
|
import com.jeeplus.pubmodules.oss.service.dto.WorkAttachmentDto;
|
|
|
import com.jeeplus.pubmodules.serialNumTpl.service.SerialnumTplService;
|
|
|
import com.jeeplus.sys.domain.User;
|
|
|
+import com.jeeplus.sys.domain.WorkAttachmentInfo;
|
|
|
+import com.jeeplus.sys.feign.IWorkAttachmentApi;
|
|
|
import com.jeeplus.sys.service.UserService;
|
|
|
import com.jeeplus.sys.mapper.UserMapper;
|
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
@@ -1915,7 +1918,8 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
public Map<String,Object> createSignatureContractId(CwProjectReportData projectReportData){
|
|
|
Map<String,Object> map = new HashMap<String,Object>();
|
|
|
//查询报告文件信息(电子章)
|
|
|
- List<WorkAttachment> fileList = attachmentMapper.selectWorkAttachmentByReportId(projectReportData.getId());
|
|
|
+ //List<WorkAttachment> fileList = attachmentMapper.selectWorkAttachmentByReportId(projectReportData.getId());
|
|
|
+ List<WorkAttachmentInfo> fileList = SpringUtil.getBean ( IWorkAttachmentApi.class ).selectWorkAttachmentByAttachmentId(projectReportData.getId());
|
|
|
if(fileList.size()>0){
|
|
|
|
|
|
//下载审定单文件
|
|
@@ -1931,7 +1935,7 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
//获取文件生成的documentId
|
|
|
List<String> documentList = Lists.newArrayList();
|
|
|
|
|
|
- for (WorkAttachment workattachment : fileList) {
|
|
|
+ for (WorkAttachmentInfo workattachment : fileList) {
|
|
|
String deleteFile = null;
|
|
|
try{
|
|
|
if(StringUtils.isBlank(workattachment.getUrl())){
|