|
@@ -138,6 +138,9 @@ public class RepairSaleService {
|
|
|
|
|
|
List<PriceList> priceLists = param.getPriceLists();
|
|
|
for (PriceList priceList : priceLists) {
|
|
|
+ if(priceList.getType() == null){
|
|
|
+ throw new BusinessException(ResultCode.PRICE_TYPE_NOT);
|
|
|
+ }
|
|
|
priceList.setRepairId(param.getRepairId());
|
|
|
}
|
|
|
priceListService.saveOrUpdateBatch(priceLists);
|
|
@@ -158,7 +161,7 @@ public class RepairSaleService {
|
|
|
|
|
|
public void payRegister(PayRegisterParam param,Long userId) {
|
|
|
if(StringUtils.isBlank(param.getRepairId())
|
|
|
- || param.getPayType() == null || StringUtils.isBlank(param.getPayImg())){
|
|
|
+ || param.getPayType() == null || param.getPayImg() == null){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
Repair repair = repairService.getById(param.getRepairId());
|