定时发送变更信息bug
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user