From aabba71331afaf818df6599166523bad7da580f5 Mon Sep 17 00:00:00 2001 From: xiwa Date: Sat, 17 Jun 2023 15:03:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BA=A7=E5=93=81=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/init/sys_menu.json | 4 ++-- .../manager/dto/vo/thingmodel/ThingModelVo.java | 14 ++++---------- .../manager/service/impl/ProductServiceImpl.java | 1 - 待优化项.md | 2 ++ 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/data/init/sys_menu.json b/data/init/sys_menu.json index b8ae77fb..d413b7c5 100644 --- a/data/init/sys_menu.json +++ b/data/init/sys_menu.json @@ -2524,7 +2524,7 @@ "isFrame": "1", "menuName": "设备列表", "menuType": "C", - "orderNum": 4, + "orderNum": 3, "parentId": 2200, "path": "devices", "perms": null, @@ -2546,7 +2546,7 @@ "isFrame": "1", "menuName": "虚拟设备", "menuType": "C", - "orderNum": 5, + "orderNum": 4, "parentId": 2200, "path": "virtualDevices", "perms": null, diff --git a/iot-module/iot-manager/src/main/java/cc/iotkit/manager/dto/vo/thingmodel/ThingModelVo.java b/iot-module/iot-manager/src/main/java/cc/iotkit/manager/dto/vo/thingmodel/ThingModelVo.java index ca7d1326..3ba011fd 100644 --- a/iot-module/iot-manager/src/main/java/cc/iotkit/manager/dto/vo/thingmodel/ThingModelVo.java +++ b/iot-module/iot-manager/src/main/java/cc/iotkit/manager/dto/vo/thingmodel/ThingModelVo.java @@ -1,28 +1,22 @@ package cc.iotkit.manager.dto.vo.thingmodel; import cc.iotkit.model.product.ThingModel; +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; +import com.alibaba.excel.annotation.ExcelProperty; +import io.github.linpeilie.annotations.AutoMapper; import io.github.linpeilie.annotations.AutoMapping; import io.github.linpeilie.annotations.ReverseAutoMapping; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import lombok.ToString; -import java.util.Date; import java.io.Serializable; -import java.math.BigDecimal; - -import com.fasterxml.jackson.annotation.JsonFormat; -import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; -import com.alibaba.excel.annotation.ExcelProperty; -import io.github.linpeilie.annotations.AutoMapper; @ApiModel(value = "ThingModelVo") @Data @ExcelIgnoreUnannotated @AutoMapper(target = ThingModel.class) - public class ThingModelVo implements Serializable { private static final long serialVersionUID = -1L; @@ -35,7 +29,7 @@ public class ThingModelVo implements Serializable { @ExcelProperty(value = "模型内容") @AutoMapping(ignore = true) @ReverseAutoMapping(ignore = true) - private String model; + private ThingModel.Model model; @ApiModelProperty(value = "产品key") @ExcelProperty(value = "产品key") diff --git a/iot-module/iot-manager/src/main/java/cc/iotkit/manager/service/impl/ProductServiceImpl.java b/iot-module/iot-manager/src/main/java/cc/iotkit/manager/service/impl/ProductServiceImpl.java index b29f8abe..6f5fb581 100644 --- a/iot-module/iot-manager/src/main/java/cc/iotkit/manager/service/impl/ProductServiceImpl.java +++ b/iot-module/iot-manager/src/main/java/cc/iotkit/manager/service/impl/ProductServiceImpl.java @@ -103,7 +103,6 @@ public class ProductServiceImpl implements IProductService { @Override public ThingModelVo getThingModelByProductKey(String productKey) { - ThingModel thingModel = thingModelData.findByProductKey(productKey); return MapstructUtils.convert(thingModel, ThingModelVo.class); } diff --git a/待优化项.md b/待优化项.md index 04d1271a..c97bd679 100644 --- a/待优化项.md +++ b/待优化项.md @@ -16,3 +16,5 @@ sonerlint扫描,按建议修改相关不规范的代码 sql 日志打印的话加个拦截器,简化sql 增加requestid 基于MDC +## **数据权限** +将原有的checkOwner做成通用的