fix:
1.报错修复
This commit is contained in:
parent
79c87efddc
commit
8726d5f026
@ -673,25 +673,25 @@ public class ShippingDetailsFormPlugin extends AbstractBillPlugIn implements Bef
|
||||
countSmallCabinetQty(model);//汇总表头小柜数量
|
||||
break;
|
||||
case "yem_qty":
|
||||
// DynamicObjectCollection collects = this.getModel().getEntryEntity("yem_es_salesorder_total");
|
||||
// List<Integer> ies = new ArrayList<>();
|
||||
// Map<Long, Integer> map1 = new HashMap<>();
|
||||
// for (int i1 = 0; i1 < collects.size(); i1++) {
|
||||
// DynamicObject collect = (DynamicObject) collects.get(i1);
|
||||
// DynamicObject yemAccesmaterialTl = collect.getDynamicObject("yem_accesmaterial_tl");
|
||||
// if (yemAccesmaterialTl != null) {
|
||||
// long aLong = yemAccesmaterialTl.getLong("id");
|
||||
// if (map1.get(aLong) == null) {
|
||||
// map1.put(aLong, i1);
|
||||
// } else {
|
||||
// ies.add(i1);
|
||||
// }
|
||||
// }else {
|
||||
// ies.add(i1);
|
||||
// }
|
||||
// }
|
||||
// int[] intArray = ies.stream().mapToInt(Integer::intValue).toArray();
|
||||
// this.getModel().deleteEntryRows("yem_es_salesorder_total", intArray);
|
||||
DynamicObjectCollection collects = this.getModel().getEntryEntity("yem_es_salesorder_total");
|
||||
List<Integer> ies = new ArrayList<>();
|
||||
Map<Long, Integer> map1 = new HashMap<>();
|
||||
for (int i1 = 0; i1 < collects.size(); i1++) {
|
||||
DynamicObject collect = (DynamicObject) collects.get(i1);
|
||||
DynamicObject yemAccesmaterialTl = collect.getDynamicObject("yem_accesmaterial_tl");
|
||||
if (yemAccesmaterialTl != null) {
|
||||
long aLong = yemAccesmaterialTl.getLong("id");
|
||||
if (map1.get(aLong) == null) {
|
||||
map1.put(aLong, i1);
|
||||
} else {
|
||||
ies.add(i1);
|
||||
}
|
||||
}else {
|
||||
ies.add(i1);
|
||||
}
|
||||
}
|
||||
int[] intArray = ies.stream().mapToInt(Integer::intValue).toArray();
|
||||
this.getModel().deleteEntryRows("yem_es_salesorder_total", intArray);
|
||||
Boolean aseqty = aseqty();
|
||||
if (aseqty) {
|
||||
this.getView().showMessage("数量不允许低于关联调拨数量;,请重新填写");
|
||||
|
Loading…
Reference in New Issue
Block a user