|
@@ -167,7 +167,7 @@ public class RepairSaleService {
|
|
|
throw new BusinessException(ResultCode.PRICE_TYPE_NOT);
|
|
|
}
|
|
|
if(priceList.getType() == 0){
|
|
|
- if(priceList.getPartId() == null || partMap.get(priceList.getPartId()) == null){
|
|
|
+ if(priceList.getPartId() == null || partMap.get(priceList.getPartId()) == null || priceList.getPriceListId() == null){
|
|
|
throw new BusinessException(ResultCode.PART_ID_EMPTY);
|
|
|
}
|
|
|
Part part = partMap.get(priceList.getPartId());
|