| | |
| | | LocDetl locDetl = this.selectOne(new EntityWrapper<LocDetl>() |
| | | .eq(!Cools.isEmpty(locNo),"loc_no", locNo) |
| | | .eq(!Cools.isEmpty(locNo),"matnr", matnr) |
| | | .eq(!Cools.isEmpty(locNo),"batch", batch) |
| | | .eq(!Cools.isEmpty(brand),"brand", brand) |
| | | // .eq(!Cools.isEmpty(locNo),"batch", batch) |
| | | .eq(!Cools.isEmpty(standby1),"standby1", standby1) |
| | | .eq(!Cools.isEmpty(standby2),"standby2", standby2) |
| | | .eq(!Cools.isEmpty(standby3),"standby3", standby3) |
| | | .eq(!Cools.isEmpty(boxType1),"box_type1", boxType1) |
| | | .eq(!Cools.isEmpty(boxType2),"box_type2", boxType2) |
| | | .eq(!Cools.isEmpty(boxType3),"box_type3", boxType3) |
| | | // .eq(!Cools.isEmpty(standby2),"standby2", standby2) |
| | | // .eq(!Cools.isEmpty(standby3),"standby3", standby3) |
| | | // .eq(!Cools.isEmpty(boxType1),"box_type1", boxType1) |
| | | // .eq(!Cools.isEmpty(boxType2),"box_type2", boxType2) |
| | | // .eq(!Cools.isEmpty(boxType3),"box_type3", boxType3) |
| | | ); |
| | | if (Cools.isEmpty(locDetl)) { |
| | | return false; |
| | | } |
| | | if (anfme <= 0 && locDetl.getDiffQty().compareTo(BigDecimal.ZERO) == 0) { |
| | | // return this.baseMapper.delete(new EntityWrapper<LocDetl>().eq("loc_no", locNo).eq("matnr", matnr).eq("supp_code", standby1)) > 0; |
| | | return this.baseMapper.deleteItem(locNo, matnr, batch, brand, standby1, standby2, standby3, boxType1, boxType2, boxType3) > 0; |
| | | } else { |
| | | return baseMapper.updateAnfme(anfme, locNo, matnr, batch, brand, standby1, standby2, standby3, boxType1, boxType2, boxType3) > 0; |