From c6bfeddb026692798d3292861c928f6e9848b3dd Mon Sep 17 00:00:00 2001 From: guo Date: Mon, 22 Jan 2024 14:17:04 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/FrontierProtectionNoNetData.java | 20 +++++++++---------- .../xml/FrontierProtectionNoNetDataMapper.xml | 1 + ...rontierProtectionNoNetDataServiceImpl.java | 8 ++++++++ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/entity/FrontierProtectionNoNetData.java b/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/entity/FrontierProtectionNoNetData.java index b7567f1b1..23d5405f6 100644 --- a/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/entity/FrontierProtectionNoNetData.java +++ b/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/entity/FrontierProtectionNoNetData.java @@ -114,16 +114,16 @@ public class FrontierProtectionNoNetData implements Serializable { * 操作人id */ @Excel(name = "操作人id", width = 15) - @ApiModelProperty(value = "操作人id") - private java.lang.Integer operateId; - /** - * 操作时间 - */ - @Excel(name = "操作时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") - @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") - @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") - @ApiModelProperty(value = "操作时间") - private java.util.Date operateTime; + @ApiModelProperty(value = "操作人id") + private java.lang.Long operateId; + /** + * 操作时间 + */ + @Excel(name = "操作时间", width = 20, format = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "操作时间") + private java.util.Date operateTime; @TableField(exist = false) @ApiModelProperty(value = "设备名称") diff --git a/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/mapper/xml/FrontierProtectionNoNetDataMapper.xml b/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/mapper/xml/FrontierProtectionNoNetDataMapper.xml index 550facff4..991543cc3 100644 --- a/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/mapper/xml/FrontierProtectionNoNetDataMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/mapper/xml/FrontierProtectionNoNetDataMapper.xml @@ -5,6 +5,7 @@ resultType="com.zhgd.xmgl.modules.frontierprotectionnonet.entity.FrontierProtectionNoNetData"> select fpnnd.*,fpd.location,fpd.dev_name from frontier_protection_no_net_data fpnnd join frontier_protection_dev fpd on fpd.dev_sn=fpnnd.dev_sn + left join system_user su on su.user_id=fpnnd.operate_id ${ew.customSqlSegment} diff --git a/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/service/impl/FrontierProtectionNoNetDataServiceImpl.java b/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/service/impl/FrontierProtectionNoNetDataServiceImpl.java index ae3f87bb2..0b1c85bec 100644 --- a/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/service/impl/FrontierProtectionNoNetDataServiceImpl.java +++ b/src/main/java/com/zhgd/xmgl/modules/frontierprotectionnonet/service/impl/FrontierProtectionNoNetDataServiceImpl.java @@ -8,6 +8,8 @@ import com.zhgd.xmgl.modules.frontierprotectionnonet.entity.FrontierProtectionNo import com.zhgd.xmgl.modules.frontierprotectionnonet.mapper.FrontierProtectionNoNetDataMapper; import com.zhgd.xmgl.modules.frontierprotectionnonet.mapper.FrontierProtectionNoNetDevMapper; import com.zhgd.xmgl.modules.frontierprotectionnonet.service.IFrontierProtectionNoNetDataService; +import com.zhgd.xmgl.security.entity.UserInfo; +import com.zhgd.xmgl.security.util.SecurityUtils; import io.swagger.models.auth.In; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -20,6 +22,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import java.util.Date; import java.util.HashMap; import java.util.List; +import java.util.Objects; import com.zhgd.xmgl.util.RefUtil; import org.springframework.transaction.annotation.Transactional; @@ -73,6 +76,11 @@ public class FrontierProtectionNoNetDataServiceImpl extends ServiceImpl