|
@@ -18,6 +18,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -273,9 +274,20 @@ public class StructureServiceImpl implements IStructureService {
|
|
|
log.info("开始处理【查询所有架构路径和路径架构名称】的业务");
|
|
|
|
|
|
List<StructureVO> structures = structureMapper.selectAllByProductId(productId);
|
|
|
+ HashMap<String, String> map = new HashMap<>();
|
|
|
for (StructureVO structure : structures) {
|
|
|
Integer structureId = structure.getId();
|
|
|
-
|
|
|
+ String structureStrId = structureId + "";
|
|
|
+ String structureName = structure.getStructureName();
|
|
|
+ map.put(structureStrId, structureName);
|
|
|
+ }
|
|
|
+ for (StructureVO structure : structures) {
|
|
|
+ String path = structure.getPath();
|
|
|
+ path = path.substring(path.indexOf(",") + 1);
|
|
|
+ String[] split = path.split(",");
|
|
|
+ for (String id : split) {
|
|
|
+ map.get(id)
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|