Commit adbcb5ab by danmo

修改活码刷新定时任务

1 parent f5bdcca2
...@@ -49,7 +49,19 @@ public class WeQrCodeUpdateTask { ...@@ -49,7 +49,19 @@ public class WeQrCodeUpdateTask {
List<WeQrScopeVo> weQrScopeList = weQrScopeService.getWeQrScopeByTime(week.getValue(), formatTime); List<WeQrScopeVo> weQrScopeList = weQrScopeService.getWeQrScopeByTime(week.getValue(), formatTime);
if (CollectionUtil.isNotEmpty(weQrScopeList)) { if (CollectionUtil.isNotEmpty(weQrScopeList)) {
for (WeQrScopeVo weQrScope : weQrScopeList) { List<WeQrScopeVo> weCustomizeQrScopeList = weQrScopeList.stream().filter(item -> ObjectUtil.equal(1, item.getType())).collect(Collectors.toList());
if (CollectionUtil.isNotEmpty(weCustomizeQrScopeList)) {
weCustomizeQrScopeList.forEach(this::extracted);
} else {
WeQrScopeVo weDefaultQrScope = weQrScopeList.stream().filter(item -> ObjectUtil.equal(0, item.getType())).findFirst().orElse(null);
if (weDefaultQrScope != null) {
extracted(weDefaultQrScope);
}
}
}
}
private void extracted(WeQrScopeVo weQrScope) {
WeQrCode weQrCode = weQrCodeService.getById(weQrScope.getQrId()); WeQrCode weQrCode = weQrCodeService.getById(weQrScope.getQrId());
String configId = weQrCode.getConfigId(); String configId = weQrCode.getConfigId();
WeContactWayDto contactWay = externalContactClient.getContactWay(configId); WeContactWayDto contactWay = externalContactClient.getContactWay(configId);
...@@ -86,7 +98,4 @@ public class WeQrCodeUpdateTask { ...@@ -86,7 +98,4 @@ public class WeQrCodeUpdateTask {
} }
} }
} }
}
}
} }
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
where find_in_set(#{value},wqs.work_cycle) where find_in_set(#{value},wqs.work_cycle)
and str_to_date(wqs.begin_time,'%H:%i:%S') &lt;= str_to_date(#{formatTime},'%H:%i:%S') and str_to_date(wqs.begin_time,'%H:%i:%S') &lt;= str_to_date(#{formatTime},'%H:%i:%S')
and str_to_date(wqs.end_time ,'%H:%i:%S') &gt;= str_to_date(#{formatTime},'%H:%i:%S') and str_to_date(wqs.end_time ,'%H:%i:%S') &gt;= str_to_date(#{formatTime},'%H:%i:%S')
and wqs.`type` = 1 /*and wqs.`type` = 1*/
and wqs.del_flag = 0 and wqs.del_flag = 0
</select> </select>
</mapper> </mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!