fix: 国内标准编辑后标准体系丢失问题

This commit is contained in:
wxyclub
2023-11-29 17:24:54 +08:00
parent da22df97c7
commit ae05c02797
@@ -3261,6 +3261,13 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
if (StringUtils.isNotBlank(standSystem)) {
List<String> list = Arrays.asList(standSystem.split("/"));
standSystem = list.get(list.size() - 1);
LambdaQueryWrapper<SarMenuStandard> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(SarMenuStandard::getMenuName, standSystem);
wrapper.eq(SarMenuStandard::getDicId, "9m4qqqaansxmox5e82zm");
List<SarMenuStandard> list1 = sarMenuStandardService.list(wrapper);
if (list1.size() > 0) {
sarStandardsInfoEO.setStandSystemId(list1.get(0).getId());
}
// 配置体系类别
String txlbBussLevel = getParentNodePathRecursive(standSystem);
sarStandardsInfoEO.setStandSystem(txlbBussLevel);