优化单据明细的查询条件

This commit is contained in:
季圣华
2022-05-19 00:12:37 +08:00
parent 24ee142f55
commit cff16125b0

View File

@@ -847,17 +847,11 @@ public class DepotItemService {
goToType = BusinessConstants.SUB_TYPE_PURCHASE_ORDER; goToType = BusinessConstants.SUB_TYPE_PURCHASE_ORDER;
} }
} else { } else {
if(BusinessConstants.PURCHASE_STATUS_SKIPING.equals(depotHead.getPurchaseStatus())) { if(BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(depotHead.getSubType())) {
if(BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) { goToType = BusinessConstants.SUB_TYPE_PURCHASE;
goToType = BusinessConstants.SUB_TYPE_PURCHASE_ORDER; }
} if(BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) {
} else { goToType = BusinessConstants.SUB_TYPE_SALES;
if(BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(depotHead.getSubType())) {
goToType = BusinessConstants.SUB_TYPE_PURCHASE;
}
if(BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) {
goToType = BusinessConstants.SUB_TYPE_SALES;
}
} }
} }
BigDecimal count = depotItemMapperEx.getFinishNumber(meId, linkNumber, goToType); BigDecimal count = depotItemMapperEx.getFinishNumber(meId, linkNumber, goToType);