|
@@ -14,6 +14,7 @@ import com.ruoyi.system.mapper.SysDeptMapper;
|
|
import com.ruoyi.system.mapper.SysInterfaceForeignMapper;
|
|
import com.ruoyi.system.mapper.SysInterfaceForeignMapper;
|
|
import com.ruoyi.system.utils.ExcelUtils;
|
|
import com.ruoyi.system.utils.ExcelUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
@@ -41,8 +42,9 @@ public class Task {
|
|
/***
|
|
/***
|
|
* 邮件发送(定时比对数据后发送邮件)
|
|
* 邮件发送(定时比对数据后发送邮件)
|
|
*/
|
|
*/
|
|
|
|
+ @Async
|
|
@Scheduled(cron = "0 10,40 * * * ? ")
|
|
@Scheduled(cron = "0 10,40 * * * ? ")
|
|
- //@Scheduled(cron = "0 0/1 * * * ? ")
|
|
|
|
|
|
+ //@Scheduled(cron = "0 0/2 * * * ? ")
|
|
public void thirdNucleicAcid() {
|
|
public void thirdNucleicAcid() {
|
|
try {
|
|
try {
|
|
|
|
|
|
@@ -66,8 +68,8 @@ public class Task {
|
|
String time = DateUtils.formatString(data);
|
|
String time = DateUtils.formatString(data);
|
|
//往前推半个小时
|
|
//往前推半个小时
|
|
|
|
|
|
- //String startTime = "2022-11-17 08:30:00";
|
|
|
|
- //String endTime = "2022-11-17 09:00:00";
|
|
|
|
|
|
+ //String startTime = "2022-12-12 10:00:00";
|
|
|
|
+ //String endTime = "2022-12-12 10:30:00";
|
|
String startTime = DateUtils.plusSeconds(time, -70);
|
|
String startTime = DateUtils.plusSeconds(time, -70);
|
|
String endTime = DateUtils.plusSeconds(time, -40);
|
|
String endTime = DateUtils.plusSeconds(time, -40);
|
|
//SysUser user = SecurityUtils.getLoginUser().getUser();
|
|
//SysUser user = SecurityUtils.getLoginUser().getUser();
|
|
@@ -90,6 +92,7 @@ public class Task {
|
|
List<OdsQssHsjcxx> OdsQssHsjcxxList65 = qdsQssHsjcxxService.thirdNucleicAcid65(startTime, endTime);
|
|
List<OdsQssHsjcxx> OdsQssHsjcxxList65 = qdsQssHsjcxxService.thirdNucleicAcid65(startTime, endTime);
|
|
OdsQssHsjcxxList.addAll(OdsQssHsjcxxList65);
|
|
OdsQssHsjcxxList.addAll(OdsQssHsjcxxList65);
|
|
//查询安康码采集地点信息
|
|
//查询安康码采集地点信息
|
|
|
|
+ System.out.println("执行查询安康码采集地点信息sql");
|
|
List<AkmData> akmDataList = akmDataMapper.selectAkmDataListByIdList(startTime, endTime, idCardList);
|
|
List<AkmData> akmDataList = akmDataMapper.selectAkmDataListByIdList(startTime, endTime, idCardList);
|
|
|
|
|
|
//查询65开头的安康码扫码数据
|
|
//查询65开头的安康码扫码数据
|
|
@@ -217,8 +220,7 @@ public class Task {
|
|
"3555393474@qq.com",
|
|
"3555393474@qq.com",
|
|
"731020@qq.com","1176443192@qq.com");
|
|
"731020@qq.com","1176443192@qq.com");
|
|
/*ArrayList<String> tos2 = CollUtil.newArrayList(
|
|
/*ArrayList<String> tos2 = CollUtil.newArrayList(
|
|
- "1223814488@qq.com",
|
|
|
|
- "15156696045@139.com");*/
|
|
|
|
|
|
+ "1434745622@qq.com");*/
|
|
MailUtil.send(tos2, "会员积分实时变动通知", sb.toString(), true);
|
|
MailUtil.send(tos2, "会员积分实时变动通知", sb.toString(), true);
|
|
}
|
|
}
|
|
/*if(b1){
|
|
/*if(b1){
|
|
@@ -249,6 +251,7 @@ public class Task {
|
|
/**
|
|
/**
|
|
* 定时重置查询次数
|
|
* 定时重置查询次数
|
|
*/
|
|
*/
|
|
|
|
+ @Async
|
|
@Scheduled(cron = "0 1 0 * * ? ")
|
|
@Scheduled(cron = "0 1 0 * * ? ")
|
|
public void reset() {
|
|
public void reset() {
|
|
List<SysInterfaceForeign> interfaceForeignList = sysInterfaceForeignMapper.selectSysInterfaceForeignList(new SysInterfaceForeign());
|
|
List<SysInterfaceForeign> interfaceForeignList = sysInterfaceForeignMapper.selectSysInterfaceForeignList(new SysInterfaceForeign());
|