From 6a6adc5ec12e1b0382c752aeb5f746b1d17c9815 Mon Sep 17 00:00:00 2001 From: daiyongfei <974332738@qq.com> Date: Wed, 25 Jun 2025 13:28:27 +0800 Subject: [PATCH] =?UTF-8?q?APP=E7=94=A8=E6=88=B7=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fuyuanshen/service/GenConfigService.java | 1 + .../domain/dto/DeviceQueryCriteria.java | 1 - .../mapper/app/AppDeviceTypeMapper.java | 3 +- .../system/rest/app/APPDeviceController.java | 2 +- .../service/app/APPDeviceServiceImpl.java | 4 ++- .../mapper/system/AppDeviceTypeMapper.xml | 28 ++----------------- 6 files changed, 9 insertions(+), 30 deletions(-) diff --git a/fys-generator/src/main/java/com/fuyuanshen/service/GenConfigService.java b/fys-generator/src/main/java/com/fuyuanshen/service/GenConfigService.java index 52cb772..479a793 100644 --- a/fys-generator/src/main/java/com/fuyuanshen/service/GenConfigService.java +++ b/fys-generator/src/main/java/com/fuyuanshen/service/GenConfigService.java @@ -38,4 +38,5 @@ public interface GenConfigService extends IService { * @return 表配置 */ GenConfig update(String tableName, GenConfig genConfig); + } diff --git a/fys-system/src/main/java/com/fuyuanshen/modules/system/domain/dto/DeviceQueryCriteria.java b/fys-system/src/main/java/com/fuyuanshen/modules/system/domain/dto/DeviceQueryCriteria.java index e0e0fa5..dfa2973 100644 --- a/fys-system/src/main/java/com/fuyuanshen/modules/system/domain/dto/DeviceQueryCriteria.java +++ b/fys-system/src/main/java/com/fuyuanshen/modules/system/domain/dto/DeviceQueryCriteria.java @@ -4,7 +4,6 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.sql.Timestamp; -import java.time.LocalDateTime; import java.util.List; import java.util.Set; diff --git a/fys-system/src/main/java/com/fuyuanshen/modules/system/mapper/app/AppDeviceTypeMapper.java b/fys-system/src/main/java/com/fuyuanshen/modules/system/mapper/app/AppDeviceTypeMapper.java index b250061..992923b 100644 --- a/fys-system/src/main/java/com/fuyuanshen/modules/system/mapper/app/AppDeviceTypeMapper.java +++ b/fys-system/src/main/java/com/fuyuanshen/modules/system/mapper/app/AppDeviceTypeMapper.java @@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.fuyuanshen.modules.system.domain.app.APPDeviceType; import com.fuyuanshen.modules.system.domain.dto.DeviceQueryCriteria; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; import java.util.List; @@ -23,6 +24,6 @@ public interface AppDeviceTypeMapper extends BaseMapper { * @param criteria 查询条件 * @return 设备类型列表 */ - List appTypeList(DeviceQueryCriteria criteria); + List appTypeList(@Param("criteria")DeviceQueryCriteria criteria); } diff --git a/fys-system/src/main/java/com/fuyuanshen/modules/system/rest/app/APPDeviceController.java b/fys-system/src/main/java/com/fuyuanshen/modules/system/rest/app/APPDeviceController.java index 4ed1913..c956892 100644 --- a/fys-system/src/main/java/com/fuyuanshen/modules/system/rest/app/APPDeviceController.java +++ b/fys-system/src/main/java/com/fuyuanshen/modules/system/rest/app/APPDeviceController.java @@ -86,7 +86,7 @@ public class APPDeviceController { @PostMapping(value = "/typeList") @ApiOperation("APP用户设备类型列表") public ResponseVO> appTypeList(@RequestBody DeviceQueryCriteria criteria) { - List typeList = appDeviceService.appTypeList(criteria); + List typeList = appDeviceService.appTypeList(criteria); return ResponseVO.success(typeList); } diff --git a/fys-system/src/main/java/com/fuyuanshen/modules/system/service/app/APPDeviceServiceImpl.java b/fys-system/src/main/java/com/fuyuanshen/modules/system/service/app/APPDeviceServiceImpl.java index f7c6cb6..f6cc664 100644 --- a/fys-system/src/main/java/com/fuyuanshen/modules/system/service/app/APPDeviceServiceImpl.java +++ b/fys-system/src/main/java/com/fuyuanshen/modules/system/service/app/APPDeviceServiceImpl.java @@ -68,7 +68,8 @@ public class APPDeviceServiceImpl extends ServiceImpl appTypeList(DeviceQueryCriteria criteria) { - return appDeviceTypeMapper.appTypeList(criteria); + criteria.setCustomerId(SecurityUtils.getCurrentUserId()); + return appDeviceTypeMapper.appTypeList(criteria); } @@ -124,6 +125,7 @@ public class APPDeviceServiceImpl extends ServiceImpl - id,type_name,is_support_ble,locate_mode,network_way,create_by, + id + ,type_name,is_support_ble,locate_mode,network_way,create_by, update_by,create_time,update_time,customer_id,communication_mode @@ -27,31 +28,6 @@