增加组装和拆卸单的库存计算

This commit is contained in:
季圣华
2019-04-07 22:42:56 +08:00
parent 5e2d66fd07
commit bc22a9f4f4
5 changed files with 69 additions and 2 deletions

View File

@@ -214,6 +214,14 @@ public class DepotItemService {
}
}
public BigDecimal findAssembleByType(String subType, String mType, Integer ProjectId, Long MId, String MonthTime, Boolean isPrev) {
if (isPrev) {
return depotItemMapperEx.findAssembleIsPrev(subType, mType, ProjectId, MId, MonthTime);
} else {
return depotItemMapperEx.findAssembleIsNotPrev(subType, mType, ProjectId, MId, MonthTime);
}
}
public BigDecimal buyOrSale(String type, String subType, Long MId, String MonthTime, String sumType) {
if (SUM_TYPE.equals(sumType)) {
return depotItemMapperEx.buyOrSaleNumber(type, subType, MId, MonthTime, sumType);