|
@@ -202,6 +202,9 @@ public class RepairSaleService {
|
|
|
if(priceList.getCount() == null){
|
|
|
throw new BusinessException(ResultCode.PRICE_COUNT_NOT);
|
|
|
}
|
|
|
+ if(priceList.getCount() <= 0){
|
|
|
+ throw new BusinessException(ResultCode.PRICE_COUNT_NOT);
|
|
|
+ }
|
|
|
if(priceList.getType() == 0){ //设备备件
|
|
|
if(priceList.getPartId() == null || partMap.get(priceList.getPartId()) == null || priceList.getDiscount() == null){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|