3254194295 1 سال پیش
والد
کامیت
7b1acbcd7b
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      platform-service/src/main/java/com/platform/service/sb/impl/SbMeasureLogServiceImpl.java

+ 2 - 1
platform-service/src/main/java/com/platform/service/sb/impl/SbMeasureLogServiceImpl.java

@@ -68,10 +68,11 @@ public class SbMeasureLogServiceImpl extends BaseServiceImpl<SbMeasureLogMapper,
             }
         }
         if (sbInfoVOS != null ) {
+            UserInfo userInfo = SecurityUtils.getUserInfo();
             SbMeasureLogDTO log = new SbMeasureLogDTO();
             log.setOtherType(type);
             log.setSbId(sbInfoVOS.getId());
-            String str = "设备位号为:" + (sbInfoVOS.getPositionNo() == null ? "" : sbInfoVOS.getPositionNo() )+ ",设备位置为:" + (sbInfoVOS.getPositionName() == null ? "" : sbInfoVOS.getPositionName()) + "的设备:" + sbInfoVOS.getName() + "于" + log.getCreatedTime() + "被" + log.getCreatedUserName() + type;
+            String str = "设备位号为:" + (sbInfoVOS.getPositionNo() == null ? "" : sbInfoVOS.getPositionNo() )+ ",设备位置为:" + (sbInfoVOS.getPositionName() == null ? "" : sbInfoVOS.getPositionName()) + "的设备:" + sbInfoVOS.getName() + "于" + LocalDateTime.now() + "被" + userInfo.getRealName() + operate;
 
             log.setContent(str);
             super.saveModelByDTO(log);