|
@@ -288,6 +288,9 @@ public class WeighingManagementServiceImpl extends ServiceImpl<WeighingManagemen
|
|
|
paymentManagementService.insert(paymentManagement1);
|
|
|
}
|
|
|
}
|
|
|
+ if( weighingManagement.getTare() == null || weighingManagement.getTare() == 0){
|
|
|
+ throw new YException(YExceptionEnum.TARE_NULL);
|
|
|
+ }
|
|
|
boolean one = this.updateById(weighingManagement);
|
|
|
if (one) {
|
|
|
return weighingManagement.getId();
|