|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @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; | 
|---|
|  |  |  | } | 
|---|