bug修改

This commit is contained in:
liyawei
2022-11-03 18:49:01 +08:00
parent 53b2adbf50
commit 2e2525d68e
@@ -3041,9 +3041,10 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
}
QueryWrapper<SarMenuStandard> wrapper=new QueryWrapper<>();
wrapper.in("MENU_NAME",sarStandardsInfoEO.getStandSystem());
wrapper.eq("DIC_ID","wnt12e6n258qkqgcl742");
wrapper.orderByDesc("length(PARENT_IDS)");
List<SarMenuStandard> standards=iSarMenuStandardService.list(wrapper);
if (null!=standards && standards.size()>0) {
if (null!=standards && standards.size() == 1) {
List<String> ids=new ArrayList<>();
if (StringUtils.isNotBlank(standards.get(0).getParentIds())){
if (standards.get(0).getParentIds().contains(",")){
@@ -3051,7 +3052,6 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
}else {
ids.add(standards.get(0).getParentIds());
}
}
QueryWrapper<SarMenuStandard> wrapper1 = new QueryWrapper<>();
wrapper1.in("id", ids);
List<SarMenuStandard> res = iSarMenuStandardService.list(wrapper1);
@@ -3065,6 +3065,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
sarStandardsInfoEO.setStandSystem(result.substring(1,result.length()));
}
}
}
return sarStandardsInfoEO;