优化单据明细的查询条件
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user