From a8c41137df88df0664f35b68155eeccdcbd58563 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Mon, 26 Feb 2024 14:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E6=8A=A5=E6=9D=BF=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=90=88=E4=B8=BA=E4=B8=80=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/service/impl/DcBoardServiceImpl.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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;