提交导出问题修改

This commit is contained in:
15666619788
2025-08-06 14:12:12 +08:00
parent de5ac98d5a
commit 68395d7a94
7 changed files with 89 additions and 54 deletions

View File

@@ -161,7 +161,9 @@ public class AlertLogServiceImpl implements IAlertLogService {
@Override
public int insertAlertLogBatch(List<AlertLog> alertLogList) {
int num = 0;
if(alertLogList.size()>0){
num = alertLogMapper.insertAlertLogBatch(alertLogList);
Long deptId = sysUserMapper.getDeptUserByUserId(alertLogList.get(0).getUserId()).getDeptId();
if (deptId != null) {
webSocketAlertServer.sendToUser(deptId, JSON.toJSONString(alertLogList));
@@ -173,7 +175,7 @@ public class AlertLogServiceImpl implements IAlertLogService {
// webSocketAlertServer.sendToUser(deptId, JSON.toJSONString(alertLog));
// }
// }
return alertLogMapper.insertAlertLogBatch(alertLogList);
return num;
}
/**