|
@@ -65,6 +65,10 @@ public class RepairInvoiceServiceImpl extends ServiceImpl<IRepairInvoiceMapper,
|
|
|
if(repair == null){
|
|
|
throw new BusinessException(ResultCode.ORDER_PAY_NOT_EXITS);
|
|
|
}
|
|
|
+ if(param.getInvoiceStatus() == 2){ //无需发票
|
|
|
+ repairService.updateRepairInvoiceStatus(repair.getRepairId(),2);
|
|
|
+ return;
|
|
|
+ }
|
|
|
RepairInvoice repairInvoice = this.getByRepairId(param.getRepairId());
|
|
|
if(repairInvoice ==null){
|
|
|
repairInvoice = new RepairInvoice();
|