Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 651270ea
authored
May 08, 2021
by
fz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.代码规范整理(应用结构规范修改)
1 parent
80a62ea5
Hide whitespace changes
Inline
Side-by-side
Showing
181 changed files
with
685 additions
and
664 deletions
pom.xml
src/main/java/com/glsx/smart/SmartServiceApplication.java → src/main/java/cn/com/glsx/SmartServiceApplication.java
src/main/java/com/glsx/smart/constant/Constants.java → src/main/java/cn/com/glsx/smart/common/constant/Constants.java
src/main/java/com/glsx/smart/enums/DeviceChannelEnum.java → src/main/java/cn/com/glsx/smart/common/enums/DeviceChannelEnum.java
src/main/java/com/glsx/smart/exception/BusinessException.java → src/main/java/cn/com/glsx/smart/common/exception/BusinessException.java
src/main/java/com/glsx/smart/exception/CarKeyException.java → src/main/java/cn/com/glsx/smart/common/exception/CarKeyException.java
src/main/java/com/glsx/smart/exception/GlobalExceptionHandler.java → src/main/java/cn/com/glsx/smart/common/exception/ChejiaSmartExceptionHandler.java
src/main/java/com/glsx/smart/exception/ResultEnum.java → src/main/java/cn/com/glsx/smart/common/exception/ResultEnum.java
src/main/java/com/glsx/smart/filter/CorsFilter.java → src/main/java/cn/com/glsx/smart/common/filter/ChejiaCorsFilter.java
src/main/java/com/glsx/smart/redis/RedisService.java → src/main/java/cn/com/glsx/smart/common/redis/RedisService.java
src/main/java/com/glsx/smart/utils/AesEncryptUtils.java → src/main/java/cn/com/glsx/smart/common/utils/AesEncryptUtils.java
src/main/java/com/glsx/smart/utils/DjApiInvoker.java → src/main/java/cn/com/glsx/smart/common/utils/DjApiInvoker.java
src/main/java/com/glsx/smart/utils/GCJ2WGS.java → src/main/java/cn/com/glsx/smart/common/utils/GCJ2WGS.java
src/main/java/com/glsx/smart/utils/HttpUtil.java → src/main/java/cn/com/glsx/smart/common/utils/HttpUtil.java
src/main/java/com/glsx/smart/utils/JwtUtil.java → src/main/java/cn/com/glsx/smart/common/utils/JwtUtil.java
src/main/java/com/glsx/smart/utils/SignUtil.java → src/main/java/cn/com/glsx/smart/common/utils/SignUtil.java
src/main/java/com/glsx/smart/utils/SnowflakeWorker.java → src/main/java/cn/com/glsx/smart/common/utils/SnowflakeWorker.java
src/main/java/com/glsx/smart/config/DeviceAddressProducer.java → src/main/java/cn/com/glsx/smart/config/DeviceAddressProducer.java
src/main/java/com/glsx/smart/config/KafkaConfig.java → src/main/java/cn/com/glsx/smart/config/KafkaConfig.java
src/main/java/com/glsx/smart/config/KafkaProducerConfig.java → src/main/java/cn/com/glsx/smart/config/KafkaProducerConfig.java
src/main/java/com/glsx/smart/config/SnowFlakeConfig.java → src/main/java/cn/com/glsx/smart/config/SnowFlakeConfig.java
src/main/java/com/glsx/smart/config/SnowWorkerConfig.java → src/main/java/cn/com/glsx/smart/config/SnowWorkerConfig.java
src/main/java/com/glsx/smart/controller/AiLockingkeyController.java → src/main/java/cn/com/glsx/smart/modules/controller/AiLockingkeyController.java
src/main/java/com/glsx/smart/controller/AiLockingkeyShareController.java → src/main/java/cn/com/glsx/smart/modules/controller/AiLockingkeyShareController.java
src/main/java/com/glsx/smart/controller/ConditionController.java → src/main/java/cn/com/glsx/smart/modules/controller/ConditionController.java
src/main/java/com/glsx/smart/controller/ContentController.java → src/main/java/cn/com/glsx/smart/modules/controller/ContentController.java
src/main/java/com/glsx/smart/controller/IndexController.java → src/main/java/cn/com/glsx/smart/modules/controller/IndexController.java
src/main/java/com/glsx/smart/controller/OrderValueController.java → src/main/java/cn/com/glsx/smart/modules/controller/OrderValueController.java
src/main/java/com/glsx/smart/controller/ProductController.java → src/main/java/cn/com/glsx/smart/modules/controller/ProductController.java
src/main/java/com/glsx/smart/controller/ProductTypeController.java → src/main/java/cn/com/glsx/smart/modules/controller/ProductTypeController.java
src/main/java/com/glsx/smart/controller/RemoteProductController.java → src/main/java/cn/com/glsx/smart/modules/controller/RemoteProductController.java
src/main/java/com/glsx/smart/controller/SceneController.java → src/main/java/cn/com/glsx/smart/modules/controller/SceneController.java
src/main/java/com/glsx/smart/controller/SceneTemplateController.java → src/main/java/cn/com/glsx/smart/modules/controller/SceneTemplateController.java
src/main/java/com/glsx/smart/controller/SysCodeController.java → src/main/java/cn/com/glsx/smart/modules/controller/SysCodeController.java
src/main/java/com/glsx/smart/controller/SysFileController.java → src/main/java/cn/com/glsx/smart/modules/controller/SysFileController.java
src/main/java/com/glsx/smart/controller/UserDeviceController.java → src/main/java/cn/com/glsx/smart/modules/controller/UserDeviceController.java
src/main/java/com/glsx/smart/controller/UserKafkaController.java → src/main/java/cn/com/glsx/smart/modules/controller/UserKafkaController.java
src/main/java/com/glsx/smart/controller/UserRelationController.java → src/main/java/cn/com/glsx/smart/modules/controller/UserRelationController.java
src/main/java/com/glsx/smart/dao/entity/SmartDeviceOrder.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartDeviceOrder.java
src/main/java/com/glsx/smart/dao/entity/SmartDeviceOrdervalue.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartDeviceOrdervalue.java
src/main/java/com/glsx/smart/dao/entity/SmartDeviceStatus.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartDeviceStatus.java
src/main/java/com/glsx/smart/dao/entity/SmartKeyBlueSense.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartKeyBlueSense.java
src/main/java/com/glsx/smart/dao/entity/SmartKeyBlueSenseExample.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartKeyBlueSenseExample.java
src/main/java/com/glsx/smart/dao/entity/SmartKeyCommandLog.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartKeyCommandLog.java
src/main/java/com/glsx/smart/dao/entity/SmartKeyCommandLogExample.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartKeyCommandLogExample.java
src/main/java/com/glsx/smart/dao/entity/SmartKeyCommandShareLog.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartKeyCommandShareLog.java
src/main/java/com/glsx/smart/dao/entity/SmartKeyCommandShareLogExample.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartKeyCommandShareLogExample.java
src/main/java/com/glsx/smart/dao/entity/SmartProduct.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartProduct.java
src/main/java/com/glsx/smart/dao/entity/SmartProductType.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartProductType.java
src/main/java/com/glsx/smart/dao/entity/SmartScenceSupstatus.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartScenceSupstatus.java
src/main/java/com/glsx/smart/dao/entity/SmartScene.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartScene.java
src/main/java/com/glsx/smart/dao/entity/SmartSceneData.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartSceneData.java
src/main/java/com/glsx/smart/dao/entity/SmartSceneLog.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartSceneLog.java
src/main/java/com/glsx/smart/dao/entity/SmartSceneTemplate.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartSceneTemplate.java
src/main/java/com/glsx/smart/dao/entity/SmartShareKeyBlueKey.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartShareKeyBlueKey.java
src/main/java/com/glsx/smart/dao/entity/SmartSysCode.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartSysCode.java
src/main/java/com/glsx/smart/dao/entity/SmartSysFile.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartSysFile.java
src/main/java/com/glsx/smart/dao/entity/SmartTemplateParam.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartTemplateParam.java
src/main/java/com/glsx/smart/dao/entity/SmartUserChannel.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartUserChannel.java
src/main/java/com/glsx/smart/dao/entity/SmartUserDevice.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartUserDevice.java
src/main/java/com/glsx/smart/dao/entity/SmartUserRelation.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartUserRelation.java
src/main/java/com/glsx/smart/dao/entity/SmartVehicleBlueKey.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartVehicleBlueKey.java
src/main/java/com/glsx/smart/dao/entity/SmartVehicleBlueKeyExample.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartVehicleBlueKeyExample.java
src/main/java/com/glsx/smart/dao/entity/SmartVehicleBlueShareKey.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartVehicleBlueShareKey.java
src/main/java/com/glsx/smart/dao/entity/SmartVehicleBlueShareKeyExample.java → src/main/java/cn/com/glsx/smart/modules/entity/SmartVehicleBlueShareKeyExample.java
src/main/java/com/glsx/smart/dao/mapper/SmartDeviceOrderMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartDeviceOrderMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartDeviceOrdervalueMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartDeviceOrdervalueMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartDeviceStatusMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartDeviceStatusMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartKeyBlueSenseMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartKeyBlueSenseMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartKeyCommandLogMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartKeyCommandLogMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartKeyCommandShareLogMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartKeyCommandShareLogMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartProductMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartProductMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartProductTypeMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartProductTypeMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartScenceSupstatusMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartScenceSupstatusMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartSceneDataMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartSceneDataMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartSceneLogMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartSceneLogMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartSceneMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartSceneMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartSceneTemplateMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartSceneTemplateMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartSysCodeMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartSysCodeMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartSysFileMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartSysFileMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartTemplateParamMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartTemplateParamMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartUserChannelMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartUserChannelMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartUserDeviceMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartUserDeviceMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartUserRelationMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartUserRelationMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartVehicleBlueKeyMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartVehicleBlueKeyMapper.java
src/main/java/com/glsx/smart/dao/mapper/SmartVehicleBlueShareKeyMapper.java → src/main/java/cn/com/glsx/smart/modules/mapper/SmartVehicleBlueShareKeyMapper.java
src/main/java/com/glsx/smart/pojo/BaseDTO.java → src/main/java/cn/com/glsx/smart/modules/model/BaseDTO.java
src/main/java/com/glsx/smart/pojo/DjApiDTO.java → src/main/java/cn/com/glsx/smart/modules/model/DjApiDTO.java
src/main/java/com/glsx/smart/pojo/ExecuteTaskVo.java → src/main/java/cn/com/glsx/smart/modules/model/ExecuteTaskVo.java
src/main/java/com/glsx/smart/pojo/FileDTO.java → src/main/java/cn/com/glsx/smart/modules/model/FileDTO.java
src/main/java/com/glsx/smart/pojo/OrderResponse.java → src/main/java/cn/com/glsx/smart/modules/model/OrderResponse.java
src/main/java/com/glsx/smart/pojo/ResponseVo.java → src/main/java/cn/com/glsx/smart/modules/model/ResponseVo.java
src/main/java/com/glsx/smart/pojo/pb/InstanceFence/Fence.java → src/main/java/cn/com/glsx/smart/modules/model/pb/InstanceFence/Fence.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyActionLogBatchRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyActionLogBatchRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyAutoSenseRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyAutoSenseRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyCommandRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyCommandRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyNameRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyNameRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyReceiveRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyReceiveRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyRegisterRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyRegisterRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyShareActionLogBatchRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyShareActionLogBatchRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyShareLogRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyShareLogRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyTokenRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyTokenRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartCarKeyUserRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartCarKeyUserRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartKeyPrimaryShareEditReq.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartKeyPrimaryShareEditReq.java
src/main/java/com/glsx/smart/pojo/request/SmartShareCarKeyPageRequest.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartShareCarKeyPageRequest.java
src/main/java/com/glsx/smart/pojo/request/SmartShareKeyEditReq.java → src/main/java/cn/com/glsx/smart/modules/model/request/SmartShareKeyEditReq.java
src/main/java/com/glsx/smart/pojo/response/RemoteDeviceResp.java → src/main/java/cn/com/glsx/smart/modules/model/response/RemoteDeviceResp.java
src/main/java/com/glsx/smart/pojo/response/SmartCarKeyResponse.java → src/main/java/cn/com/glsx/smart/modules/model/response/SmartCarKeyResponse.java
src/main/java/com/glsx/smart/service/AiLockingKeyService.java → src/main/java/cn/com/glsx/smart/modules/service/AiLockingKeyService.java
src/main/java/com/glsx/smart/service/AiLockingKeyShareService.java → src/main/java/cn/com/glsx/smart/modules/service/AiLockingKeyShareService.java
src/main/java/com/glsx/smart/service/BaseService.java → src/main/java/cn/com/glsx/smart/modules/service/BaseService.java
src/main/java/com/glsx/smart/service/SmartDeviceOrderService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartDeviceOrderService.java
src/main/java/com/glsx/smart/service/SmartDeviceOrdervalueService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartDeviceOrdervalueService.java
src/main/java/com/glsx/smart/service/SmartDeviceStatusService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartDeviceStatusService.java
src/main/java/com/glsx/smart/service/SmartKeyBlueSenseService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartKeyBlueSenseService.java
src/main/java/com/glsx/smart/service/SmartKeyCommandLogService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartKeyCommandLogService.java
src/main/java/com/glsx/smart/service/SmartKeyCommandShareLogService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartKeyCommandShareLogService.java
src/main/java/com/glsx/smart/service/SmartProductService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartProductService.java
src/main/java/com/glsx/smart/service/SmartProductTypeService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartProductTypeService.java
src/main/java/com/glsx/smart/service/SmartScenceSupstatusService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartScenceSupstatusService.java
src/main/java/com/glsx/smart/service/SmartSceneDataService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartSceneDataService.java
src/main/java/com/glsx/smart/service/SmartSceneLogService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartSceneLogService.java
src/main/java/com/glsx/smart/service/SmartSceneService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartSceneService.java
src/main/java/com/glsx/smart/service/SmartSceneTemplateService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartSceneTemplateService.java
src/main/java/com/glsx/smart/service/SmartSysCodeService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartSysCodeService.java
src/main/java/com/glsx/smart/service/SmartSysFileService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartSysFileService.java
src/main/java/com/glsx/smart/service/SmartTemplateParamService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartTemplateParamService.java
src/main/java/com/glsx/smart/service/SmartUserChannelService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartUserChannelService.java
src/main/java/com/glsx/smart/service/SmartUserDeviceService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartUserDeviceService.java
src/main/java/com/glsx/smart/service/SmartUserRelationService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartUserRelationService.java
src/main/java/com/glsx/smart/service/SmartVehicleBlueKeyService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartVehicleBlueKeyService.java
src/main/java/com/glsx/smart/service/SmartVehicleBlueShareKeyService.java → src/main/java/cn/com/glsx/smart/modules/service/SmartVehicleBlueShareKeyService.java
src/main/java/com/glsx/smart/service/UserKafkaService.java → src/main/java/cn/com/glsx/smart/modules/service/UserKafkaService.java
src/main/java/com/glsx/smart/service/impl/AiLockingKeyServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/AiLockingKeyServiceImpl.java
src/main/java/com/glsx/smart/service/impl/AiLockingKeyShareServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/AiLockingKeyShareServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartDeviceOrderServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartDeviceOrderServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartDeviceOrdervalueServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartDeviceOrdervalueServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartDeviceStatusServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartDeviceStatusServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartKeyBlueSenseServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartKeyBlueSenseServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartKeyCommandLogServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartKeyCommandLogServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartKeyCommandShareLogServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartKeyCommandShareLogServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartProductServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartProductServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartProductTypeServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartProductTypeServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartScenceSupstatusServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartScenceSupstatusServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneDataServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartSceneDataServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneLogServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartSceneLogServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartSceneServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneTemplateServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartSceneTemplateServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSysCodeServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartSysCodeServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSysFileServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartSysFileServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartTemplateParamServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartTemplateParamServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartUserChannelServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartUserChannelServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartUserDeviceServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartUserDeviceServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartUserRelationServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartUserRelationServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartVehicleBlueKeyServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartVehicleBlueKeyServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartVehicleBlueShareKeyServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/SmartVehicleBlueShareKeyServiceImpl.java
src/main/java/com/glsx/smart/service/impl/UserKafkaServiceImpl.java → src/main/java/cn/com/glsx/smart/modules/service/impl/UserKafkaServiceImpl.java
src/main/resources/mapper/SmartDeviceOrderMapper.xml
src/main/resources/mapper/SmartDeviceOrdervalueMapper.xml
src/main/resources/mapper/SmartDeviceStatusMapper.xml
src/main/resources/mapper/SmartKeyBlueSenseMapper.xml
src/main/resources/mapper/SmartKeyCommandLogMapper.xml
src/main/resources/mapper/SmartKeyCommandShareLogMapper.xml
src/main/resources/mapper/SmartProductMapper.xml
src/main/resources/mapper/SmartProductTypeMapper.xml
src/main/resources/mapper/SmartScenceSupstatusMapper.xml
src/main/resources/mapper/SmartSceneDataMapper.xml
src/main/resources/mapper/SmartSceneLogMapper.xml
src/main/resources/mapper/SmartSceneMapper.xml
src/main/resources/mapper/SmartSceneTemplateMapper.xml
src/main/resources/mapper/SmartSysCodeMapper.xml
src/main/resources/mapper/SmartSysFileMapper.xml
src/main/resources/mapper/SmartTemplateParamMapper.xml
src/main/resources/mapper/SmartUserChannelMapper.xml
src/main/resources/mapper/SmartUserDeviceMapper.xml
src/main/resources/mapper/SmartUserRelationMapper.xml
src/main/resources/mapper/SmartVehicleBlueKeyMapper.xml
src/main/resources/mapper/SmartVehicleBlueShareKeyMapper.xml
src/main/webapp/WEB-INF/bin/start.sh
src/test/java/com/glsx/smart/service/TestDubboService.java
pom.xml
View file @
651270e
...
...
@@ -19,6 +19,11 @@
</properties>
<dependencies>
<!-- 运行环境上下文 -->
<dependency>
<groupId>
com.glsx
</groupId>
<artifactId>
rest-admin-context
</artifactId>
</dependency>
<!-- nacos 服务管理和配置中心-->
<dependency>
<groupId>
com.glsx
</groupId>
...
...
src/main/java/c
om/glsx/smart
/SmartServiceApplication.java
→
src/main/java/c
n/com/glsx
/SmartServiceApplication.java
View file @
651270e
package
c
om
.
glsx
.
smart
;
package
c
n
.
com
.
glsx
;
import
com.glsx.plat.context.EnableRestAdmin
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.dubbo.config.spring.context.annotation.EnableDubbo
;
import
org.springframework.boot.SpringApplication
;
...
...
@@ -19,13 +20,14 @@ import tk.mybatis.spring.annotation.MapperScan;
* @Copyright Copyright (c) 2015
*/
@Slf4j
@EnableRestAdmin
@EnableDubbo
@SpringBootApplication
(
scanBasePackages
=
{
"com.glsx"
})
@SpringBootApplication
(
scanBasePackages
=
{
"c
n.c
om.glsx"
})
@EnableDiscoveryClient
@EnableTransactionManagement
@ServletComponentScan
// 使用通用 Mapper 的注解
@MapperScan
(
basePackages
={
"c
om.glsx.smart.dao
.mapper"
})
@MapperScan
(
basePackages
={
"c
n.com.glsx.smart.modules
.mapper"
})
public
class
SmartServiceApplication
extends
SpringBootServletInitializer
{
/**
* 本地启动 ,内嵌tomcat方式
...
...
src/main/java/c
om/glsx/smart
/constant/Constants.java
→
src/main/java/c
n/com/glsx/smart/common
/constant/Constants.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
constant
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
constant
;
/**
* @Title: Constants.java
* @Description: 常量
...
...
src/main/java/c
om/glsx/smart
/enums/DeviceChannelEnum.java
→
src/main/java/c
n/com/glsx/smart/common
/enums/DeviceChannelEnum.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
enums
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
enums
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart
/exception/BusinessException.java
→
src/main/java/c
n/com/glsx/smart/common
/exception/BusinessException.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
exception
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
exception
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart
/exception/CarKeyException.java
→
src/main/java/c
n/com/glsx/smart/common
/exception/CarKeyException.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
exception
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
exception
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart/exception/Global
ExceptionHandler.java
→
src/main/java/c
n/com/glsx/smart/common/exception/ChejiaSmart
ExceptionHandler.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
exception
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
exception
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.plat.exception.GlobalExceptionHandler
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.validation.BindException
;
import
org.springframework.web.bind.MethodArgumentNotValidException
;
...
...
@@ -18,8 +19,7 @@ import org.springframework.web.bind.annotation.RestControllerAdvice;
*/
@Slf4j
@RestControllerAdvice
@Deprecated
public
class
GlobalExceptionHandler
{
public
class
ChejiaSmartExceptionHandler
extends
GlobalExceptionHandler
{
@ExceptionHandler
({
BusinessException
.
class
})
public
R
handleBusinessException
(
BusinessException
e
)
{
log
.
error
(
"业务异常"
,
e
);
...
...
@@ -32,16 +32,16 @@ public class GlobalExceptionHandler {
return
R
.
error
(
e
.
getCode
(),
e
.
getMessage
());
}
@ExceptionHandler
({
ServletRequestBindingException
.
class
,
MethodArgumentNotValidException
.
class
,
BindException
.
class
})
public
R
handleBindException
(
Exception
e
)
{
log
.
error
(
"参数错误"
,
e
);
return
R
.
error
(
ResultEnum
.
PARAM_ERROR
.
getCode
(),
ResultEnum
.
PARAM_ERROR
.
getMessage
());
}
//
@ExceptionHandler({ServletRequestBindingException.class, MethodArgumentNotValidException.class,
//
BindException.class})
//
public R handleBindException(Exception e) {
//
log.error("参数错误", e);
//
return R.error(ResultEnum.PARAM_ERROR.getCode(), ResultEnum.PARAM_ERROR.getMessage());
//
}
@ExceptionHandler
(
Exception
.
class
)
public
R
handleException
(
Exception
e
)
{
log
.
error
(
"未知异常"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
//
@ExceptionHandler(Exception.class)
//
public R handleException(Exception e) {
//
log.error("未知异常", e);
//
return R.error(e.getMessage());
//
}
}
src/main/java/c
om/glsx/smart
/exception/ResultEnum.java
→
src/main/java/c
n/com/glsx/smart/common
/exception/ResultEnum.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
exception
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
exception
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart/filter/
CorsFilter.java
→
src/main/java/c
n/com/glsx/smart/common/filter/Chejia
CorsFilter.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
filter
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
filter
;
import
com.glsx.plat.common.utils.StringUtils
;
import
org.springframework.http.HttpHeaders
;
...
...
@@ -18,8 +18,9 @@ import java.util.Enumeration;
* @author wbh
* @date 2021-03-18
*/
//TODO 跨域有默认的拦截器,请对比后处理 宝辉 已存在com.glsx.plat.web.filter.CorsFilter
@Component
public
class
CorsFilter
implements
Filter
{
public
class
C
hejiaC
orsFilter
implements
Filter
{
@Override
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
,
FilterChain
chain
)
throws
IOException
,
ServletException
{
...
...
src/main/java/c
om/glsx/smart
/redis/RedisService.java
→
src/main/java/c
n/com/glsx/smart/common
/redis/RedisService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
redis
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
redis
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
...
...
src/main/java/c
om/glsx/smart
/utils/AesEncryptUtils.java
→
src/main/java/c
n/com/glsx/smart/common
/utils/AesEncryptUtils.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
utils
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
utils
;
import
org.apache.commons.codec.binary.Base64
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
src/main/java/c
om/glsx/smart
/utils/DjApiInvoker.java
→
src/main/java/c
n/com/glsx/smart/common
/utils/DjApiInvoker.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
utils
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
utils
;
import
cn.com.glsx.smart.modules.model.DjApiDTO
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.plat.common.utils.HttpUtils
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.smart.pojo.DjApiDTO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.DisposableBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/c
om/glsx/smart
/utils/GCJ2WGS.java
→
src/main/java/c
n/com/glsx/smart/common
/utils/GCJ2WGS.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
utils
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
utils
;
import
org.apache.log4j.Logger
;
...
...
src/main/java/c
om/glsx/smart
/utils/HttpUtil.java
→
src/main/java/c
n/com/glsx/smart/common
/utils/HttpUtil.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
utils
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
utils
;
import
com.alibaba.fastjson.JSONObject
;
import
org.apache.commons.lang.ObjectUtils
;
...
...
src/main/java/c
om/glsx/smart
/utils/JwtUtil.java
→
src/main/java/c
n/com/glsx/smart/common
/utils/JwtUtil.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
utils
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
utils
;
import
io.jsonwebtoken.Claims
;
import
io.jsonwebtoken.Jwts
;
...
...
@@ -6,6 +6,7 @@ import io.jsonwebtoken.SignatureAlgorithm;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
java.util.Date
;
import
java.util.Map
;
...
...
src/main/java/c
om/glsx/smart
/utils/SignUtil.java
→
src/main/java/c
n/com/glsx/smart/common
/utils/SignUtil.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
utils
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
utils
;
import
cn.hutool.core.collection.CollectionUtil
;
import
lombok.extern.slf4j.Slf4j
;
...
...
src/main/java/c
om/glsx/smart
/utils/SnowflakeWorker.java
→
src/main/java/c
n/com/glsx/smart/common
/utils/SnowflakeWorker.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
utils
;
package
c
n
.
com
.
glsx
.
smart
.
common
.
utils
;
/**
* @Title: SnowflakeWorker.java
...
...
src/main/java/com/glsx/smart/config/DeviceAddressProducer.java
→
src/main/java/c
n/c
om/glsx/smart/config/DeviceAddressProducer.java
View file @
651270e
package
com
.
glsx
.
smart
.
config
;
package
c
n
.
c
om
.
glsx
.
smart
.
config
;
import
cn.com.glsx.smart.common.utils.GCJ2WGS
;
import
cn.com.glsx.smart.modules.model.pb.InstanceFence.Fence
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.smart.pojo.pb.InstanceFence.Fence
;
import
com.glsx.smart.utils.GCJ2WGS
;
import
kafka.javaapi.producer.Producer
;
import
kafka.producer.KeyedMessage
;
import
lombok.extern.slf4j.Slf4j
;
...
...
src/main/java/com/glsx/smart/config/KafkaConfig.java
→
src/main/java/c
n/c
om/glsx/smart/config/KafkaConfig.java
View file @
651270e
package
com
.
glsx
.
smart
.
config
;
package
c
n
.
c
om
.
glsx
.
smart
.
config
;
import
lombok.Data
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
...
...
src/main/java/com/glsx/smart/config/KafkaProducerConfig.java
→
src/main/java/c
n/c
om/glsx/smart/config/KafkaProducerConfig.java
View file @
651270e
package
com
.
glsx
.
smart
.
config
;
package
c
n
.
c
om
.
glsx
.
smart
.
config
;
import
kafka.javaapi.producer.Producer
;
import
kafka.producer.ProducerConfig
;
...
...
src/main/java/com/glsx/smart/config/SnowFlakeConfig.java
→
src/main/java/c
n/c
om/glsx/smart/config/SnowFlakeConfig.java
View file @
651270e
package
com
.
glsx
.
smart
.
config
;
package
c
n
.
c
om
.
glsx
.
smart
.
config
;
import
lombok.Data
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
...
...
src/main/java/com/glsx/smart/config/SnowWorkerConfig.java
→
src/main/java/c
n/c
om/glsx/smart/config/SnowWorkerConfig.java
View file @
651270e
package
com
.
glsx
.
smart
.
config
;
package
c
n
.
c
om
.
glsx
.
smart
.
config
;
import
com.glsx.smart.utils.SnowflakeWorker
;
import
cn.com.glsx.smart.common.utils.SnowflakeWorker
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Bean
;
...
...
src/main/java/c
om/glsx/smart
/controller/AiLockingkeyController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/AiLockingkeyController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
com.glsx.cloudframework.core.util.Assert
;
import
cn.com.glsx.smart.modules.model.request.*
;
import
cn.com.glsx.smart.modules.service.AiLockingKeyService
;
import
cn.com.glsx.smart.modules.service.AiLockingKeyShareService
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.smart.pojo.request.*
;
import
com.glsx.smart.service.AiLockingKeyService
;
import
com.glsx.smart.service.AiLockingKeyShareService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
/**
* @Title: ConditionController.java
* @Description: 提供给gop-accounts(车钥匙app)使用的接口
...
...
src/main/java/c
om/glsx/smart
/controller/AiLockingkeyShareController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/AiLockingkeyShareController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.modules.model.request.SmartCarKeyReceiveRequest
;
import
cn.com.glsx.smart.modules.model.request.SmartCarKeyShareActionLogBatchRequest
;
import
cn.com.glsx.smart.modules.model.request.SmartCarKeyShareLogRequest
;
import
cn.com.glsx.smart.modules.model.request.SmartShareKeyEditReq
;
import
cn.com.glsx.smart.modules.service.AiLockingKeyShareService
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.smart.pojo.request.*
;
import
com.glsx.smart.service.AiLockingKeyShareService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/c
om/glsx/smart
/controller/ConditionController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/ConditionController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.modules.entity.SmartScenceSupstatus
;
import
cn.com.glsx.smart.modules.service.SmartScenceSupstatusService
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.smart.dao.entity.SmartScenceSupstatus
;
import
com.glsx.smart.service.SmartScenceSupstatusService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/c
om/glsx/smart
/controller/ContentController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/ContentController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceOrder
;
import
cn.com.glsx.smart.modules.service.SmartDeviceOrderService
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.smart.dao.entity.SmartDeviceOrder
;
import
com.glsx.smart.service.SmartDeviceOrderService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/c
om/glsx/smart
/controller/IndexController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/IndexController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
com.glsx.smart.config.DeviceAddressProducer
;
import
c
om.glsx.smart.dao
.entity.SmartProduct
;
import
c
om.glsx.smart.pojo
.pb.InstanceFence.Fence
;
import
c
n.c
om.glsx.smart.config.DeviceAddressProducer
;
import
c
n.com.glsx.smart.modules
.entity.SmartProduct
;
import
c
n.com.glsx.smart.modules.model
.pb.InstanceFence.Fence
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/c
om/glsx/smart
/controller/OrderValueController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/OrderValueController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceOrdervalue
;
import
cn.com.glsx.smart.modules.service.SmartDeviceOrdervalueService
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.smart.dao.entity.SmartDeviceOrdervalue
;
import
com.glsx.smart.service.SmartDeviceOrdervalueService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/c
om/glsx/smart
/controller/ProductController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/ProductController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
java.util.List
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceOrder
;
import
cn.com.glsx.smart.modules.entity.SmartProduct
;
import
cn.com.glsx.smart.modules.service.SmartProductService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.smart.dao.entity.SmartDeviceOrder
;
import
com.glsx.smart.dao.entity.SmartProduct
;
import
com.glsx.smart.service.SmartProductService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
@@ -14,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* <p>Description: 产品列表业务
* <p>Project: chejia-smart
...
...
src/main/java/c
om/glsx/smart
/controller/ProductTypeController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/ProductTypeController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.modules.entity.SmartProductType
;
import
cn.com.glsx.smart.modules.service.SmartProductTypeService
;
import
com.alibaba.fastjson.JSON
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.smart.dao.entity.SmartProductType
;
import
com.glsx.smart.service.SmartProductTypeService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/c
om/glsx/smart
/controller/RemoteProductController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/RemoteProductController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.modules.entity.SmartUserDevice
;
import
cn.com.glsx.smart.modules.entity.SmartUserRelation
;
import
cn.com.glsx.smart.modules.model.response.RemoteDeviceResp
;
import
cn.com.glsx.smart.modules.service.SmartProductTypeService
;
import
cn.com.glsx.smart.modules.service.SmartUserDeviceService
;
import
cn.com.glsx.smart.modules.service.SmartUserRelationService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.glsx.plat.common.utils.HttpUtils
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.smart.dao.entity.SmartUserDevice
;
import
com.glsx.smart.dao.entity.SmartUserRelation
;
import
com.glsx.smart.pojo.response.RemoteDeviceResp
;
import
com.glsx.smart.service.SmartProductTypeService
;
import
com.glsx.smart.service.SmartUserDeviceService
;
import
com.glsx.smart.service.SmartUserRelationService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
...
...
src/main/java/c
om/glsx/smart
/controller/SceneController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/SceneController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.modules.entity.SmartScene
;
import
cn.com.glsx.smart.modules.entity.SmartUserRelation
;
import
cn.com.glsx.smart.modules.model.OrderResponse
;
import
cn.com.glsx.smart.modules.service.*
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.smart.dao.entity.SmartScene
;
import
com.glsx.smart.dao.entity.SmartUserRelation
;
import
com.glsx.smart.pojo.OrderResponse
;
import
com.glsx.smart.service.*
;
import
io.swagger.annotations.Api
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/c
om/glsx/smart
/controller/SceneTemplateController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/SceneTemplateController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.modules.entity.SmartSceneTemplate
;
import
cn.com.glsx.smart.modules.service.SmartSceneTemplateService
;
import
cn.com.glsx.smart.modules.service.SmartTemplateParamService
;
import
com.alibaba.fastjson.JSON
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.smart.dao.entity.SmartSceneTemplate
;
import
com.glsx.smart.service.SmartSceneTemplateService
;
import
com.glsx.smart.service.SmartTemplateParamService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
src/main/java/c
om/glsx/smart
/controller/SysCodeController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/SysCodeController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.entity.SmartSysCode
;
import
cn.com.glsx.smart.modules.service.SmartSysCodeService
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.smart.dao.entity.SmartSysCode
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.service.SmartSysCodeService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/c
om/glsx/smart
/controller/SysFileController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/SysFileController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.modules.model.FileDTO
;
import
cn.com.glsx.smart.modules.service.SmartSysFileService
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.smart.pojo.FileDTO
;
import
com.glsx.smart.service.SmartSysFileService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
...
...
src/main/java/c
om/glsx/smart
/controller/UserDeviceController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/UserDeviceController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
java.util.List
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.entity.SmartUserDevice
;
import
cn.com.glsx.smart.modules.service.SmartUserDeviceService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.smart.dao.entity.SmartUserDevice
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.service.SmartUserDeviceService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
@@ -15,6 +14,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* <p>Description: 用户设备业务
* <p>Project: chejia-smart
...
...
src/main/java/c
om/glsx/smart
/controller/UserKafkaController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/UserKafkaController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.config.DeviceAddressProducer
;
import
cn.com.glsx.smart.modules.entity.SmartScene
;
import
cn.com.glsx.smart.modules.entity.SmartSceneData
;
import
cn.com.glsx.smart.modules.entity.SmartUserRelation
;
import
cn.com.glsx.smart.modules.model.pb.InstanceFence.Fence
;
import
cn.com.glsx.smart.modules.service.*
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.smart.config.DeviceAddressProducer
;
import
com.glsx.smart.dao.entity.SmartScene
;
import
com.glsx.smart.dao.entity.SmartSceneData
;
import
com.glsx.smart.dao.entity.SmartUserRelation
;
import
com.glsx.smart.pojo.pb.InstanceFence.Fence
;
import
com.glsx.smart.service.*
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/c
om/glsx/smart
/controller/UserRelationController.java
→
src/main/java/c
n/com/glsx/smart/modules
/controller/UserRelationController.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
controller
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
controller
;
import
cn.com.glsx.smart.common.constant.Constants
;
import
cn.com.glsx.smart.modules.entity.SmartUserChannel
;
import
cn.com.glsx.smart.modules.entity.SmartUserRelation
;
import
cn.com.glsx.smart.modules.service.SmartUserRelationService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.nacos.common.utils.MD5Utils
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.plat.redis.utils.RedisUtils
;
import
com.glsx.smart.constant.Constants
;
import
com.glsx.smart.dao.entity.SmartUserChannel
;
import
com.glsx.smart.dao.entity.SmartUserRelation
;
import
com.glsx.smart.service.SmartUserRelationService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartDeviceOrder.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartDeviceOrder.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartDeviceOrdervalue.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartDeviceOrdervalue.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartDeviceStatus.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartDeviceStatus.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartKeyBlueSense.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartKeyBlueSense.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.AllArgsConstructor
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartKeyBlueSenseExample.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartKeyBlueSenseExample.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
java.util.ArrayList
;
import
java.util.Date
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartKeyCommandLog.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartKeyCommandLog.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.AllArgsConstructor
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartKeyCommandLogExample.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartKeyCommandLogExample.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
java.util.ArrayList
;
import
java.util.Date
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartKeyCommandShareLog.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartKeyCommandShareLog.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.AllArgsConstructor
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartKeyCommandShareLogExample.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartKeyCommandShareLogExample.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
java.util.ArrayList
;
import
java.util.Date
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartProduct.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartProduct.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
c
om.glsx.smart.pojo
.BaseDTO
;
import
c
n.com.glsx.smart.modules.model
.BaseDTO
;
import
lombok.Data
;
import
javax.persistence.*
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartProductType.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartProductType.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
c
om.glsx.smart.pojo
.BaseDTO
;
import
c
n.com.glsx.smart.modules.model
.BaseDTO
;
import
lombok.Data
;
import
javax.persistence.*
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartScenceSupstatus.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartScenceSupstatus.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartScene.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartScene.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartSceneData.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartSceneData.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartSceneLog.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartSceneLog.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartSceneTemplate.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartSceneTemplate.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
c
om.glsx.smart.pojo
.BaseDTO
;
import
c
n.com.glsx.smart.modules.model
.BaseDTO
;
import
lombok.Data
;
import
javax.persistence.GeneratedValue
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartShareKeyBlueKey.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartShareKeyBlueKey.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.AllArgsConstructor
;
...
...
@@ -7,10 +7,6 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Date
;
/**
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartSysCode.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartSysCode.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
c
om.glsx.smart.pojo
.BaseDTO
;
import
c
n.com.glsx.smart.modules.model
.BaseDTO
;
import
lombok.Data
;
import
javax.persistence.*
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartSysFile.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartSysFile.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartTemplateParam.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartTemplateParam.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartUserChannel.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartUserChannel.java
View file @
651270e
package
com
.
glsx
.
smart
.
dao
.
entity
;
package
cn
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Date
;
import
lombok.Data
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartUserDevice.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartUserDevice.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
java.util.Date
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.util.Date
;
/**
* 车家智能用户设备表
*/
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartUserRelation.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartUserRelation.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartVehicleBlueKey.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartVehicleBlueKey.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.AllArgsConstructor
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartVehicleBlueKeyExample.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartVehicleBlueKeyExample.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
java.util.ArrayList
;
import
java.util.Date
;
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartVehicleBlueShareKey.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartVehicleBlueShareKey.java
View file @
651270e
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
java.util.Date
;
package
cn
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.AllArgsConstructor
;
...
...
@@ -13,6 +11,7 @@ import javax.persistence.GeneratedValue;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Date
;
/**
* 分享智能蓝牙车钥匙表
...
...
@@ -93,7 +92,7 @@ public class SmartVehicleBlueShareKey implements Comparable<SmartVehicleBlueShar
private
Date
stopTime
;
@Override
public
int
compareTo
(
com
.
glsx
.
smart
.
dao
.
entity
.
SmartVehicleBlueShareKey
o
)
{
public
int
compareTo
(
SmartVehicleBlueShareKey
o
)
{
Integer
data
=
this
.
getShareStatus
();
Integer
data2
=
o
.
getShareStatus
();
if
(
null
==
data
)
...
...
src/main/java/c
om/glsx/smart/dao
/entity/SmartVehicleBlueShareKeyExample.java
→
src/main/java/c
n/com/glsx/smart/modules
/entity/SmartVehicleBlueShareKeyExample.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
entity
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
entity
;
import
java.util.ArrayList
;
import
java.util.Date
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartDeviceOrderMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartDeviceOrderMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartDeviceOrder
;
import
c
n.com.glsx.smart.modules
.entity.SmartDeviceOrder
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartDeviceOrdervalueMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartDeviceOrdervalueMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartDeviceOrdervalue
;
import
c
n.com.glsx.smart.modules
.entity.SmartDeviceOrdervalue
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartDeviceStatusMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartDeviceStatusMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartDeviceStatus
;
import
c
n.com.glsx.smart.modules
.entity.SmartDeviceStatus
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartKeyBlueSenseMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartKeyBlueSenseMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartKeyBlueSense
;
import
c
om.glsx.smart.dao
.entity.SmartKeyBlueSenseExample
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSense
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSenseExample
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartKeyCommandLogMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartKeyCommandLogMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandLog
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandLogExample
;
import
c
om.glsx.smart.pojo
.request.SmartCarKeyCommandRequest
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLog
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLogExample
;
import
c
n.com.glsx.smart.modules.model
.request.SmartCarKeyCommandRequest
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -32,5 +32,5 @@ public interface SmartKeyCommandLogMapper {
int
updateByPrimaryKey
(
SmartKeyCommandLog
record
);
int
insertBatch
(
@Param
(
"lockingkeyActLogList"
)
List
<
SmartCarKeyCommandRequest
>
lockingkeyActLogList
);
int
insertBatch
(
@Param
(
"lockingkeyActLogList"
)
List
<
SmartCarKeyCommandRequest
>
lockingkeyActLogList
);
}
\ No newline at end of file
src/main/java/c
om/glsx/smart/dao
/mapper/SmartKeyCommandShareLogMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartKeyCommandShareLogMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLog
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLogExample
;
import
c
om.glsx.smart.pojo
.request.SmartCarKeyShareLogRequest
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLog
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLogExample
;
import
c
n.com.glsx.smart.modules.model
.request.SmartCarKeyShareLogRequest
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -62,5 +62,5 @@ public interface SmartKeyCommandShareLogMapper {
*/
int
updateByPrimaryKey
(
SmartKeyCommandShareLog
record
);
int
insertBatch
(
@Param
(
"lockingkeyActLogList"
)
List
<
SmartCarKeyShareLogRequest
>
lockingkeyActLogList
);
int
insertBatch
(
@Param
(
"lockingkeyActLogList"
)
List
<
SmartCarKeyShareLogRequest
>
lockingkeyActLogList
);
}
\ No newline at end of file
src/main/java/c
om/glsx/smart/dao
/mapper/SmartProductMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartProductMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
java.util.List
;
import
c
om.glsx.smart.dao
.entity.SmartProduct
;
import
c
n.com.glsx.smart.modules
.entity.SmartProduct
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
/**
* <p>Description:
* <p>Project: chejia-smart
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartProductTypeMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartProductTypeMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartProductType
;
import
c
n.com.glsx.smart.modules
.entity.SmartProductType
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartScenceSupstatusMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartScenceSupstatusMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartScenceSupstatus
;
import
c
n.com.glsx.smart.modules
.entity.SmartScenceSupstatus
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartSceneDataMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartSceneDataMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
com.glsx.smart.dao.entity.SmartSceneData
;
import
cn.com.glsx.smart.modules.entity.SmartSceneData
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartSceneLogMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartSceneLogMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartSceneLog
;
import
c
n.com.glsx.smart.modules
.entity.SmartSceneLog
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartSceneMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartSceneMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
com.glsx.smart.dao.entity.SmartScene
;
import
cn.com.glsx.smart.modules.entity.SmartScene
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartSceneTemplateMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartSceneTemplateMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartSceneTemplate
;
import
c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartSysCodeMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartSysCodeMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartSysCode
;
import
c
n.com.glsx.smart.modules
.entity.SmartSysCode
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartSysFileMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartSysFileMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartSysFile
;
import
c
n.com.glsx.smart.modules
.entity.SmartSysFile
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartTemplateParamMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartTemplateParamMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartTemplateParam
;
import
c
n.com.glsx.smart.modules
.entity.SmartTemplateParam
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartUserChannelMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartUserChannelMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartUserChannel
;
import
c
n.com.glsx.smart.modules
.entity.SmartUserChannel
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartUserDeviceMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartUserDeviceMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
java.util.List
;
import
c
om.glsx.smart.dao
.entity.SmartUserDevice
;
import
c
n.com.glsx.smart.modules
.entity.SmartUserDevice
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
/**
* <p>Description:
* <p>Project: chejia-smart
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartUserRelationMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartUserRelationMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartUserRelation
;
import
c
n.com.glsx.smart.modules
.entity.SmartUserRelation
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartVehicleBlueKeyMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartVehicleBlueKeyMapper.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
dao
.
mapper
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueKey
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueKeyExample
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKey
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKeyExample
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/c
om/glsx/smart/dao
/mapper/SmartVehicleBlueShareKeyMapper.java
→
src/main/java/c
n/com/glsx/smart/modules
/mapper/SmartVehicleBlueShareKeyMapper.java
View file @
651270e
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
com.glsx.smart.dao.entity.SmartShareKeyBlueKey
;
import
com.glsx.smart.dao.entity.SmartVehicleBlueShareKey
;
import
com.glsx.smart.dao.entity.SmartVehicleBlueShareKeyExample
;
import
java.util.List
;
package
cn
.
com
.
glsx
.
smart
.
modules
.
mapper
;
import
cn.com.glsx.smart.modules.entity.SmartShareKeyBlueKey
;
import
cn.com.glsx.smart.modules.entity.SmartVehicleBlueShareKey
;
import
cn.com.glsx.smart.modules.entity.SmartVehicleBlueShareKeyExample
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
@Mapper
public
interface
SmartVehicleBlueShareKeyMapper
{
long
countByExample
(
SmartVehicleBlueShareKeyExample
example
);
...
...
src/main/java/c
om/glsx/smart/pojo
/BaseDTO.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/BaseDTO.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/DjApiDTO.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/DjApiDTO.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/ExecuteTaskVo.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/ExecuteTaskVo.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
;
import
com.alibaba.nacos.common.utils.MD5Utils
;
import
lombok.Data
;
import
scala.Byte
;
import
sun.security.provider.MD5
;
/**
* @author zhouhaibao
...
...
src/main/java/c
om/glsx/smart/pojo
/FileDTO.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/FileDTO.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/OrderResponse.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/OrderResponse.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/ResponseVo.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/ResponseVo.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/pb/InstanceFence/Fence.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/pb/InstanceFence/Fence.java
View file @
651270e
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: fence.proto
package
c
om
.
glsx
.
smart
.
pojo
.
pb
.
InstanceFence
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
pb
.
InstanceFence
;
public
final
class
Fence
{
private
Fence
()
{}
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyActionLogBatchRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyActionLogBatchRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyAutoSenseRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyAutoSenseRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyCommandRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyCommandRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyNameRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyNameRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyReceiveRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyReceiveRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyRegisterRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyRegisterRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyShareActionLogBatchRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyShareActionLogBatchRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyShareLogRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyShareLogRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyTokenRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyTokenRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartCarKeyUserRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartCarKeyUserRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartKeyPrimaryShareEditReq.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartKeyPrimaryShareEditReq.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartShareCarKeyPageRequest.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartShareCarKeyPageRequest.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/request/SmartShareKeyEditReq.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/request/SmartShareKeyEditReq.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
request
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
request
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/response/RemoteDeviceResp.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/response/RemoteDeviceResp.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
response
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
response
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart/pojo
/response/SmartCarKeyResponse.java
→
src/main/java/c
n/com/glsx/smart/modules/model
/response/SmartCarKeyResponse.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
pojo
.
response
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
model
.
response
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
...
...
src/main/java/c
om/glsx/smart
/service/AiLockingKeyService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/AiLockingKeyService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
cn.com.glsx.smart.modules.model.request.*
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.smart.pojo.request.*
;
/**
* <p>Description:智能车钥匙接口
...
...
src/main/java/c
om/glsx/smart
/service/AiLockingKeyShareService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/AiLockingKeyShareService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
cn.com.glsx.smart.modules.model.request.SmartCarKeyReceiveRequest
;
import
cn.com.glsx.smart.modules.model.request.SmartCarKeyShareActionLogBatchRequest
;
import
cn.com.glsx.smart.modules.model.request.SmartCarKeyShareLogRequest
;
import
cn.com.glsx.smart.modules.model.request.SmartShareKeyEditReq
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.smart.pojo.request.*
;
public
interface
AiLockingKeyShareService
{
...
...
src/main/java/c
om/glsx/smart
/service/BaseService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/BaseService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
cn.com.glsx.smart.modules.model.BaseDTO
;
import
com.github.pagehelper.PageHelper
;
import
com.glsx.smart.pojo.BaseDTO
;
/**
* <p>Description: 公共 Service 业务
...
...
src/main/java/c
om/glsx/smart
/service/SmartDeviceOrderService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartDeviceOrderService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartDeviceOrder
;
import
c
n.com.glsx.smart.modules
.entity.SmartDeviceOrder
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartDeviceOrdervalueService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartDeviceOrdervalueService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartDeviceOrdervalue
;
import
c
n.com.glsx.smart.modules
.entity.SmartDeviceOrdervalue
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartDeviceStatusService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartDeviceStatusService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartDeviceStatus
;
import
c
n.com.glsx.smart.modules
.entity.SmartDeviceStatus
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartKeyBlueSenseService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartKeyBlueSenseService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartKeyBlueSense
;
import
c
om.glsx.smart.dao
.entity.SmartKeyBlueSenseExample
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSense
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSenseExample
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartKeyCommandLogService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartKeyCommandLogService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandLog
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandLogExample
;
import
c
om.glsx.smart.pojo
.request.SmartCarKeyCommandRequest
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLog
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLogExample
;
import
c
n.com.glsx.smart.modules.model
.request.SmartCarKeyCommandRequest
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartKeyCommandShareLogService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartKeyCommandShareLogService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLog
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLogExample
;
import
c
om.glsx.smart.pojo
.request.SmartCarKeyShareLogRequest
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLog
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLogExample
;
import
c
n.com.glsx.smart.modules.model
.request.SmartCarKeyShareLogRequest
;
import
java.util.List
;
public
interface
SmartKeyCommandShareLogService
{
...
...
@@ -22,9 +23,9 @@ public interface SmartKeyCommandShareLogService{
SmartKeyCommandShareLog
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
SmartKeyCommandShareLog
record
,
SmartKeyCommandShareLogExample
example
);
int
updateByExampleSelective
(
SmartKeyCommandShareLog
record
,
SmartKeyCommandShareLogExample
example
);
int
updateByExample
(
SmartKeyCommandShareLog
record
,
SmartKeyCommandShareLogExample
example
);
int
updateByExample
(
SmartKeyCommandShareLog
record
,
SmartKeyCommandShareLogExample
example
);
int
updateByPrimaryKeySelective
(
SmartKeyCommandShareLog
record
);
...
...
src/main/java/c
om/glsx/smart
/service/SmartProductService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartProductService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
java.util.List
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceOrder
;
import
cn.com.glsx.smart.modules.entity.SmartProduct
;
import
com.alibaba.fastjson.JSONArray
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.smart.dao.entity.SmartDeviceOrder
;
import
com.glsx.smart.dao.entity.SmartProduc
t
;
import
java.util.Lis
t
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart
/service/SmartProductTypeService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartProductTypeService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
cn.com.glsx.smart.modules.entity.SmartProductType
;
import
cn.com.glsx.smart.modules.entity.SmartUserDevice
;
import
cn.com.glsx.smart.modules.model.response.RemoteDeviceResp
;
import
com.alibaba.fastjson.JSONArray
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.smart.dao.entity.SmartProductType
;
import
com.glsx.smart.dao.entity.SmartUserDevice
;
import
com.glsx.smart.pojo.response.RemoteDeviceResp
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartScenceSupstatusService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartScenceSupstatusService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartScenceSupstatus
;
import
c
n.com.glsx.smart.modules
.entity.SmartScenceSupstatus
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartSceneDataService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartSceneDataService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartSceneData
;
import
c
n.com.glsx.smart.modules
.entity.SmartSceneData
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartSceneLogService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartSceneLogService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartSceneLog
;
import
c
n.com.glsx.smart.modules
.entity.SmartSceneLog
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart
/service/SmartSceneService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartSceneService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartScene
;
import
c
om.glsx.smart.pojo
.OrderResponse
;
import
c
n.com.glsx.smart.modules
.entity.SmartScene
;
import
c
n.com.glsx.smart.modules.model
.OrderResponse
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartSceneTemplateService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartSceneTemplateService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartSceneTemplate
;
import
c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartSysCodeService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartSysCodeService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartSysCode
;
import
c
n.com.glsx.smart.modules
.entity.SmartSysCode
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartSysFileService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartSysFileService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartSysFile
;
import
c
om.glsx.smart.pojo
.FileDTO
;
import
c
n.com.glsx.smart.modules
.entity.SmartSysFile
;
import
c
n.com.glsx.smart.modules.model
.FileDTO
;
import
java.util.List
;
import
java.util.Map
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartTemplateParamService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartTemplateParamService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartTemplateParam
;
import
c
n.com.glsx.smart.modules
.entity.SmartTemplateParam
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartUserChannelService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartUserChannelService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart
/service/SmartUserDeviceService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartUserDeviceService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
java.util.List
;
import
cn.com.glsx.smart.modules.entity.SmartUserDevice
;
import
com.alibaba.fastjson.JSONObject
;
import
com.glsx.smart.dao.entity.SmartUserDevice
;
import
java.util.List
;
/**
* <p>Description:
...
...
src/main/java/c
om/glsx/smart
/service/SmartUserRelationService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartUserRelationService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartUserRelation
;
import
c
n.com.glsx.smart.modules
.entity.SmartUserRelation
;
import
java.util.List
;
import
java.util.Map
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartVehicleBlueKeyService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartVehicleBlueKeyService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueKey
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueKeyExample
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKey
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKeyExample
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/SmartVehicleBlueShareKeyService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/SmartVehicleBlueShareKeyService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
c
om.glsx.smart.dao
.entity.SmartShareKeyBlueKey
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKey
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKeyExample
;
import
c
n.com.glsx.smart.modules
.entity.SmartShareKeyBlueKey
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKey
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKeyExample
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/UserKafkaService.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/UserKafkaService.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
;
import
cn.com.glsx.smart.modules.entity.SmartScene
;
import
cn.com.glsx.smart.modules.entity.SmartSceneData
;
import
com.glsx.platform.user.entity.UserAddressSmart
;
import
com.glsx.smart.dao.entity.SmartScene
;
import
com.glsx.smart.dao.entity.SmartSceneData
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/AiLockingKeyServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/AiLockingKeyServiceImpl.java
View file @
651270e
package
com
.
glsx
.
smart
.
service
.
impl
;
package
cn
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
cn.com.glsx.smart.modules.entity.*
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.model.request.*
;
import
cn.com.glsx.smart.modules.model.response.SmartCarKeyResponse
;
import
cn.com.glsx.smart.modules.service.*
;
import
cn.com.glsx.smart.common.utils.AesEncryptUtils
;
import
cn.com.glsx.smart.common.utils.JwtUtil
;
import
cn.com.glsx.smart.common.utils.SnowflakeWorker
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.nacos.common.utils.CollectionUtils
;
...
...
@@ -7,25 +16,13 @@ import com.alibaba.nacos.common.utils.StringUtils;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.smart.dao.entity.*
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.pojo.request.*
;
import
com.glsx.smart.pojo.response.SmartCarKeyResponse
;
import
com.glsx.smart.service.*
;
import
com.glsx.smart.utils.AesEncryptUtils
;
import
com.glsx.smart.utils.JwtUtil
;
import
com.glsx.smart.utils.SnowflakeWorker
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.text.StrBuilder
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.stream.Collectors
;
/**
...
...
src/main/java/c
om/glsx/smart
/service/impl/AiLockingKeyShareServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/AiLockingKeyShareServiceImpl.java
View file @
651270e
package
com
.
glsx
.
smart
.
service
.
impl
;
package
cn
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
cn.com.glsx.smart.modules.entity.*
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.model.request.SmartCarKeyReceiveRequest
;
import
cn.com.glsx.smart.modules.model.request.SmartCarKeyShareActionLogBatchRequest
;
import
cn.com.glsx.smart.modules.model.request.SmartCarKeyShareLogRequest
;
import
cn.com.glsx.smart.modules.model.request.SmartShareKeyEditReq
;
import
cn.com.glsx.smart.common.redis.RedisService
;
import
cn.com.glsx.smart.modules.service.AiLockingKeyShareService
;
import
cn.com.glsx.smart.modules.service.SmartKeyCommandShareLogService
;
import
cn.com.glsx.smart.modules.service.SmartVehicleBlueKeyService
;
import
cn.com.glsx.smart.modules.service.SmartVehicleBlueShareKeyService
;
import
cn.com.glsx.smart.common.utils.AesEncryptUtils
;
import
cn.com.glsx.smart.common.utils.JwtUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.nacos.common.utils.StringUtils
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.smart.dao.entity.*
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.pojo.request.*
;
import
com.glsx.smart.redis.RedisService
;
import
com.glsx.smart.service.AiLockingKeyShareService
;
import
com.glsx.smart.service.SmartKeyCommandShareLogService
;
import
com.glsx.smart.service.SmartVehicleBlueKeyService
;
import
com.glsx.smart.service.SmartVehicleBlueShareKeyService
;
import
com.glsx.smart.utils.AesEncryptUtils
;
import
com.glsx.smart.utils.JwtUtil
;
import
io.jsonwebtoken.Claims
;
import
io.jsonwebtoken.ExpiredJwtException
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -28,7 +29,6 @@ import org.springframework.stereotype.Service;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
* <p>Description:智能车钥匙service
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartDeviceOrderServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartDeviceOrderServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartDeviceOrder
;
import
c
om.glsx.smart.dao
.mapper.SmartDeviceOrderMapper
;
import
c
om.glsx.smart
.service.SmartDeviceOrderService
;
import
c
n.com.glsx.smart.modules
.entity.SmartDeviceOrder
;
import
c
n.com.glsx.smart.modules
.mapper.SmartDeviceOrderMapper
;
import
c
n.com.glsx.smart.modules
.service.SmartDeviceOrderService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
@@ -17,7 +17,7 @@ import java.util.List;
*/
@Service
public
class
SmartDeviceOrderServiceImpl
implements
SmartDeviceOrderService
{
public
class
SmartDeviceOrderServiceImpl
implements
SmartDeviceOrderService
{
@Resource
private
SmartDeviceOrderMapper
deviceOrderMapper
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartDeviceOrdervalueServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartDeviceOrdervalueServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartDeviceOrdervalue
;
import
c
om.glsx.smart.dao
.mapper.SmartDeviceOrdervalueMapper
;
import
c
om.glsx.smart
.service.SmartDeviceOrdervalueService
;
import
c
n.com.glsx.smart.modules
.entity.SmartDeviceOrdervalue
;
import
c
n.com.glsx.smart.modules
.mapper.SmartDeviceOrdervalueMapper
;
import
c
n.com.glsx.smart.modules
.service.SmartDeviceOrdervalueService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartDeviceStatusServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartDeviceStatusServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartDeviceStatus
;
import
c
om.glsx.smart.dao
.mapper.SmartDeviceStatusMapper
;
import
c
om.glsx.smart
.service.SmartDeviceStatusService
;
import
c
n.com.glsx.smart.modules
.entity.SmartDeviceStatus
;
import
c
n.com.glsx.smart.modules
.mapper.SmartDeviceStatusMapper
;
import
c
n.com.glsx.smart.modules
.service.SmartDeviceStatusService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartKeyBlueSenseServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartKeyBlueSenseServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
cn.com.glsx.smart.modules.entity.SmartKeyBlueSense
;
import
cn.com.glsx.smart.modules.entity.SmartKeyBlueSenseExample
;
import
cn.com.glsx.smart.modules.mapper.SmartKeyBlueSenseMapper
;
import
cn.com.glsx.smart.modules.service.SmartKeyBlueSenseService
;
import
com.alibaba.nacos.common.utils.CollectionUtils
;
import
com.glsx.smart.dao.entity.SmartKeyBlueSense
;
import
com.glsx.smart.dao.entity.SmartKeyBlueSenseExample
;
import
com.glsx.smart.dao.mapper.SmartKeyBlueSenseMapper
;
import
com.glsx.smart.service.SmartKeyBlueSenseService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartKeyCommandLogServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartKeyCommandLogServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandLog
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandLogExample
;
import
c
om.glsx.smart.dao
.mapper.SmartKeyCommandLogMapper
;
import
c
om.glsx.smart.pojo
.request.SmartCarKeyCommandRequest
;
import
c
om.glsx.smart
.service.SmartKeyCommandLogService
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLog
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLogExample
;
import
c
n.com.glsx.smart.modules
.mapper.SmartKeyCommandLogMapper
;
import
c
n.com.glsx.smart.modules.model
.request.SmartCarKeyCommandRequest
;
import
c
n.com.glsx.smart.modules
.service.SmartKeyCommandLogService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartKeyCommandShareLogServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartKeyCommandShareLogServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLog
;
import
c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLogExample
;
import
c
om.glsx.smart.dao
.mapper.SmartKeyCommandShareLogMapper
;
import
c
om.glsx.smart.pojo
.request.SmartCarKeyShareLogRequest
;
import
c
om.glsx.smart
.service.SmartKeyCommandShareLogService
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLog
;
import
c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLogExample
;
import
c
n.com.glsx.smart.modules
.mapper.SmartKeyCommandShareLogMapper
;
import
c
n.com.glsx.smart.modules.model
.request.SmartCarKeyShareLogRequest
;
import
c
n.com.glsx.smart.modules
.service.SmartKeyCommandShareLogService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
@Service
public
class
SmartKeyCommandShareLogServiceImpl
implements
SmartKeyCommandShareLogService
{
public
class
SmartKeyCommandShareLogServiceImpl
implements
SmartKeyCommandShareLogService
{
@Resource
private
SmartKeyCommandShareLogMapper
smartKeyCommandShareLogMapper
;
...
...
@@ -51,12 +52,12 @@ public class SmartKeyCommandShareLogServiceImpl implements SmartKeyCommandShareL
}
@Override
public
int
updateByExampleSelective
(
SmartKeyCommandShareLog
record
,
SmartKeyCommandShareLogExample
example
)
{
public
int
updateByExampleSelective
(
SmartKeyCommandShareLog
record
,
SmartKeyCommandShareLogExample
example
)
{
return
smartKeyCommandShareLogMapper
.
updateByExampleSelective
(
record
,
example
);
}
@Override
public
int
updateByExample
(
SmartKeyCommandShareLog
record
,
SmartKeyCommandShareLogExample
example
)
{
public
int
updateByExample
(
SmartKeyCommandShareLog
record
,
SmartKeyCommandShareLogExample
example
)
{
return
smartKeyCommandShareLogMapper
.
updateByExample
(
record
,
example
);
}
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartProductServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartProductServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
cn.com.glsx.smart.common.constant.Constants
;
import
cn.com.glsx.smart.common.enums.DeviceChannelEnum
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceOrder
;
import
cn.com.glsx.smart.modules.entity.SmartProduct
;
import
cn.com.glsx.smart.modules.entity.SmartSysCode
;
import
cn.com.glsx.smart.modules.mapper.SmartDeviceOrderMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartProductMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartSysCodeMapper
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.service.BaseService
;
import
cn.com.glsx.smart.modules.service.SmartProductService
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.smart.constant.Constants
;
import
com.glsx.smart.dao.entity.SmartDeviceOrder
;
import
com.glsx.smart.dao.entity.SmartProduct
;
import
com.glsx.smart.dao.entity.SmartSysCode
;
import
com.glsx.smart.dao.mapper.SmartDeviceOrderMapper
;
import
com.glsx.smart.dao.mapper.SmartProductMapper
;
import
com.glsx.smart.dao.mapper.SmartSysCodeMapper
;
import
com.glsx.smart.enums.DeviceChannelEnum
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.service.BaseService
;
import
com.glsx.smart.service.SmartProductService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* <p>Description: 产品列表业务
* <p>Project: chejia-smart
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartProductTypeServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartProductTypeServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
cn.com.glsx.smart.common.constant.Constants
;
import
cn.com.glsx.smart.modules.entity.SmartProduct
;
import
cn.com.glsx.smart.modules.entity.SmartProductType
;
import
cn.com.glsx.smart.modules.entity.SmartUserDevice
;
import
cn.com.glsx.smart.modules.mapper.SmartProductMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartProductTypeMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartUserDeviceMapper
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.model.response.RemoteDeviceResp
;
import
cn.com.glsx.smart.modules.service.BaseService
;
import
cn.com.glsx.smart.modules.service.SmartProductTypeService
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.smart.constant.Constants
;
import
com.glsx.smart.dao.entity.SmartProduct
;
import
com.glsx.smart.dao.entity.SmartProductType
;
import
com.glsx.smart.dao.entity.SmartUserDevice
;
import
com.glsx.smart.dao.mapper.SmartProductMapper
;
import
com.glsx.smart.dao.mapper.SmartProductTypeMapper
;
import
com.glsx.smart.dao.mapper.SmartUserDeviceMapper
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.pojo.response.RemoteDeviceResp
;
import
com.glsx.smart.service.BaseService
;
import
com.glsx.smart.service.SmartProductTypeService
;
import
com.glsx.smart.utils.HttpUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -24,7 +22,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.io.IOException
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartScenceSupstatusServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartScenceSupstatusServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartScenceSupstatus
;
import
c
om.glsx.smart.dao
.mapper.SmartScenceSupstatusMapper
;
import
c
om.glsx.smart
.service.SmartScenceSupstatusService
;
import
c
n.com.glsx.smart.modules
.entity.SmartScenceSupstatus
;
import
c
n.com.glsx.smart.modules
.mapper.SmartScenceSupstatusMapper
;
import
c
n.com.glsx.smart.modules
.service.SmartScenceSupstatusService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartSceneDataServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartSceneDataServiceImpl.java
View file @
651270e
package
com
.
glsx
.
smart
.
service
.
impl
;
package
cn
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
cn.com.glsx.smart.common.constant.Constants
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceOrder
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceOrdervalue
;
import
cn.com.glsx.smart.modules.entity.SmartScenceSupstatus
;
import
cn.com.glsx.smart.modules.entity.SmartSceneData
;
import
cn.com.glsx.smart.modules.mapper.SmartDeviceOrderMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartDeviceOrdervalueMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartScenceSupstatusMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartSceneDataMapper
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.service.SmartSceneDataService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.smart.constant.Constants
;
import
com.glsx.smart.dao.entity.SmartDeviceOrder
;
import
com.glsx.smart.dao.entity.SmartDeviceOrdervalue
;
import
com.glsx.smart.dao.entity.SmartScenceSupstatus
;
import
com.glsx.smart.dao.entity.SmartSceneData
;
import
com.glsx.smart.dao.mapper.SmartDeviceOrderMapper
;
import
com.glsx.smart.dao.mapper.SmartDeviceOrdervalueMapper
;
import
com.glsx.smart.dao.mapper.SmartScenceSupstatusMapper
;
import
com.glsx.smart.dao.mapper.SmartSceneDataMapper
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.service.SmartSceneDataService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartSceneLogServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartSceneLogServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartSceneLog
;
import
c
om.glsx.smart.dao
.mapper.SmartSceneLogMapper
;
import
c
om.glsx.smart
.service.SmartSceneLogService
;
import
c
n.com.glsx.smart.modules
.entity.SmartSceneLog
;
import
c
n.com.glsx.smart.modules
.mapper.SmartSceneLogMapper
;
import
c
n.com.glsx.smart.modules
.service.SmartSceneLogService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartSceneServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartSceneServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
cn.com.glsx.didicb.app.enums.MessageTypeEnum
;
import
cn.com.glsx.didicb.app.model.CarAssistantInfo
;
import
cn.com.glsx.didicb.app.remote.CarAssistantInfoRemote
;
import
cn.com.glsx.smart.common.constant.Constants
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceStatus
;
import
cn.com.glsx.smart.modules.entity.SmartScene
;
import
cn.com.glsx.smart.modules.entity.SmartSceneData
;
import
cn.com.glsx.smart.modules.mapper.SmartDeviceStatusMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartSceneDataMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartSceneMapper
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.model.ExecuteTaskVo
;
import
cn.com.glsx.smart.modules.model.OrderResponse
;
import
cn.com.glsx.smart.modules.model.ResponseVo
;
import
cn.com.glsx.smart.common.redis.RedisService
;
import
cn.com.glsx.smart.modules.service.BaseService
;
import
cn.com.glsx.smart.modules.service.SmartSceneService
;
import
cn.com.glsx.smart.common.utils.HttpUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.glsx.smart.constant.Constants
;
import
com.glsx.smart.dao.entity.SmartDeviceStatus
;
import
com.glsx.smart.dao.entity.SmartScene
;
import
com.glsx.smart.dao.entity.SmartSceneData
;
import
com.glsx.smart.dao.mapper.SmartDeviceStatusMapper
;
import
com.glsx.smart.dao.mapper.SmartSceneDataMapper
;
import
com.glsx.smart.dao.mapper.SmartSceneMapper
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.pojo.ExecuteTaskVo
;
import
com.glsx.smart.pojo.OrderResponse
;
import
com.glsx.smart.pojo.ResponseVo
;
import
com.glsx.smart.redis.RedisService
;
import
com.glsx.smart.service.BaseService
;
import
com.glsx.smart.service.SmartSceneService
;
import
com.glsx.smart.utils.HttpUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
...
...
@@ -265,14 +265,14 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
int
channel
=
executeTaskVo
.
getChannel
();
Map
<
String
,
Object
>
requestMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
datamap
=
new
HashMap
<>();
if
(
channel
==
Constants
.
USER_CHANNEL_TUYA
)
{
if
(
channel
==
Constants
.
USER_CHANNEL_TUYA
)
{
datamap
.
put
(
"key"
,
executeTaskVo
.
getOrderVal
());
requestMap
.
put
(
"data"
,
datamap
);
requestMap
.
put
(
"channel"
,
executeTaskVo
.
getChannel
());
requestMap
.
put
(
"deviceId"
,
executeTaskVo
.
getSelect
());
requestMap
.
put
(
"remoteId"
,
executeTaskVo
.
getRemoteId
());
log
.
info
(
"涂鸦发送的红外指令{}"
,
JSON
.
toJSONString
(
requestMap
));
}
else
if
(
channel
==
Constants
.
USER_CHANNEL_AQARA
){
}
else
if
(
channel
==
Constants
.
USER_CHANNEL_AQARA
){
datamap
.
put
(
"keyId"
,
executeTaskVo
.
getOrderVal
());
datamap
.
put
(
"acKey"
,
executeTaskVo
.
getOrderVal
());
datamap
.
put
(
"did"
,
executeTaskVo
.
getRemoteId
());
...
...
@@ -298,7 +298,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
Map
<
String
,
Object
>
ordermaps
=
new
HashMap
<>();
List
<
Map
<
String
,
Object
>>
maps
=
new
ArrayList
<>();
Map
<
String
,
Object
>
ordermap
=
new
HashMap
<>();
if
(
channel
==
Constants
.
USER_CHANNEL_TUYA
)
{
if
(
channel
==
Constants
.
USER_CHANNEL_TUYA
)
{
ordermap
.
put
(
"code"
,
executeTaskVo
.
getOrder
());
ordermap
.
put
(
"value"
,
revertType
(
valueType
,
order_value
));
maps
.
add
(
ordermap
);
...
...
@@ -307,7 +307,7 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
mapMap
.
put
(
"channel"
,
executeTaskVo
.
getChannel
());
mapMap
.
put
(
"deviceId"
,
executeTaskVo
.
getSelect
());
log
.
info
(
"涂鸦发送的指令{}"
,
JSON
.
toJSONString
(
mapMap
));
}
else
if
(
channel
==
Constants
.
USER_CHANNEL_AQARA
)
{
}
else
if
(
channel
==
Constants
.
USER_CHANNEL_AQARA
)
{
ordermap
.
put
(
executeTaskVo
.
getOrder
(),
revertType
(
valueType
,
order_value
));
ordermaps
.
put
(
"attrs"
,
ordermap
);
ordermaps
.
put
(
"did"
,
executeTaskVo
.
getSelect
());
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartSceneTemplateServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartSceneTemplateServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartSceneTemplate
;
import
c
om.glsx.smart.dao
.entity.SmartTemplateParam
;
import
c
om.glsx.smart.dao
.mapper.SmartSceneTemplateMapper
;
import
c
om.glsx.smart.dao
.mapper.SmartTemplateParamMapper
;
import
c
om.glsx.smart
.service.BaseService
;
import
c
om.glsx.smart
.service.SmartSceneTemplateService
;
import
c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate
;
import
c
n.com.glsx.smart.modules
.entity.SmartTemplateParam
;
import
c
n.com.glsx.smart.modules
.mapper.SmartSceneTemplateMapper
;
import
c
n.com.glsx.smart.modules
.mapper.SmartTemplateParamMapper
;
import
c
n.com.glsx.smart.modules
.service.BaseService
;
import
c
n.com.glsx.smart.modules
.service.SmartSceneTemplateService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartSysCodeServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartSysCodeServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartSysCode
;
import
c
om.glsx.smart.dao
.mapper.SmartSysCodeMapper
;
import
c
om.glsx.smart
.exception.BusinessException
;
import
c
om.glsx.smart
.exception.ResultEnum
;
import
c
om.glsx.smart
.service.BaseService
;
import
c
om.glsx.smart
.service.SmartSysCodeService
;
import
c
n.com.glsx.smart.modules
.entity.SmartSysCode
;
import
c
n.com.glsx.smart.modules
.mapper.SmartSysCodeMapper
;
import
c
n.com.glsx.smart.common
.exception.BusinessException
;
import
c
n.com.glsx.smart.common
.exception.ResultEnum
;
import
c
n.com.glsx.smart.modules
.service.BaseService
;
import
c
n.com.glsx.smart.modules
.service.SmartSysCodeService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartSysFileServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartSysFileServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartSysFile
;
import
c
om.glsx.smart.dao
.mapper.SmartSysFileMapper
;
import
c
om.glsx.smart
.exception.BusinessException
;
import
c
om.glsx.smart
.exception.ResultEnum
;
import
c
om.glsx.smart.pojo
.FileDTO
;
import
c
om.glsx.smart
.service.SmartSysFileService
;
import
c
n.com.glsx.smart.modules
.entity.SmartSysFile
;
import
c
n.com.glsx.smart.modules
.mapper.SmartSysFileMapper
;
import
c
n.com.glsx.smart.common
.exception.BusinessException
;
import
c
n.com.glsx.smart.common
.exception.ResultEnum
;
import
c
n.com.glsx.smart.modules.model
.FileDTO
;
import
c
n.com.glsx.smart.modules
.service.SmartSysFileService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartTemplateParamServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartTemplateParamServiceImpl.java
View file @
651270e
package
com
.
glsx
.
smart
.
service
.
impl
;
package
cn
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
cn.com.glsx.smart.common.constant.Constants
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceOrder
;
import
cn.com.glsx.smart.modules.entity.SmartDeviceOrdervalue
;
import
cn.com.glsx.smart.modules.entity.SmartScenceSupstatus
;
import
cn.com.glsx.smart.modules.entity.SmartTemplateParam
;
import
cn.com.glsx.smart.modules.mapper.*
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.service.SmartTemplateParamService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.glsx.smart.constant.Constants
;
import
com.glsx.smart.dao.entity.SmartDeviceOrder
;
import
com.glsx.smart.dao.entity.SmartDeviceOrdervalue
;
import
com.glsx.smart.dao.entity.SmartScenceSupstatus
;
import
com.glsx.smart.dao.entity.SmartTemplateParam
;
import
com.glsx.smart.dao.mapper.*
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.service.SmartTemplateParamService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartUserChannelServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartUserChannelServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
javax.annotation.Resource
;
import
com.glsx.smart.dao.mapper.SmartUserChannelMapper
;
import
com.glsx.smart.service.BaseService
;
import
com.glsx.smart.service.SmartUserChannelService
;
import
cn.com.glsx.smart.modules.mapper.SmartUserChannelMapper
;
import
cn.com.glsx.smart.modules.service.BaseService
;
import
cn.com.glsx.smart.modules.service.SmartUserChannelService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
* <p>Description:
* <p>Project: chejia-smart
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartUserDeviceServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartUserDeviceServiceImpl.java
View file @
651270e
package
com
.
glsx
.
smart
.
service
.
impl
;
import
javax.annotation.Resource
;
import
javax.transaction.Transactional
;
import
java.nio.charset.StandardCharsets
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
package
cn
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
cn.com.glsx.smart.common.constant.Constants
;
import
cn.com.glsx.smart.modules.entity.SmartUserChannel
;
import
cn.com.glsx.smart.modules.entity.SmartUserDevice
;
import
cn.com.glsx.smart.modules.entity.SmartUserRelation
;
import
cn.com.glsx.smart.modules.mapper.SmartProductMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartUserChannelMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartUserDeviceMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartUserRelationMapper
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.common.redis.RedisService
;
import
cn.com.glsx.smart.modules.service.BaseService
;
import
cn.com.glsx.smart.modules.service.SmartUserDeviceService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.glsx.plat.common.utils.HttpUtils
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.smart.constant.Constants
;
import
com.glsx.smart.dao.entity.SmartUserChannel
;
import
com.glsx.smart.dao.entity.SmartUserDevice
;
import
com.glsx.smart.dao.entity.SmartUserRelation
;
import
com.glsx.smart.dao.mapper.SmartProductMapper
;
import
com.glsx.smart.dao.mapper.SmartUserChannelMapper
;
import
com.glsx.smart.dao.mapper.SmartUserDeviceMapper
;
import
com.glsx.smart.dao.mapper.SmartUserRelationMapper
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.redis.RedisService
;
import
com.glsx.smart.service.BaseService
;
import
com.glsx.smart.service.SmartUserDeviceService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.transaction.Transactional
;
import
java.nio.charset.StandardCharsets
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* <p>Description: 用户设备业务
* <p>Project: chejia-smart
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartUserRelationServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartUserRelationServiceImpl.java
View file @
651270e
package
com
.
glsx
.
smart
.
service
.
impl
;
package
cn
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
cn.com.glsx.smart.common.constant.Constants
;
import
cn.com.glsx.smart.modules.entity.SmartUserChannel
;
import
cn.com.glsx.smart.modules.entity.SmartUserRelation
;
import
cn.com.glsx.smart.modules.mapper.SmartUserChannelMapper
;
import
cn.com.glsx.smart.modules.mapper.SmartUserRelationMapper
;
import
cn.com.glsx.smart.common.exception.BusinessException
;
import
cn.com.glsx.smart.common.exception.ResultEnum
;
import
cn.com.glsx.smart.modules.service.SmartUserRelationService
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.glsx.plat.common.utils.HttpUtils
;
import
com.glsx.plat.common.utils.StringUtils
;
import
com.glsx.smart.constant.Constants
;
import
com.glsx.smart.dao.entity.SmartUserChannel
;
import
com.glsx.smart.dao.entity.SmartUserRelation
;
import
com.glsx.smart.dao.mapper.SmartUserChannelMapper
;
import
com.glsx.smart.dao.mapper.SmartUserRelationMapper
;
import
com.glsx.smart.exception.BusinessException
;
import
com.glsx.smart.exception.ResultEnum
;
import
com.glsx.smart.service.SmartUserRelationService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
...
...
@@ -116,7 +116,7 @@ public class SmartUserRelationServiceImpl implements SmartUserRelationService {
public
String
syncTuYaUser
(
String
mobile
,
String
password
,
Long
userId
)
{
String
thirdId
=
this
.
syncTuYaUser
(
mobile
,
password
);
if
(
thirdId
!=
null
){
this
.
saveUserChannel
(
userId
,
thirdId
,
Constants
.
USER_CHANNEL_TUYA
);
this
.
saveUserChannel
(
userId
,
thirdId
,
Constants
.
USER_CHANNEL_TUYA
);
}
return
thirdId
;
}
...
...
@@ -128,7 +128,7 @@ public class SmartUserRelationServiceImpl implements SmartUserRelationService {
if
(
returnMap
!=
null
){
//保存绿米渠道用户数据
thirdId
=
returnMap
.
get
(
"openId"
);
this
.
saveUserChannel
(
userId
,
thirdId
,
Constants
.
USER_CHANNEL_AQARA
);
this
.
saveUserChannel
(
userId
,
thirdId
,
Constants
.
USER_CHANNEL_AQARA
);
}
return
thirdId
;
}
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartVehicleBlueKeyServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartVehicleBlueKeyServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueKey
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueKeyExample
;
import
c
om.glsx.smart.dao
.mapper.SmartVehicleBlueKeyMapper
;
import
c
om.glsx.smart
.service.SmartVehicleBlueKeyService
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKey
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKeyExample
;
import
c
n.com.glsx.smart.modules
.mapper.SmartVehicleBlueKeyMapper
;
import
c
n.com.glsx.smart.modules
.service.SmartVehicleBlueKeyService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/SmartVehicleBlueShareKeyServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/SmartVehicleBlueShareKeyServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
c
om.glsx.smart.dao
.entity.SmartShareKeyBlueKey
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKey
;
import
c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKeyExample
;
import
c
om.glsx.smart.dao
.mapper.SmartVehicleBlueShareKeyMapper
;
import
c
om.glsx.smart
.service.SmartVehicleBlueShareKeyService
;
import
c
n.com.glsx.smart.modules
.entity.SmartShareKeyBlueKey
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKey
;
import
c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKeyExample
;
import
c
n.com.glsx.smart.modules
.mapper.SmartVehicleBlueShareKeyMapper
;
import
c
n.com.glsx.smart.modules
.service.SmartVehicleBlueShareKeyService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.Date
;
import
java.util.List
;
...
...
src/main/java/c
om/glsx/smart
/service/impl/UserKafkaServiceImpl.java
→
src/main/java/c
n/com/glsx/smart/modules
/service/impl/UserKafkaServiceImpl.java
View file @
651270e
package
c
om
.
glsx
.
smart
.
service
.
impl
;
package
c
n
.
com
.
glsx
.
smart
.
modules
.
service
.
impl
;
import
cn.com.glsx.smart.config.DeviceAddressProducer
;
import
cn.com.glsx.smart.common.constant.Constants
;
import
cn.com.glsx.smart.modules.entity.SmartScene
;
import
cn.com.glsx.smart.modules.entity.SmartSceneData
;
import
cn.com.glsx.smart.modules.entity.SmartUserRelation
;
import
cn.com.glsx.smart.modules.mapper.SmartUserRelationMapper
;
import
cn.com.glsx.smart.modules.model.pb.InstanceFence.Fence
;
import
cn.com.glsx.smart.modules.service.UserKafkaService
;
import
com.alibaba.fastjson.JSON
;
import
com.glsx.platform.user.entity.UserAddressSmart
;
import
com.glsx.platform.user.service.UserAddressSmartService
;
import
com.glsx.smart.config.DeviceAddressProducer
;
import
com.glsx.smart.constant.Constants
;
import
com.glsx.smart.dao.entity.SmartScene
;
import
com.glsx.smart.dao.entity.SmartSceneData
;
import
com.glsx.smart.dao.entity.SmartUserRelation
;
import
com.glsx.smart.dao.mapper.SmartUserRelationMapper
;
import
com.glsx.smart.pojo.pb.InstanceFence.Fence
;
import
com.glsx.smart.service.UserKafkaService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.dubbo.config.annotation.DubboReference
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
src/main/resources/mapper/SmartDeviceOrderMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartDeviceOrderMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartDeviceOrder"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartDeviceOrderMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartDeviceOrder"
>
<!--@Table smart_device_order-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"product_id"
jdbcType=
"VARCHAR"
property=
"productId"
/>
...
...
src/main/resources/mapper/SmartDeviceOrdervalueMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartDeviceOrdervalueMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartDeviceOrdervalue"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartDeviceOrdervalueMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartDeviceOrdervalue"
>
<!--@mbg.generated generated on Fri Mar 19 17:22:28 CST 2021.-->
<!--@Table smart_device_ordervalue-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
...
...
@@ -13,7 +13,7 @@
<!--@mbg.generated generated on Fri Mar 19 17:22:28 CST 2021.-->
id, order_id, device_status_code, device_status_value
</sql>
<select
id=
"getList"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartDeviceOrdervalue"
resultMap=
"BaseResultMap"
>
<select
id=
"getList"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartDeviceOrdervalue"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from smart_device_ordervalue
<where>
<if
test=
"orderId != null"
>
...
...
src/main/resources/mapper/SmartDeviceStatusMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartDeviceStatusMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartDeviceStatus"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartDeviceStatusMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartDeviceStatus"
>
<!--@mbg.generated-->
<!--@Table smart_device_status-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
...
...
@@ -135,7 +135,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartDeviceStatus"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartDeviceStatus"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_device_status
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -175,7 +175,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartDeviceStatus"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartDeviceStatus"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_device_status
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartKeyBlueSenseMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartKeyBlueSenseMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartKeyBlueSense"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartKeyBlueSenseMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSense"
>
<!--@mbg.generated-->
<!--@Table smart_key_blue_sense-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -79,7 +79,7 @@
<!--@mbg.generated-->
id, user_id, sn, auto_sense_status, mobile_blue_mac, create_time, is_delete, car_key_id
</sql>
<select
id=
"selectByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyBlueSenseExample"
<select
id=
"selectByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSenseExample"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
...
...
@@ -151,7 +151,7 @@
</delete>
<delete
id=
"deleteByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyBlueSenseExample"
>
<delete
id=
"deleteByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSenseExample"
>
<!--@mbg.generated-->
delete from smart_key_blue_sense
...
...
@@ -162,7 +162,7 @@
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyBlueSense"
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSense"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_key_blue_sense (user_id, sn, auto_sense_status,
...
...
@@ -177,7 +177,7 @@
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyBlueSense"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSense"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_key_blue_sense
...
...
@@ -327,7 +327,7 @@
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyBlueSenseExample"
<select
id=
"countByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSenseExample"
resultType=
"java.lang.Long"
>
<!--@mbg.generated-->
select count(*) from smart_key_blue_sense
...
...
@@ -451,7 +451,7 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyBlueSense"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSense"
>
<!--@mbg.generated-->
update smart_key_blue_sense
...
...
@@ -539,7 +539,7 @@
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyBlueSense"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyBlueSense"
>
<!--@mbg.generated-->
update smart_key_blue_sense
set user_id = #{userId,jdbcType=BIGINT},
...
...
src/main/resources/mapper/SmartKeyCommandLogMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartKeyCommandLogMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandLog"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartKeyCommandLogMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLog"
>
<!--@mbg.generated-->
<!--@Table cyb_os.smart_key_command_log-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -74,7 +74,7 @@
<!--@mbg.generated-->
id, user_id, crep_code, key_command, create_time
</sql>
<select
id=
"selectByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandLogExample"
<select
id=
"selectByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLogExample"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
...
...
@@ -113,7 +113,7 @@
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandLogExample"
>
<delete
id=
"deleteByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLogExample"
>
<!--@mbg.generated-->
delete from cyb_os.smart_key_command_log
...
...
@@ -121,7 +121,7 @@
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandLog"
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLog"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into cyb_os.smart_key_command_log (user_id, crep_code, key_command,
...
...
@@ -131,7 +131,7 @@
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandLog"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLog"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into cyb_os.smart_key_command_log
...
...
@@ -176,7 +176,7 @@
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandLogExample"
<select
id=
"countByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLogExample"
resultType=
"java.lang.Long"
>
<!--@mbg.generated-->
select count(*) from cyb_os.smart_key_command_log
...
...
@@ -231,7 +231,7 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandLog"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLog"
>
<!--@mbg.generated-->
update cyb_os.smart_key_command_log
...
...
@@ -259,7 +259,7 @@
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandLog"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandLog"
>
<!--@mbg.generated-->
update cyb_os.smart_key_command_log
set user_id = #{userId,jdbcType=BIGINT},
...
...
@@ -270,7 +270,7 @@
</update>
<insert
id=
"insertBatch"
parameterType=
"c
om.glsx.smart.pojo
.request.SmartCarKeyCommandRequest"
>
<insert
id=
"insertBatch"
parameterType=
"c
n.com.glsx.smart.modules.model
.request.SmartCarKeyCommandRequest"
>
INSERT INTO `smart_key_command_log` (`user_id`, `crep_code`, `key_command`, `create_time`)
VALUES
<foreach
collection=
"lockingkeyActLogList"
item=
"keyActLog"
separator=
","
>
...
...
src/main/resources/mapper/SmartKeyCommandShareLogMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartKeyCommandShareLogMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLog"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartKeyCommandShareLogMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLog"
>
<!--@mbg.generated-->
<!--@Table smart_key_command_share_log-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -73,7 +73,7 @@
<!--@mbg.generated-->
id, share_car_key_id, key_command, create_time
</sql>
<select
id=
"selectByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLogExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLogExample"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<if
test=
"distinct"
>
...
...
@@ -100,21 +100,21 @@
delete from smart_key_command_share_log
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLogExample"
>
<delete
id=
"deleteByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLogExample"
>
<!--@mbg.generated-->
delete from smart_key_command_share_log
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLog"
useGeneratedKeys=
"true"
>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLog"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_key_command_share_log (share_car_key_id, key_command, create_time
)
values (#{shareCarKeyId,jdbcType=BIGINT}, #{keyCommand,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLog"
useGeneratedKeys=
"true"
>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLog"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_key_command_share_log
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -140,7 +140,7 @@
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLogExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLogExample"
resultType=
"java.lang.Long"
>
<!--@mbg.generated-->
select count(*) from smart_key_command_share_log
<if
test=
"_parameter != null"
>
...
...
@@ -179,7 +179,7 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLog"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLog"
>
<!--@mbg.generated-->
update smart_key_command_share_log
<set>
...
...
@@ -195,7 +195,7 @@
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartKeyCommandShareLog"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartKeyCommandShareLog"
>
<!--@mbg.generated-->
update smart_key_command_share_log
set share_car_key_id = #{shareCarKeyId,jdbcType=BIGINT},
...
...
@@ -204,7 +204,7 @@
where id = #{id,jdbcType=BIGINT}
</update>
<insert
id=
"insertBatch"
parameterType=
"c
om.glsx.smart.pojo
.request.SmartCarKeyShareLogRequest"
>
<insert
id=
"insertBatch"
parameterType=
"c
n.com.glsx.smart.modules.model
.request.SmartCarKeyShareLogRequest"
>
INSERT INTO `smart_key_command_share_log` (`share_car_key_id`, `key_command`, `create_time`)
VALUES
<foreach
collection=
"lockingkeyActLogList"
item=
"keyActLog"
separator=
","
>
...
...
src/main/resources/mapper/SmartProductMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartProductMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartProduct"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartProductMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartProduct"
>
<!--@mbg.generated-->
<!--@Table smart_product-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -20,9 +20,9 @@
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_by"
jdbcType=
"BIGINT"
property=
"updateBy"
/>
</resultMap>
<resultMap
id=
"DetailResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartProduct"
extends=
"BaseResultMap"
>
<collection
property=
"iconUrl"
column=
"icon"
ofType=
"c
om.glsx.smart.dao
.entity.SmartProduct"
fetchType=
"eager"
select=
"c
om.glsx.smart.dao
.mapper.SmartSysFileMapper.selectUrlById"
>
<resultMap
id=
"DetailResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartProduct"
extends=
"BaseResultMap"
>
<collection
property=
"iconUrl"
column=
"icon"
ofType=
"c
n.com.glsx.smart.modules
.entity.SmartProduct"
fetchType=
"eager"
select=
"c
n.com.glsx.smart.modules
.mapper.SmartSysFileMapper.selectUrlById"
>
</collection>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
@@ -48,7 +48,7 @@
order by sp.create_time desc
</select>
<select
id=
"getByCondition"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartProduct"
resultMap=
"DetailResultMap"
>
<select
id=
"getByCondition"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartProduct"
resultMap=
"DetailResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from smart_product
<where>
<if
test=
"platformProductId != null and platformProductId != ''"
>
...
...
src/main/resources/mapper/SmartProductTypeMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartProductTypeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartProductType"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartProductTypeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartProductType"
>
<!--@mbg.generated-->
<!--@Table smart_product_type-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -16,14 +16,14 @@
<result
column=
"update_by"
jdbcType=
"BIGINT"
property=
"updateBy"
/>
<result
column=
"tuya_category_id"
jdbcType=
"INTEGER"
property=
"tuyaCategoryId"
/>
</resultMap>
<resultMap
id=
"BaseConditionMap"
type=
"c
om.glsx.smart.dao
.entity.SmartProductType"
extends=
"BaseResultMap"
>
<collection
property=
"conditionList"
column=
"id"
ofType=
"c
om.glsx.smart.dao
.entity.SmartProductType"
fetchType=
"eager"
select=
"c
om.glsx.smart.dao
.mapper.SmartScenceSupstatusMapper.getListByProductId"
>
<resultMap
id=
"BaseConditionMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartProductType"
extends=
"BaseResultMap"
>
<collection
property=
"conditionList"
column=
"id"
ofType=
"c
n.com.glsx.smart.modules
.entity.SmartProductType"
fetchType=
"eager"
select=
"c
n.com.glsx.smart.modules
.mapper.SmartScenceSupstatusMapper.getListByProductId"
>
</collection>
</resultMap>
<resultMap
id=
"BaseContentMap"
type=
"c
om.glsx.smart.dao
.entity.SmartProductType"
extends=
"BaseResultMap"
>
<collection
property=
"contentList"
column=
"id"
ofType=
"c
om.glsx.smart.dao
.entity.SmartProductType"
fetchType=
"eager"
select=
"c
om.glsx.smart.dao
.mapper.SmartDeviceOrderMapper.getListByProductId"
>
<resultMap
id=
"BaseContentMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartProductType"
extends=
"BaseResultMap"
>
<collection
property=
"contentList"
column=
"id"
ofType=
"c
n.com.glsx.smart.modules
.entity.SmartProductType"
fetchType=
"eager"
select=
"c
n.com.glsx.smart.modules
.mapper.SmartDeviceOrderMapper.getListByProductId"
>
</collection>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
src/main/resources/mapper/SmartScenceSupstatusMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartScenceSupstatusMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartScenceSupstatus"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartScenceSupstatusMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartScenceSupstatus"
>
<!--@mbg.generated generated on Fri Mar 19 17:23:04 CST 2021.-->
<!--@Table smart_scence_supstatus-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
...
...
src/main/resources/mapper/SmartSceneDataMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartSceneDataMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartSceneData"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartSceneDataMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartSceneData"
>
<!--@mbg.generated-->
<!--@Table smart_scene_data-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -119,7 +119,7 @@
where scene_id = #{sceneId,jdbcType=BIGINT}
</select>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartSceneData"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartSceneData"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene_data
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -156,7 +156,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartSceneData"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartSceneData"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene_data
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSceneLogMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartSceneLogMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartSceneLog"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartSceneLogMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartSceneLog"
>
<!--@mbg.generated generated on Sun Apr 11 11:12:26 CST 2021.-->
<!--@Table smart_scene_log-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
src/main/resources/mapper/SmartSceneMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartSceneMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartScene"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartSceneMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartScene"
>
<!--@mbg.generated-->
<!--@Table smart_scene-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -21,17 +21,17 @@
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<resultMap
id=
"DetailResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartScene"
extends=
"BaseResultMap"
>
<collection
property=
"iconUrl"
column=
"icon"
ofType=
"c
om.glsx.smart.dao
.entity.SmartScene"
fetchType=
"eager"
select=
"c
om.glsx.smart.dao
.mapper.SmartSysFileMapper.selectUrlById"
>
<resultMap
id=
"DetailResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartScene"
extends=
"BaseResultMap"
>
<collection
property=
"iconUrl"
column=
"icon"
ofType=
"c
n.com.glsx.smart.modules
.entity.SmartScene"
fetchType=
"eager"
select=
"c
n.com.glsx.smart.modules
.mapper.SmartSysFileMapper.selectUrlById"
>
</collection>
<collection
property=
"backPicUrl"
column=
"back_pic"
ofType=
"c
om.glsx.smart.dao
.entity.SmartScene"
<collection
property=
"backPicUrl"
column=
"back_pic"
ofType=
"c
n.com.glsx.smart.modules
.entity.SmartScene"
fetchType=
"eager"
select=
"c
om.glsx.smart.dao
.mapper.SmartSysFileMapper.selectUrlById"
>
select=
"c
n.com.glsx.smart.modules
.mapper.SmartSysFileMapper.selectUrlById"
>
</collection>
<collection
property=
"pagePicUrl"
column=
"page_pic"
ofType=
"c
om.glsx.smart.dao
.entity.SmartScene"
<collection
property=
"pagePicUrl"
column=
"page_pic"
ofType=
"c
n.com.glsx.smart.modules
.entity.SmartScene"
fetchType=
"eager"
select=
"c
om.glsx.smart.dao
.mapper.SmartSysFileMapper.selectUrlById"
>
select=
"c
n.com.glsx.smart.modules
.mapper.SmartSysFileMapper.selectUrlById"
>
</collection>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
@@ -241,7 +241,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartScene"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartScene"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -302,7 +302,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartScene"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartScene"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -449,7 +449,7 @@
</if>
</trim>
</insert>
<select
id=
"getList"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartScene"
resultMap=
"DetailResultMap"
>
<select
id=
"getList"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartScene"
resultMap=
"DetailResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from smart_scene t
...
...
src/main/resources/mapper/SmartSceneTemplateMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartSceneTemplateMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartSceneTemplate"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartSceneTemplateMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate"
>
<!--@mbg.generated-->
<!--@Table smart_scene_template-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -23,15 +23,15 @@
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_by"
jdbcType=
"BIGINT"
property=
"updateBy"
/>
</resultMap>
<resultMap
id=
"DetailResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartSceneTemplate"
extends=
"BaseResultMap"
>
<collection
property=
"iconUrl"
column=
"icon"
ofType=
"c
om.glsx.smart.dao
.entity.SmartSceneTemplate"
fetchType=
"eager"
select=
"c
om.glsx.smart.dao
.mapper.SmartSysFileMapper.selectUrlById"
>
<resultMap
id=
"DetailResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate"
extends=
"BaseResultMap"
>
<collection
property=
"iconUrl"
column=
"icon"
ofType=
"c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate"
fetchType=
"eager"
select=
"c
n.com.glsx.smart.modules
.mapper.SmartSysFileMapper.selectUrlById"
>
</collection>
<collection
property=
"backPicUrl"
column=
"back_pic"
ofType=
"c
om.glsx.smart.dao
.entity.SmartSceneTemplate"
fetchType=
"eager"
select=
"c
om.glsx.smart.dao
.mapper.SmartSysFileMapper.selectUrlById"
>
<collection
property=
"backPicUrl"
column=
"back_pic"
ofType=
"c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate"
fetchType=
"eager"
select=
"c
n.com.glsx.smart.modules
.mapper.SmartSysFileMapper.selectUrlById"
>
</collection>
<collection
property=
"pagePicUrl"
column=
"page_pic"
ofType=
"c
om.glsx.smart.dao
.entity.SmartSceneTemplate"
fetchType=
"eager"
select=
"c
om.glsx.smart.dao
.mapper.SmartSysFileMapper.selectUrlById"
>
<collection
property=
"pagePicUrl"
column=
"page_pic"
ofType=
"c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate"
fetchType=
"eager"
select=
"c
n.com.glsx.smart.modules
.mapper.SmartSysFileMapper.selectUrlById"
>
</collection>
</resultMap>
<sql
id=
"Base_Column_List"
>
...
...
@@ -255,7 +255,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartSceneTemplate"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene_template
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -319,7 +319,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartSceneTemplate"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene_template
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -475,7 +475,7 @@
</if>
</trim>
</insert>
<select
id=
"getList"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartSceneTemplate"
resultMap=
"DetailResultMap"
>
<select
id=
"getList"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartSceneTemplate"
resultMap=
"DetailResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from smart_scene_template t
...
...
src/main/resources/mapper/SmartSysCodeMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartSysCodeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartSysCode"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartSysCodeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartSysCode"
>
<!--@mbg.generated-->
<!--@Table smart_sys_code-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -20,7 +20,7 @@
<result
column=
"update_by"
jdbcType=
"BIGINT"
property=
"updateBy"
/>
</resultMap>
<resultMap
id=
"TreeResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartSysCode"
<resultMap
id=
"TreeResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartSysCode"
extends=
"BaseResultMap"
>
<!--@Table smart_sys_code-->
<collection
property=
"subCodeList"
select=
"getTree"
column=
"{parentKey=dict_key}"
/>
...
...
@@ -258,7 +258,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartSysCode"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartSysCode"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_sys_code
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -316,7 +316,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartSysCode"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartSysCode"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_sys_code
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSysFileMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartSysFileMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartSysFile"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartSysFileMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartSysFile"
>
<!--@mbg.generated-->
<!--@Table smart_sys_file-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -87,7 +87,7 @@
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<select
id=
"findByType"
resultType=
"c
om.glsx.smart.dao
.entity.SmartSysFile"
>
<select
id=
"findByType"
resultType=
"c
n.com.glsx.smart.modules
.entity.SmartSysFile"
>
select * from smart_sys_file
<if
test=
"type != null"
>
where `type` = #{type,jdbcType=TINYINT}
...
...
@@ -106,7 +106,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartSysFile"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartSysFile"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_sys_file
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -140,7 +140,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartSysFile"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartSysFile"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_sys_file
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartTemplateParamMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartTemplateParamMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartTemplateParam"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartTemplateParamMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartTemplateParam"
>
<!--@mbg.generated-->
<!--@Table smart_template_param-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -110,7 +110,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartTemplateParam"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartTemplateParam"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_template_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -155,7 +155,7 @@
where template_id = #{templateId,jdbcType=BIGINT}
</select>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartTemplateParam"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartTemplateParam"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_template_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartUserChannelMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartUserChannelMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartUserChannel"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartUserChannelMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartUserChannel"
>
<!--@mbg.generated generated on Fri Apr 23 15:24:29 CST 2021.-->
<!--@Table smart_user_channel-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
src/main/resources/mapper/SmartUserDeviceMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartUserDeviceMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartUserDevice"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartUserDeviceMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartUserDevice"
>
<!--@mbg.generated generated on Fri Apr 23 15:24:29 CST 2021.-->
<!--@Table smart_user_device-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
src/main/resources/mapper/SmartUserRelationMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartUserRelationMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartUserRelation"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartUserRelationMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartUserRelation"
>
<!--@mbg.generated-->
<!--@Table smart_user_relation-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -153,7 +153,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartUserRelation"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartUserRelation"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_user_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -199,7 +199,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartUserRelation"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartUserRelation"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_user_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -292,7 +292,7 @@
</if>
</trim>
</insert>
<select
id=
"getSingle"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartUserRelation"
resultMap=
"BaseResultMap"
>
<select
id=
"getSingle"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartUserRelation"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from smart_user_relation
...
...
src/main/resources/mapper/SmartVehicleBlueKeyMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartVehicleBlueKeyMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueKey"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartVehicleBlueKeyMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKey"
>
<!--@mbg.generated-->
<!--@Table smart_vehicle_blue_key-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -85,7 +85,7 @@
id, user_id, sn, crep_code, secret_key, smart_lock_Mac, car_number, key_name, is_delete,
create_time, mobile_code, peripheral_uuid, auto_sense_status, mobile_blue_mac, share_status
</sql>
<select
id=
"selectByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueKeyExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKeyExample"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<if
test=
"distinct"
>
...
...
@@ -112,14 +112,14 @@
delete from smart_vehicle_blue_key
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueKeyExample"
>
<delete
id=
"deleteByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKeyExample"
>
<!--@mbg.generated-->
delete from smart_vehicle_blue_key
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueKey"
useGeneratedKeys=
"true"
>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKey"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_vehicle_blue_key (user_id, sn, crep_code,
secret_key, smart_lock_Mac, car_number,
...
...
@@ -132,7 +132,7 @@
#{mobileCode,jdbcType=VARCHAR}, #{peripheralUuid,jdbcType=VARCHAR}, #{autoSenseStatus,jdbcType=TINYINT},
#{mobileBlueMac,jdbcType=VARCHAR}, #{shareStatus,jdbcType=TINYINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueKey"
useGeneratedKeys=
"true"
>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKey"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_vehicle_blue_key
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -224,7 +224,7 @@
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueKeyExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKeyExample"
resultType=
"java.lang.Long"
>
<!--@mbg.generated-->
select count(*) from smart_vehicle_blue_key
<if
test=
"_parameter != null"
>
...
...
@@ -307,7 +307,7 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueKey"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKey"
>
<!--@mbg.generated-->
update smart_vehicle_blue_key
<set>
...
...
@@ -356,7 +356,7 @@
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueKey"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueKey"
>
<!--@mbg.generated-->
update smart_vehicle_blue_key
set user_id = #{userId,jdbcType=BIGINT},
...
...
src/main/resources/mapper/SmartVehicleBlueShareKeyMapper.xml
View file @
651270e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"c
om.glsx.smart.dao
.mapper.SmartVehicleBlueShareKeyMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKey"
>
<mapper
namespace=
"c
n.com.glsx.smart.modules
.mapper.SmartVehicleBlueShareKeyMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKey"
>
<!--@mbg.generated-->
<!--@Table smart_vehicle_blue_share_key-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -16,7 +16,7 @@
<result
column=
"stop_time"
jdbcType=
"TIMESTAMP"
property=
"stopTime"
/>
</resultMap>
<resultMap
id=
"BaseMultiResultMap"
type=
"c
om.glsx.smart.dao
.entity.SmartShareKeyBlueKey"
>
<resultMap
id=
"BaseMultiResultMap"
type=
"c
n.com.glsx.smart.modules
.entity.SmartShareKeyBlueKey"
>
<!--@mbg.generated-->
<!--@Table smart_vehicle_blue_share_key-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -111,7 +111,7 @@
id, car_key_id, share_key_token, share_pick_status, pick_user_id, share_status, create_time,
pick_time, expire_time, stop_time
</sql>
<select
id=
"selectByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKeyExample"
<select
id=
"selectByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKeyExample"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
...
...
@@ -150,7 +150,7 @@
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKeyExample"
>
<delete
id=
"deleteByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKeyExample"
>
<!--@mbg.generated-->
delete from smart_vehicle_blue_share_key
...
...
@@ -159,7 +159,7 @@
</if>
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKey"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKey"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_vehicle_blue_share_key (car_key_id, share_key_token, share_pick_status,
pick_user_id, share_status, create_time,
...
...
@@ -172,7 +172,7 @@
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKey"
useGeneratedKeys=
"true"
>
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKey"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_vehicle_blue_share_key
...
...
@@ -267,7 +267,7 @@
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKeyExample"
<select
id=
"countByExample"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKeyExample"
resultType=
"java.lang.Long"
>
<!--@mbg.generated-->
select count(*) from smart_vehicle_blue_share_key
...
...
@@ -352,7 +352,7 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKey"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKey"
>
<!--@mbg.generated-->
update smart_vehicle_blue_share_key
...
...
@@ -405,7 +405,7 @@
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
om.glsx.smart.dao
.entity.SmartVehicleBlueShareKey"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"c
n.com.glsx.smart.modules
.entity.SmartVehicleBlueShareKey"
>
<!--@mbg.generated-->
update smart_vehicle_blue_share_key
set car_key_id = #{carKeyId,jdbcType=BIGINT},
...
...
src/main/webapp/WEB-INF/bin/start.sh
View file @
651270e
...
...
@@ -71,7 +71,7 @@ else
fi
echo
-e
"Starting the
$SERVER_NAME
...
\c
"
nohup
$JAVA_HOME
/bin/java
$JAVA_OPTS
$JAVA_MEM_OPTS
$JAVA_DEBUG_OPTS
$JAVA_JMX_OPTS
-classpath
$CONF_DIR
:
$LIB_JARS
c
om.glsx.smart
.SmartServiceApplication
env
=
$ENV
>
$STDOUT_FILE
2>&1 &
nohup
$JAVA_HOME
/bin/java
$JAVA_OPTS
$JAVA_MEM_OPTS
$JAVA_DEBUG_OPTS
$JAVA_JMX_OPTS
-classpath
$CONF_DIR
:
$LIB_JARS
c
n.com.glsx
.SmartServiceApplication
env
=
$ENV
>
$STDOUT_FILE
2>&1 &
COUNT
=
0
while
[
$COUNT
-lt 1
]
;
do
...
...
src/test/java/com/glsx/smart/service/TestDubboService.java
View file @
651270e
package
com
.
glsx
.
smart
.
service
;
import
com.glsx.smart.service.impl.UserKafkaServiceImpl
;
import
cn.com.glsx.smart.modules.service.impl.UserKafkaServiceImpl
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment