| | |
| | | private FileInfoService fileInfoService; |
| | | private Boolean taskFlag = false; |
| | | |
| | | @Scheduled(cron = "0/10 * * * * ?") |
| | | //@Scheduled(cron = "0/10 * * * * ?") |
| | | public void execute() throws Exception { |
| | | if(taskFlag == true){ |
| | | System.out.println("正在运行,强制退出-------》"); |
| | |
| | | txt += map+",\n"; |
| | | if(entity.getBody().getCode() ==1 ){ |
| | | //申请成功,去获取开票文件 |
| | | System.out.println(entity.getBody()); |
| | | // System.out.println(entity.getBody()); |
| | | txt += entity.getBody()+",\n"; |
| | | Object o = entity.getBody().getData().get(0); |
| | | String s = JSON.toJSONString(o); |
| | |
| | | writeTxt(txt); |
| | | orderRecordService.saveOrUpdate(orderRecord); |
| | | }else { |
| | | System.out.println(entity.getBody()); |
| | | // System.out.println(entity.getBody()); |
| | | txt += entity.getBody()+",\n"; |
| | | writeTxt(txt); |
| | | } |