| | |
| | | }) |
| | | @GetMapping(value = "/exportQuickBook") |
| | | @ResponseBody |
| | | public Object exportQuickBooks(){ |
| | | redisUtil.setStrValue("quick","3"); |
| | | 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(); |
| | | } |
| | | |
| | | |
| | |
| | | }) |
| | | @GetMapping(value = "/exportQuickBookBill") |
| | | @ResponseBody |
| | | public Object exportQuickBookBill(){ |
| | | redisUtil.setStrValue("quick","4"); |
| | | 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 com.stylefeng.guns.core.base.tips.SuccessTip(); |
| | | 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(); |
| | | } |