| | |
| | | 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 IInvoiceManageService invoiceManageService; |
| | | |
| | | /** |
| | | * 获取开票信息接口 |
| | | * 获取开票信息接口 - 应付账单 |
| | | * @return |
| | | */ |
| | | @PostMapping("/callback/receipt/payable") |
| | | public Map<String,String> callbackReceiptPayable(@RequestBody CallbackReceiptDto callbackReceiptDto) { |
| | | logger.info("回传开票结果接收(应付账单){}",callbackReceiptDto); |
| | | |
| | | invoiceManageService.invoicingSuccessPayable(callbackReceiptDto); |
| | | Map<String,String> map = new HashMap<>(); |
| | | map.put("status","0000"); |
| | | map.put("message","同步成功"); |
| | | |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * 获取开票信息接口 - 应收账单 |
| | | * @return |
| | | */ |
| | | @PostMapping("/callback/receipt/receivable") |
| | | public Map<String,String> callbackReceiptReceivable(@RequestBody CallbackReceiptDto callbackReceiptDto) { |
| | | logger.info("回传开票结果接收(应收账单){}",callbackReceiptDto); |
| | | |
| | | invoiceManageService.invoicingSuccessReceivable(callbackReceiptDto); |
| | | Map<String,String> map = new HashMap<>(); |
| | | map.put("status","0000"); |
| | | map.put("message","同步成功"); |
| | | |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * 获取开票信息接口 - 普通发票 |
| | | * @return |
| | | */ |
| | | @PostMapping("/callback/receipt") |
| | | public Map<String,String> callbackReceipt(@RequestBody CallbackReceiptDto callbackReceiptDto) { |
| | | logger.info("回传开票结果接收{}",callbackReceiptDto); |
| | | logger.info("回传开票结果接收(普通发票){}",callbackReceiptDto); |
| | | |
| | | invoiceManageService.invoicingSuccess(callbackReceiptDto); |
| | | Map<String,String> map = new HashMap<>(); |