bug修复

fengcang
anthonyywj2 3 years ago
parent 92e5beb3ae
commit 80e80b35ce

@ -108,6 +108,9 @@ public class InvPreInProductsController {
if (StrUtil.isEmpty(filterInvProductRequest.getBatchNo())) { if (StrUtil.isEmpty(filterInvProductRequest.getBatchNo())) {
filterInvProductRequest.setBatchNo("empty"); filterInvProductRequest.setBatchNo("empty");
} }
filterInvProductRequest.setInvStorageCode(null);
filterInvProductRequest.setInvWarehouseCode(null);
List<InvProductDetailEntity> invProductDetailEntities = invProductDetailService.filterInvProduct(filterInvProductRequest); List<InvProductDetailEntity> invProductDetailEntities = invProductDetailService.filterInvProduct(filterInvProductRequest);
PageInfo<InvProductDetailEntity> pageInfo; PageInfo<InvProductDetailEntity> pageInfo;
pageInfo = new PageInfo<>(invProductDetailEntities); pageInfo = new PageInfo<>(invProductDetailEntities);

@ -193,7 +193,8 @@ public class InvProductsTrService {
invProductDetailEntities = buildInvProductDetail(orderId, erpOrderEntity, orderEntity, 2); invProductDetailEntities = buildInvProductDetail(orderId, erpOrderEntity, orderEntity, 2);
if (orderEntity.isPreCheck()) { if (orderEntity.isPreCheck()) {
insetInv(bussinessTypeEntity, invProductDetailEntities);//2.插入当前库存 // insetInv(bussinessTypeEntity, invProductDetailEntities);//2.插入当前库存
invPreInProductDetailService.insertInvProducts(invProductDetailEntities);
} }
} }
if (invProductDetailEntities != null && invProductDetailEntities.size() > 0) { if (invProductDetailEntities != null && invProductDetailEntities.size() > 0) {

Loading…
Cancel
Save