| | |
| | | }) |
| | | @GetMapping(value = "/exportQuickBook") |
| | | @ResponseBody |
| | | public Object exportQuickBooks(){ |
| | | List<Map<String,Object>> orders = orderService.queryAllOrderDatas(); |
| | | redisUtil.setStrValue(INVOICE_DATA+"",orders.toString()); |
| | | public Object exportQuickBooks(int company){ |
| | | redisUtil.setStrValue("quick","3"+"_"+company ); |
| | | try { |
| | | View view = InvoicesDataUploadUtil.connectToQuickBooks(); |
| | | log.info("view:{}",view); |
| | | return new SuccessTip(view); |
| | | } catch (InvalidRequestException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return new com.stylefeng.guns.core.base.tips.SuccessTip(); |
| | | return new SuccessTip(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "应付款票据quickBooks--bill",notes="应付款票据quickBooks--bill") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | }) |
| | | @GetMapping(value = "/exportQuickBookBill") |
| | | @ResponseBody |
| | | public Object exportQuickBookBill(int company){ |
| | | redisUtil.setStrValue("quick","4"+"_"+company); |
| | | try { |
| | | View view = InvoicesDataUploadUtil.connectToQuickBooks(); |
| | | log.info("view:{}",view); |
| | | return new SuccessTip(view); |
| | | } catch (InvalidRequestException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return new SuccessTip(); |
| | | } |
| | | |
| | | |
| | |
| | | priceService.insertBatch(prices); |
| | | Long orderId = prices.get(0).getOrderId(); |
| | | TOrder tOrder = orderService.selectById(orderId); |
| | | tOrder.setChange(1); |
| | | tOrder.setNote(note); |
| | | return new SuccessTip(); |
| | | } |