diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcBoardServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcBoardServiceImpl.java index c83e7b0d..0e859095 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcBoardServiceImpl.java +++ b/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 content : contentList) { + /*for (Map 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;