From 56259e44d2ed2f7b1f9dfc65995c28ae371695af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Mon, 17 Mar 2025 10:11:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9E=8B=E5=8F=B7=E6=96=B0=E5=A2=9E=E8=8A=AF?= =?UTF-8?q?=E7=89=87=E5=8E=82=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/ss/device/domain/vo/DeviceVO.java | 4 ++++ .../main/java/com/ruoyi/ss/device/mapper/DeviceMapper.xml | 3 ++- .../src/main/java/com/ruoyi/ss/model/domain/SmModel.java | 3 +++ .../src/main/java/com/ruoyi/ss/model/domain/SmModelBO.java | 2 ++ .../main/java/com/ruoyi/ss/model/mapper/SmModelMapper.xml | 7 ++++++- .../src/main/resources/application-druid-test.yml | 4 ++-- 6 files changed, 19 insertions(+), 4 deletions(-) diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/device/domain/vo/DeviceVO.java b/smart-switch-service/src/main/java/com/ruoyi/ss/device/domain/vo/DeviceVO.java index ac69cd0c..7417af20 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/device/domain/vo/DeviceVO.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/device/domain/vo/DeviceVO.java @@ -34,6 +34,10 @@ public class DeviceVO extends Device implements IotDevice { @ApiModelProperty("型号") private String model; + @ApiModelProperty("型号芯片厂商") + @JsonView({DeviceView.SuitList.class, JsonViewProfile.App.class}) + private String modelChip; + @ApiModelProperty("所属用户名称") @JsonView(DeviceView.SuitList.class) private String userName; diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/device/mapper/DeviceMapper.xml b/smart-switch-service/src/main/java/com/ruoyi/ss/device/mapper/DeviceMapper.xml index 60393ae0..4bacf109 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/device/mapper/DeviceMapper.xml +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/device/mapper/DeviceMapper.xml @@ -80,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" sm.tags as model_tags, sm.product_id as model_product_id, sm.app_ids as model_app_ids, + sm.chip as model_chip, ss.name as store_name, ss.contact_name as store_contact_name, ss.contact_mobile as store_contact_mobile, @@ -764,7 +765,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - +