修复库位显示报错

This commit is contained in:
star 2024-10-30 17:23:55 +08:00
parent 968d0fd903
commit 4fe19336cd

View File

@ -78,8 +78,11 @@ public class WmStorageAreaServiceImpl implements IWmStorageAreaService
List<WmStorageArea> areaVos1 = wmStorageAreaMapper.getAll();
for (WmStorageArea vo : areaVos1) {
for (AreaVo vo1 : areaVos)
if (vo1.getAttr1().equals(vo.getAreaId().toString()))
vo1.setSuperiorName(vo.getAreaName());
if (vo.getAreaId().toString().equals("")&&vo1.getAttr1().equals("")){
if (vo1.getAttr1().equals(vo.getAreaId().toString()))
vo1.setSuperiorName(vo.getAreaName());
}
}
return areaVos;
}