定时发送变更信息bug

This commit is contained in:
Paidax
2025-03-13 09:21:51 +08:00
parent 5927a814e9
commit 089959113a
2 changed files with 10 additions and 7 deletions
@@ -8,6 +8,7 @@ import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.lang.Lang;
import org.nutz.lang.util.NutMap;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
@@ -49,12 +50,14 @@ public class SourceChangeJob implements Job {
}
});
// 收集成发送短信内容
String updateDataStr = updateDataList.stream().map(v -> {
return v.getString("changeType") + "" + v.getInt("count") + "";
}).collect(Collectors.joining(","));
String content = "智慧工会" + today + "数据更新汇总:" + updateDataStr;
if (Lang.isNotEmpty(updateDataList)) {
// 收集成发送短信内容
String updateDataStr = updateDataList.stream().map(v -> {
return v.getString("changeType") + "" + v.getInt("count") + "";
}).collect(Collectors.joining(","));
String content = "智慧工会" + today + "数据更新汇总:" + updateDataStr;
msgApi.sendMsg(List.of("DingTalk"), "2004000022", 1, "数据更新汇总", content, "", "");
msgApi.sendMsg(List.of("DingTalk"), "2004000022", 1, "数据更新汇总", content, "", "");
}
}
}
@@ -48,7 +48,7 @@ layout("/layouts/platform.html"){
</el-card>
<el-card shadow="never" class="mt10">
<table-tool :app="this" label="变更记录(默认查询当天变更记录,如需查询更多变更记录,请选择上方【变更日期】后进行搜索)">
<table-tool :app="this" label="变更记录(默认查询最近三个月,如需查询其他变更记录,请选择上方【变更日期】后进行搜索)">
<template #func>
<el-button type="primary" style="margin-right: 10px" size="small" @click="doBatchChange">批量确认</el-button>