|
|
|
@ -69,12 +69,14 @@ public class TicketQueryController extends AbstractController { |
|
|
|
|
if (!invoiceCode.isEmpty()) { |
|
|
|
|
invoiceType = GetInvoiceType.getFplx(invoiceCode); |
|
|
|
|
} |
|
|
|
|
log.info("invoiceType {}",invoiceType); |
|
|
|
|
if ("10".equals(invoiceType)) { |
|
|
|
|
Map<String, Object> map = retrunInvoiceDetilsList(invoiceCode, invoiceNo, gfTaxNo, flag, dbName); |
|
|
|
|
return ResponseEntity.ok(R.ok().put("data", map)); |
|
|
|
|
} else { |
|
|
|
|
Map<String, Object> map = new HashMap<>(1); |
|
|
|
|
List<InvoiceMainBodyVO> invoiceSubjectList = ticketService.selectPassengerTheme(selectId, dbName); |
|
|
|
|
log.info("invoiceSubjectList {}",invoiceSubjectList); |
|
|
|
|
if (invoiceSubjectList.size() == 0) { |
|
|
|
|
map.put("invoiceSubjectList", ""); |
|
|
|
|
return ResponseEntity.ok(R.ok().put("data", map)); |
|
|
|
@ -84,8 +86,10 @@ public class TicketQueryController extends AbstractController { |
|
|
|
|
|| "88".equals(entity.getInvoiceType()) || "89".equals(entity.getInvoiceType()) |
|
|
|
|
|| "87".equals(entity.getInvoiceType())) { |
|
|
|
|
map.put("invoiceSubjectList", ticketService.exchangePlane(entity)); |
|
|
|
|
log.info("返回数据===> {}",map); |
|
|
|
|
return ResponseEntity.ok(R.ok().put("data", map)); |
|
|
|
|
} else { |
|
|
|
|
log.info("返回数据=====> {}",map); |
|
|
|
|
map.put("invoiceSubjectList", entity); |
|
|
|
|
return ResponseEntity.ok(R.ok().put("data", map)); |
|
|
|
|
} |
|
|
|
|