1.跟单任务控制台报错处理
This commit is contained in:
25655 2025-03-22 17:58:05 +08:00
parent 4123e09b5f
commit 19ea040a87

View File

@ -299,19 +299,11 @@ public class tracktaskconsoleFormPlugIn extends AbstractBillPlugIn implements Be
@NotNull
private static BigDecimal getDelivernoticeqty(DynamicObject yem_bd_products, long materialNumid) {
List<Long> productId = getProductId(yem_bd_products);
//获取仓库分类为国贸各事业部仓库id集合
DynamicObjectCollection whColl = QueryServiceHelper.query("yem_warehouse", "id",
new QFilter[]{new QFilter("yem_sort", QCP.equals, "D"),
new QFilter("enable", QCP.equals, "1")});
ArrayList<Long> whids = new ArrayList<>();
for (DynamicObject wh : whColl) {
whids.add(wh.getLong("id"));
}
QFilter qFilter = new QFilter("billstatus", QCP.equals, "C");
qFilter.and("yem_billtype.number", QCP.equals, "yem_es_delivernotice_o");
qFilter.and("yem_es_materialinfo.yem_materiel.id", QCP.equals, materialNumid);
qFilter.and("yem_bd_products.id", QCP.in, productId);
qFilter.and("yem_es_materialinfo.yem_warehouse.yem_sort.id", QCP.in, whids);
qFilter.and("yem_es_materialinfo.yem_warehouse.yem_sort", QCP.equals, "D");
//调出仓库的仓库分类为国贸各事业部仓库
DynamicObject[] yemEsDelivernotice = BusinessDataServiceHelper.load("yem_es_delivernotice", "id,billno" +