提交 8f3b6335 authored 作者: zhoushaopan's avatar zhoushaopan

feat(入库模块): 修复入库bug

修复入库bug
上级 15ce24cd
...@@ -698,6 +698,7 @@ public class StorageBillController { ...@@ -698,6 +698,7 @@ public class StorageBillController {
//处理多余的附件 //处理多余的附件
saveParts.addAll(deviceLibraries1); saveParts.addAll(deviceLibraries1);
} }
if (deviceLibraries2.size()>0){
if (deviceLibraries.size() == deviceLibraries2.size()){ if (deviceLibraries.size() == deviceLibraries2.size()){
for (int i = 0; i < deviceLibraries.size(); i++) { for (int i = 0; i < deviceLibraries.size(); i++) {
for (int j = 0; j < deviceLibraries2.size(); j++) { for (int j = 0; j < deviceLibraries2.size(); j++) {
...@@ -709,6 +710,20 @@ public class StorageBillController { ...@@ -709,6 +710,20 @@ public class StorageBillController {
} }
} }
} }
}else {
if (deviceLibraries.size() == deviceLibraries1.size()){
for (int i = 0; i < deviceLibraries1.size(); i++) {
for (int j = 0; j < deviceLibraries1.size(); j++) {
if(deviceLibraries.get(i).getPackingId().equals(packingLibraryService.getOne(deviceLibraries1.get(j).getPackingId()).getPartParentId())){
deviceLibraries1.get(j).setPartParentId(deviceLibraries.get(i).getId());
saveParts.add(deviceLibraries1.get(j));
i++;
}
}
}
}
}
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论