|
@@ -26,6 +26,8 @@ import org.springblade.manager.entity.ContractInfo;
|
|
|
import org.springblade.manager.feign.ArchiveTreeContractClient;
|
|
|
import org.springblade.manager.feign.ContractClient;
|
|
|
import org.springblade.manager.vo.WbsTreeVO;
|
|
|
+import org.springblade.system.entity.DictBiz;
|
|
|
+import org.springblade.system.feign.IDictBizClient;
|
|
|
import org.springframework.dao.DataAccessException;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -42,6 +44,7 @@ public class MetadataClassificationServiceImpl
|
|
|
private final ContractClient contractClient;
|
|
|
private final ArchiveAutoClient archiveAutoClient;
|
|
|
private final JdbcTemplate jdbcTemplate;
|
|
|
+ private final IDictBizClient iDictBizClient;
|
|
|
|
|
|
@Override
|
|
|
public MetadataClassification classificationDetail(Integer type) {
|
|
@@ -207,7 +210,18 @@ public class MetadataClassificationServiceImpl
|
|
|
if(!vo.getFileStorageType().contains(storageType)){
|
|
|
continue;
|
|
|
}
|
|
|
- vo.setKeyValue(map.get(vo.getFieldKey()) == null ? null : map.get(vo.getFieldKey()).toString());
|
|
|
+ if(vo.getContainerName().equals("生成方式")){
|
|
|
+ vo.setKeyValue(map.get(vo.getFieldKey()) == null ? null : map.get(vo.getFieldKey()).toString().equals("1")?"原生":"数字化");
|
|
|
+ }else if(vo.getContainerName().equals("密级") && map.get(vo.getFieldKey()) != null ){
|
|
|
+ List<DictBiz> sheetSourceList = this.iDictBizClient.getList("security_level", "notRoot").getData();
|
|
|
+ sheetSourceList.forEach(source -> {
|
|
|
+ if( source.getDictKey().equals(map.get(vo.getFieldKey()))){
|
|
|
+ vo.setKeyValue(source.getDictValue());
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ vo.setKeyValue(map.get(vo.getFieldKey()) == null ? null : map.get(vo.getFieldKey()).toString());
|
|
|
+ }
|
|
|
vo.setFileId(fileId);
|
|
|
list.add(vo);
|
|
|
}
|