|
|
@ -76,7 +76,7 @@ public class AccessoryLogServiceImpl extends ServiceImpl<AccessoryLogMapper, Acc
|
|
|
|
queryWrapper.eq(ItemBatch.LABEL,label);
|
|
|
|
queryWrapper.eq(ItemBatch.LABEL,label);
|
|
|
|
List<ItemBatch> list = itemBatchService.list(queryWrapper);
|
|
|
|
List<ItemBatch> list = itemBatchService.list(queryWrapper);
|
|
|
|
if (qty.compareTo(BigDecimal.ZERO)<=0){
|
|
|
|
if (qty.compareTo(BigDecimal.ZERO)<=0){
|
|
|
|
throw new BaseException("数量不能小于零");
|
|
|
|
throw new BaseException("使用数量不能小于零");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (list.isEmpty()){
|
|
|
|
if (list.isEmpty()){
|
|
|
|
throw new BaseException("标签不存在");
|
|
|
|
throw new BaseException("标签不存在");
|
|
|
|