kongdeqiang
2023-12-13 f519185656a36159dfad0ba27e83528176827105
src/main/java/com/boying/job/YCGetEticketScheduled.java
@@ -32,13 +32,12 @@
    @Autowired
    private OrderRecordService orderRecordService;
    @Autowired
    private FileInfoService fileInfoService;
    @Autowired
    private SystemConfigProperties systemConfigProperties;
    private Boolean taskFlag = false;
    @Scheduled(cron = "0 0/1 * * * ?")
    //@Scheduled(cron = "0 0/1 * * * ?")
    public void execute() throws Exception {
        if (taskFlag == true) {
            System.out.println("正在运行,强制退出-------》");
@@ -56,7 +55,7 @@
            }
            //开取发票
            for (OrderRecord orderRecord : list) {
                System.out.println("正在申请开票:" + orderRecord);
              //  System.out.println("正在申请开票:" + orderRecord);
                doTicket(orderRecord);
            }
        }
@@ -128,7 +127,6 @@
                writeTxt(txt);
                orderRecordService.saveOrUpdate(orderRecord);
            }else {
                // System.out.println(entity.getBody());
                txt += entity.getBody()+",\n";
                writeTxt(txt);
            }