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 @@