fix:数据拉取

This commit is contained in:
Xiang
2025-12-17 09:02:22 +08:00
parent 7932222f8e
commit 4277106d00
2 changed files with 11 additions and 7 deletions

View File

@@ -58,13 +58,17 @@ public class VenueQuerySchedule {
putIntoMap(item, map2); putIntoMap(item, map2);
} }
}); });
if (MapUtils.isNotEmpty(map1)) {
StringBuffer sb1 = new StringBuffer("查询江体小程序场地信息【18:00-20:00】\n"); StringBuffer sb1 = new StringBuffer("查询江体小程序场地信息【18:00-20:00】\n");
buildMsg2(map1, sb1); buildMsg2(map1, sb1);
dingTalkScriptVenueService.sendScriptMsg(sb1.toString());
}
if (MapUtils.isNotEmpty(map2)) {
StringBuffer sb2 = new StringBuffer("查询江体小程序场地信息【20:00-22:00】\n"); StringBuffer sb2 = new StringBuffer("查询江体小程序场地信息【20:00-22:00】\n");
buildMsg2(map2, sb2); buildMsg2(map2, sb2);
dingTalkScriptVenueService.sendScriptMsg(sb1.toString());
dingTalkScriptVenueService.sendScriptMsg(sb2.toString()); dingTalkScriptVenueService.sendScriptMsg(sb2.toString());
} }
}
@Scheduled(cron = "0 0/10 9-15 * * ?") @Scheduled(cron = "0 0/10 9-15 * * ?")
public void venueQueryTask4Free() { public void venueQueryTask4Free() {

View File

@@ -50,7 +50,7 @@ public class VenueServiceImpl implements IVenueService {
@Override @Override
public List<SitePositionList> queryTomorrowVenue() { public List<SitePositionList> queryTomorrowVenue() {
String token = userTokenInfoService.getToken("Xiang"); String token = userTokenInfoService.getToken("Xiang");
if (StringUtils.isNotBlank(token)) { if (StringUtils.isBlank(token)) {
return Lists.newArrayList(); return Lists.newArrayList();
} }
List<SitePositionList> sitePositionLists = jntyzxHttpService.queryAvailableTomorrow("1", token); List<SitePositionList> sitePositionLists = jntyzxHttpService.queryAvailableTomorrow("1", token);