|
@@ -58,7 +58,7 @@ public class RepairInvoiceServiceImpl extends ServiceImpl<IRepairInvoiceMapper,
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void invoiceRegister(RepairInvoice param, Long userId) {
|
|
public void invoiceRegister(RepairInvoice param, Long userId) {
|
|
- if(StringUtils.isBlank(param.getRepairId()) ){
|
|
|
|
|
|
+ if(StringUtils.isBlank(param.getRepairId()) || param.getInvoiceStatus() == null){
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
}
|
|
}
|
|
Repair repair = repairService.getById(param.getRepairId());
|
|
Repair repair = repairService.getById(param.getRepairId());
|