|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
+import org.springblade.archive.feign.ArchiveInspectionInfoClient;
|
|
import org.springblade.business.entity.ArchiveFile;
|
|
import org.springblade.business.entity.ArchiveFile;
|
|
import org.springblade.business.vo.ArchiveFileVO;
|
|
import org.springblade.business.vo.ArchiveFileVO;
|
|
import org.springblade.business.mapper.ArchiveFileMapper;
|
|
import org.springblade.business.mapper.ArchiveFileMapper;
|
|
@@ -36,6 +37,7 @@ public class ArchiveFileServiceImpl extends BaseServiceImpl<ArchiveFileMapper, A
|
|
private final NewIOSSClient iossClient;
|
|
private final NewIOSSClient iossClient;
|
|
|
|
|
|
private ExecutorService executorService;
|
|
private ExecutorService executorService;
|
|
|
|
+ private final ArchiveInspectionInfoClient archiveInspectionInfoClient;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public IPage<ArchiveFileVO> selectArchiveFilePage(ArchiveFileVO vo) {
|
|
public IPage<ArchiveFileVO> selectArchiveFilePage(ArchiveFileVO vo) {
|
|
@@ -60,7 +62,7 @@ public class ArchiveFileServiceImpl extends BaseServiceImpl<ArchiveFileMapper, A
|
|
|
|
|
|
//获取业务字典
|
|
//获取业务字典
|
|
List<DictBiz> sheetSourceList = this.dictBizClient.getList("sheet_source", "notRoot").getData();
|
|
List<DictBiz> sheetSourceList = this.dictBizClient.getList("sheet_source", "notRoot").getData();
|
|
-
|
|
|
|
|
|
+ StringBuffer fileIds = new StringBuffer();
|
|
pageVoList.forEach(vos -> {
|
|
pageVoList.forEach(vos -> {
|
|
vos.setIsApprovalValue(new Integer("0").equals(vos.getStatus()) ? "未上报" : new Integer("1").equals(vos.getStatus()) ? "待审批" : new Integer("2").equals(vos.getStatus()) ? "已审批" : "已废除");
|
|
vos.setIsApprovalValue(new Integer("0").equals(vos.getStatus()) ? "未上报" : new Integer("1").equals(vos.getStatus()) ? "待审批" : new Integer("2").equals(vos.getStatus()) ? "已审批" : "已废除");
|
|
vos.setIsCertificationValue(new Integer("1").equals(vos.getIsCertification()) ? "已认证" : "未认证");
|
|
vos.setIsCertificationValue(new Integer("1").equals(vos.getIsCertification()) ? "已认证" : "未认证");
|
|
@@ -71,8 +73,25 @@ public class ArchiveFileServiceImpl extends BaseServiceImpl<ArchiveFileMapper, A
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ fileIds.append(vos.getId()+",");
|
|
});
|
|
});
|
|
|
|
+ if(vo.getRectification() != null &&(vo.getRectification() == 1 || vo.getRectification() == 2)) {
|
|
|
|
+ Map<String, Map<String, Object>> allopinion = archiveInspectionInfoClient.getAllopinion(fileIds.toString());
|
|
|
|
+ if (allopinion != null) {
|
|
|
|
+ pageVoList.forEach(vos -> {
|
|
|
|
+ Map<String, Object> map = allopinion.get(vos.getId().toString());
|
|
|
|
+ if (map != null) {
|
|
|
|
+ if (map.get("ArchiveName") != null) {
|
|
|
|
+ vos.setArchiveName(map.get("ArchiveName").toString());
|
|
|
|
+ }
|
|
|
|
+ if (map.get("allOpinion") != null) {
|
|
|
|
+ vos.setAllOpinion(map.get("allOpinion").toString());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return iPage.setRecords(pageVoList);
|
|
return iPage.setRecords(pageVoList);
|
|
}
|
|
}
|
|
|
|
|