|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public boolean increase(Long orderId, String matnr, String batch, Double qty) { | 
|---|
|  |  |  | return this.baseMapper.increase(orderId, matnr, batch, qty) > 0; | 
|---|
|  |  |  | public boolean increase(Long orderId, String matnr, String batch, Double workQty) { | 
|---|
|  |  |  | return this.baseMapper.increase(orderId, matnr, batch, workQty) > 0; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public boolean decrease(String orderNo, String matnr, String batch, Double qty) { | 
|---|
|  |  |  | int decrease = this.baseMapper.decrease(orderNo, matnr, batch, qty); | 
|---|
|  |  |  | public boolean decrease(String orderNo, String matnr, String batch, Double workQty) { | 
|---|
|  |  |  | int decrease = this.baseMapper.decrease(orderNo, matnr, batch, workQty); | 
|---|
|  |  |  | if (decrease == 0) { | 
|---|
|  |  |  | return this.baseMapper.decrease(orderNo, matnr, null, qty) > 0; | 
|---|
|  |  |  | return this.baseMapper.decrease(orderNo, matnr, null, workQty) > 0; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | public Boolean checkAllDetlFinish(String orderNo) { | 
|---|
|  |  |  | return this.baseMapper.checkAllDetlFinish(orderNo) <= 0 ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取相同单号,相同批号,相同物料代码已经在入库通知档里组托的数量 | 
|---|
|  |  |  | * @param orderNo | 
|---|
|  |  |  | * @param matnr | 
|---|
|  |  |  | * @param batch | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public Integer sameOrderComb(String orderNo, String matnr, String batch) { | 
|---|
|  |  |  | Integer sum = this.baseMapper.sameOrderComb(orderNo, matnr, batch); | 
|---|
|  |  |  | return  sum != null ? sum : 0; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|