| | |
| | | import com.ruoyi.cwgl.service.IInvoiceManageService; |
| | | import com.ruoyi.cwgl.service.IKeyCollectionInfoService; |
| | | import com.ruoyi.cwgl.service.IRequestLogService; |
| | | import com.ruoyi.cwgl.service.impl.GdpaasApiService; |
| | | import com.ruoyi.cwgl.service.impl.InvoiceManageServiceImpl; |
| | | import com.ruoyi.tms.domain.TmsCarKeyDispatch; |
| | | import com.ruoyi.tms.service.ITmsCarKeyDispatchService; |
| | |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(InvoiceApiController.class); |
| | | |
| | | @Autowired |
| | | private GdpaasApiService apiService; |
| | | |
| | | @Autowired |
| | | private IInvoiceManageService invoiceManageService; |
| | | @GetMapping("/test") |
| | | public AjaxResult test (String orderNo){ |
| | | |
| | | InvoicingVo invoicingVo = new InvoicingVo(); |
| | | Order order = new Order(); |
| | | order.setBuyerName("test"); |
| | | order.setSalerTaxNum("339901999999199"); |
| | | order.setSalerTel("0571-77777777"); |
| | | order.setSalerAddress("地址"); |
| | | order.setOrderNo(orderNo); |
| | | order.setInvoiceDate(DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD_HH_MM_SS)); |
| | | order.setClerk("开票员"); |
| | | |
| | | order.setEmail("test@xx.com"); |
| | | order.setInvoiceType("1"); |
| | | order.setInvoiceLine("bs"); |
| | | order.setPushMode("-1"); |
| | | order.setExtensionNumber("9999"); |
| | | |
| | | order.setBuyerPhone("15858585858"); |
| | | order.setBuyerAccount("交通银行珠海分行翠微支行 444000091018000509140"); |
| | | order.setBuyerTel("0755-8595593"); |
| | | order.setBuyerTaxNum("91440400737556302T"); |
| | | List<InvoiceDetailApi> invoiceDetailList = new ArrayList<>(); |
| | | InvoiceDetailApi invoiceDetail = new InvoiceDetailApi(); |
| | | invoiceDetail.setGoodsName("电脑"); |
| | | invoiceDetail.setWithTaxFlag("1"); |
| | | invoiceDetail.setTaxRate("0.13"); |
| | | invoiceDetail.setPrice("300"); |
| | | invoiceDetail.setNum("10"); |
| | | invoiceDetailList.add(invoiceDetail); |
| | | order.setInvoiceDetail(invoiceDetailList); |
| | | invoicingVo.setOrder(order); |
| | | apiService.invoicingApi( invoicingVo); |
| | | |
| | | return AjaxResult.success(); |
| | | } |
| | | /** |
| | | * 获取开票信息接口 |
| | | * @return |