|
|
@ -394,6 +394,7 @@ public class AsBusrepairBillService extends MybatisBaseService<AsBusrepairBillMa |
|
|
|
AsBusrepairBillInvoice invoice = new AsBusrepairBillInvoice(); |
|
|
|
BeanUtil.copyProperties(dto.getInvoiceVo(), invoice, "id", "sid"); |
|
|
|
invoice.setBillSid(sid); |
|
|
|
if (null != dto.getInvoiceVo().getIsInvoicing()) { |
|
|
|
if (dto.getInvoiceVo().getIsInvoicing().equals("1")) { |
|
|
|
List<String> taxItems = dto.getInvoiceVo().getTaxItems(); |
|
|
|
if (!taxItems.isEmpty()) { |
|
|
@ -410,8 +411,12 @@ public class AsBusrepairBillService extends MybatisBaseService<AsBusrepairBillMa |
|
|
|
invoice.setTaxItems(sb.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
invoice.setTaxItems(null); |
|
|
|
} |
|
|
|
} else { |
|
|
|
invoice.setTaxItems(null); |
|
|
|
} |
|
|
|
|
|
|
|
asBusrepairBillInvoiceService.insert(invoice); |
|
|
|
} |
|
|
|
//保险信息
|
|
|
|