提交导出问题修改
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user