| | |
| | | import com.gs.xky.config.DingTalkParam; |
| | | import com.gs.xky.config.DingTalkResponse; |
| | | import com.gs.xky.dto.EmployeeInfo; |
| | | import com.gs.xky.service.ApiService; |
| | | import com.gs.xky.service.MesStaffService; |
| | | import com.gs.xky.service.XkyService; |
| | | import com.gs.xky.entity.MesInvItemArn; |
| | | import com.gs.xky.service.*; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | |
| | | private final MesStaffService staffService; |
| | | |
| | | private final DeliveryNoticeService deliveryNoticeService; |
| | | |
| | | private final MesInvItemArnService invItemArnService; |
| | | |
| | | /** |
| | | * 每五分钟执行一次 |
| | | * 获取设备最近的一条记录 |
| | |
| | | xkyService.GetSaveDetail(); |
| | | } |
| | | |
| | | @Scheduled(cron = "0 0/55 * * * ?") |
| | | @Scheduled(cron = "10 3,8,13,18,23,28,33,38,43,48,53,58 * * * ?") |
| | | public void compensateMethod() throws IOException { |
| | | // 补偿逻辑 |
| | | List<MesInvItemArn> itemArnMinus = invItemArnService.getItemArnMinus(); |
| | | deliveryNoticeService.processMesInvItemArnStatusAsync(itemArnMinus); |
| | | } |
| | | |
| | | @Scheduled(cron = "0 0/53 * * * ?") |
| | | public void getDinTalkData() throws IOException { |
| | | DingTalkParam dingTalkParam = new DingTalkParam(1); |
| | | |