Commit 651270ea by fz

1.代码规范整理(应用结构规范修改)

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