Commit eb81df09 by 江和松

提示bug修改

parent 2598a20d
...@@ -160,11 +160,10 @@ public class HGKCTools { ...@@ -160,11 +160,10 @@ public class HGKCTools {
List<HGPZ007> hgpz007List = HGPZTools.HgPz007.allList(); List<HGPZ007> hgpz007List = HGPZTools.HgPz007.allList();
//获取仓库信息 //获取仓库信息
HGPZ007 hgpz007 = hgpz007List.stream().filter(wh->wh.getInventTypeDetail() != null && wh.getInventTypeDetail().intValue() == newKc001.getInventTypeDetail()).findAny().orElse(null); HGPZ007 hgpz007 = hgpz007List.stream().filter(wh->wh.getInventTypeDetail() != null && wh.getInventTypeDetail().intValue() == newKc001.getInventTypeDetail()).findAny().orElse(null);
AssertUtils.isNull(hgpz007, "仓库信息未获取到,请检查仓库档案是否维护存货大类!");
if(Objects.nonNull(hgpz007)){ if(Objects.nonNull(hgpz007)){
newKc001.setWhCode(hgpz007.getWhCode()); newKc001.setWhCode(hgpz007.getWhCode());
newKc001.setWhName(hgpz007.getWhName()); newKc001.setWhName(hgpz007.getWhName());
}else{
AssertUtils.isNull(hgpz007, "仓库信息未获取到,请检查仓库档案是否维护存货大类!");
} }
DaoUtils.insert(HGKC001.INSERT, newKc001); DaoUtils.insert(HGKC001.INSERT, newKc001);
// 更新库存数量 // 更新库存数量
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment