|
|
@@ -23,7 +23,7 @@ public class UpdateFosterwxCashWorkBoxClientInfo {
|
|
|
@Autowired
|
|
|
public CoralApiService coralApiService;
|
|
|
|
|
|
- @Scheduled(cron = "0 */1 * * * ?")
|
|
|
+ @Scheduled(cron = "0 */3 * * * ?")
|
|
|
@SchedulerLock(name = "pangu:UpdateFosterwxCashWorkBoxClientInfo", lockAtLeastForString = "PT5S", lockAtMostForString = "PT15M")
|
|
|
public void execute() {
|
|
|
System.out.println("[cronjob]:更新企微客户端上报小程序消息");
|
|
|
@@ -50,10 +50,10 @@ public class UpdateFosterwxCashWorkBoxClientInfo {
|
|
|
tagId = Integer.parseInt(kv[1]);
|
|
|
}
|
|
|
}
|
|
|
- FosterwxCashWorkBoxClientInfo save = new FosterwxCashWorkBoxClientInfo();
|
|
|
- save.setBoxType(boxType);
|
|
|
- save.setMaterialId(materialId);
|
|
|
- save.setTagId(tagId);
|
|
|
+ box.setBoxType(boxType);
|
|
|
+ box.setMaterialId(materialId);
|
|
|
+ box.setTagId(tagId);
|
|
|
+ fosterwxCashWorkBoxClientInfoService.updateById(box);
|
|
|
}
|
|
|
}
|
|
|
}
|