Browse Source

情报板发布记录合为一条

develop
lau572 9 months ago
parent
commit
a8c41137df
  1. 15
      zc-business/src/main/java/com/zc/business/service/impl/DcBoardServiceImpl.java

15
zc-business/src/main/java/com/zc/business/service/impl/DcBoardServiceImpl.java

@ -103,7 +103,7 @@ public class DcBoardServiceImpl implements IDcBoardService {
//发布记录
LoginUser loginUser = SecurityUtils.getLoginUser();
for (Map<String, Object> content : contentList) {
/*for (Map<String, Object> content : contentList) {
DcBoardReleaseLog releaseLog = new DcBoardReleaseLog();
releaseLog.setDeviceId(deviceId);
releaseLog.setDeviceName(dcDevice.getDeviceName());
@ -115,7 +115,18 @@ public class DcBoardServiceImpl implements IDcBoardService {
releaseLog.setReleaseDeptId(loginUser.getDeptId().toString());
releaseLog.setPlatform(loginUser.getUser().getUserType());
dcBoardReleaseLogMapper.insertDcBoardReleaseLog(releaseLog);
}
}*/
DcBoardReleaseLog releaseLog = new DcBoardReleaseLog();
releaseLog.setDeviceId(deviceId);
releaseLog.setDeviceName(dcDevice.getDeviceName());
releaseLog.setReleaseContent(JSON.toJSONString(contentList));
releaseLog.setReleaseIp(loginUser.getIpaddr());
releaseLog.setReleaseStatus(status);
releaseLog.setReleaseUserId(loginUser.getUsername());
releaseLog.setReleaseUserName(loginUser.getUser().getNickName());
releaseLog.setReleaseDeptId(loginUser.getDeptId().toString());
releaseLog.setPlatform(loginUser.getUser().getUserType());
dcBoardReleaseLogMapper.insertDcBoardReleaseLog(releaseLog);
}
return ajaxResult;

Loading…
Cancel
Save