Commit dccb03f6 by tyfanchz

生成通用业务代码

1 parent 1e204042
Showing 75 changed files with 4338 additions and 9 deletions
### IntelliJ project files
.idea/
*.iml
out/
gen/
### Java template
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
### Maven template
target/
package com.glsx.smart; package com.glsx.smart;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;
/** /**
* @Title: ServiceApplication.java * @Title: ServiceApplication.java
* @Description: * @Description:
* @author deployer name * @author deployer name
* @version V1.0 * @version V1.0
* @Company: Didihu.com.cn * @Company: Didihu.com.cn
* @Copyright Copyright (c) 2015 * @Copyright Copyright (c) 2015
*/ */
...@@ -23,10 +22,9 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -23,10 +22,9 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableTransactionManagement @EnableTransactionManagement
@ServletComponentScan @ServletComponentScan
@ComponentScan("com.glsx.smart") // 使用通用 Mapper 的注解
@MapperScan(basePackages={"com.glsx.smart.dao.mapper"}) @MapperScan(basePackages={"com.glsx.smart.mapper"})
public class SmartServiceApplication extends SpringBootServletInitializer { public class SmartServiceApplication extends SpringBootServletInitializer {
/** /**
* 本地启动 ,内嵌tomcat方式 * 本地启动 ,内嵌tomcat方式
* @param args * @param args
......
package com.glsx.smart.controller;
import com.glsx.smart.service.SmartSysFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@RestController
@RequestMapping("/file")
public class FileController {
@Autowired
private SmartSysFileService sysFileService;
@RequestMapping(value = "/uploadFile", method = {RequestMethod.POST})
public void uploadFile(@RequestPart(name = "file") MultipartFile file) {
}
@RequestMapping(value = "/deleteFile", method = {RequestMethod.POST})
public void deleteFile(String fileUrl) {
}
}
package com.glsx.smart.controller;
import java.util.List;
import com.glsx.smart.entity.SmartProduct;
import com.glsx.smart.service.SmartProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@RestController
@RequestMapping("/product")
public class ProductController {
@Autowired
private SmartProductService productService;
@RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST})
public List<SmartProduct> getList(SmartProduct product) {
return productService.getList(product);
}
@RequestMapping(value = "/getById", method = {RequestMethod.GET, RequestMethod.POST})
public SmartProduct getById(Long id) {
return productService.getById(id);
}
@RequestMapping(value = "/save", method = {RequestMethod.POST})
public void save(@RequestBody SmartProduct product) {
productService.save(product);
}
}
package com.glsx.smart.controller;
import java.util.List;
import com.glsx.smart.entity.SmartProductType;
import com.glsx.smart.service.SmartProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@RestController
@RequestMapping("/productType")
public class ProductTypeController {
@Autowired
private SmartProductTypeService productTypeService;
@RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST})
public List<SmartProductType> getList(SmartProductType productType) {
return productTypeService.getList(productType);
}
@RequestMapping(value = "/getById", method = {RequestMethod.GET, RequestMethod.POST})
public SmartProductType getById(Long id) {
return productTypeService.getById(id);
}
@RequestMapping(value = "/save", method = {RequestMethod.POST})
public void save(@RequestBody SmartProductType productType) {
productTypeService.save(productType);
}
}
package com.glsx.smart.controller;
import java.util.List;
import com.glsx.smart.entity.SmartScense;
import com.glsx.smart.entity.SmartScenseExample;
import com.glsx.smart.service.SmartScenseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@RestController
@RequestMapping("/scene")
public class SceneController {
@Autowired
private SmartScenseService scenseService;
@RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST})
public List<SmartScense> getList(SmartScense scense) {
return scenseService.selectByExample(new SmartScenseExample());
}
@RequestMapping(value = "/getById", method = {RequestMethod.GET, RequestMethod.POST})
public SmartScense getById(Long id) {
return scenseService.selectByPrimaryKey(id);
}
@RequestMapping(value = "/save", method = {RequestMethod.POST})
public void save(@RequestBody SmartScense scense) {
scenseService.insertOrUpdate(scense);
}
}
package com.glsx.smart.controller;
import java.util.List;
import com.glsx.smart.entity.SmartScenseTemplate;
import com.glsx.smart.entity.SmartScenseTemplateExample;
import com.glsx.smart.service.SmartScenseTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@RestController
public class SceneTemplateController {
@Autowired
private SmartScenseTemplateService scenseTemplateService;
@RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST})
public List<SmartScenseTemplate> getList(SmartScenseTemplate scenseTemplate) {
return scenseTemplateService.selectByExample(new SmartScenseTemplateExample());
}
@RequestMapping(value = "/getById", method = {RequestMethod.GET, RequestMethod.POST})
public SmartScenseTemplate getById(Long id) {
return scenseTemplateService.selectByPrimaryKey(id);
}
@RequestMapping(value = "/save", method = {RequestMethod.POST})
public void save(@RequestBody SmartScenseTemplate scenseTemplate) {
scenseTemplateService.insertOrUpdate(scenseTemplate);
}
}
package com.glsx.smart.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Table(name = "smart_devide_status")
public class SmartDevideStatus {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 设备id
*/
private String deviceId;
/**
* 用户id
*/
private String uid;
/**
* 设备指令
*/
private String deviceOrderCode;
/**
* 设备指令值
*/
private String deviceOrderValue;
/**
* 创建时间
*/
private Date createtime;
/**
* 更新时间
*/
private Date updatetime;
/**
* 产品id
*/
private String productKey;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDeviceId() {
return deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public String getDeviceOrderCode() {
return deviceOrderCode;
}
public void setDeviceOrderCode(String deviceOrderCode) {
this.deviceOrderCode = deviceOrderCode;
}
public String getDeviceOrderValue() {
return deviceOrderValue;
}
public void setDeviceOrderValue(String deviceOrderValue) {
this.deviceOrderValue = deviceOrderValue;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public Date getUpdatetime() {
return updatetime;
}
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
public String getProductKey() {
return productKey;
}
public void setProductKey(String productKey) {
this.productKey = productKey;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", deviceId=").append(deviceId);
sb.append(", uid=").append(uid);
sb.append(", deviceOrderCode=").append(deviceOrderCode);
sb.append(", deviceOrderValue=").append(deviceOrderValue);
sb.append(", createtime=").append(createtime);
sb.append(", updatetime=").append(updatetime);
sb.append(", productKey=").append(productKey);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
/**
* 车家智能产品数据表
*/
@Table(name = "smart_product")
public class SmartProduct {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 产品名称
*/
private String productName;
/**
* 图片ID 关联smart_sys_file中id
*/
private Long icon;
/**
* 产品类型ID 关联smart_product_type中id
*/
private Long typeId;
/**
* 商城产品id
*/
private String shopProductId;
/**
* 接入平台key 关联smart_sys_code中dict_key
*/
private String platformKey;
/**
* 接入平台产品id
*/
private String platformProductId;
/**
* 配网方式key 关联smart_sys_code中dict_key
*/
private String networkKey;
/**
* 状态:0下线 1上线
*/
private Byte status;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
/**
* 创建人
*/
private Long createBy;
/**
* 更新时间
*/
private Date updateTime;
/**
* 更新人
*/
private Long updateBy;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public Long getIcon() {
return icon;
}
public void setIcon(Long icon) {
this.icon = icon;
}
public Long getTypeId() {
return typeId;
}
public void setTypeId(Long typeId) {
this.typeId = typeId;
}
public String getShopProductId() {
return shopProductId;
}
public void setShopProductId(String shopProductId) {
this.shopProductId = shopProductId;
}
public String getPlatformKey() {
return platformKey;
}
public void setPlatformKey(String platformKey) {
this.platformKey = platformKey;
}
public String getPlatformProductId() {
return platformProductId;
}
public void setPlatformProductId(String platformProductId) {
this.platformProductId = platformProductId;
}
public String getNetworkKey() {
return networkKey;
}
public void setNetworkKey(String networkKey) {
this.networkKey = networkKey;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateBy() {
return createBy;
}
public void setCreateBy(Long createBy) {
this.createBy = createBy;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Long getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Long updateBy) {
this.updateBy = updateBy;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", productName=").append(productName);
sb.append(", icon=").append(icon);
sb.append(", typeId=").append(typeId);
sb.append(", shopProductId=").append(shopProductId);
sb.append(", platformKey=").append(platformKey);
sb.append(", platformProductId=").append(platformProductId);
sb.append(", networkKey=").append(networkKey);
sb.append(", status=").append(status);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", createBy=").append(createBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", updateBy=").append(updateBy);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
/**
* 车家智能产品类型表
*/
@Table(name = "smart_product_type")
public class SmartProductType {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 类型名称
*/
private String typeName;
/**
* 类别key 关联smart_sys_code中dict_key
*/
private String categoryKey;
/**
* 商城标签
*/
private String shopTag;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
/**
* 创建人
*/
private Long createBy;
/**
* 更新时间
*/
private Date updateTime;
/**
* 更新人
*/
private Long updateBy;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTypeName() {
return typeName;
}
public void setTypeName(String typeName) {
this.typeName = typeName;
}
public String getCategoryKey() {
return categoryKey;
}
public void setCategoryKey(String categoryKey) {
this.categoryKey = categoryKey;
}
public String getShopTag() {
return shopTag;
}
public void setShopTag(String shopTag) {
this.shopTag = shopTag;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateBy() {
return createBy;
}
public void setCreateBy(Long createBy) {
this.createBy = createBy;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Long getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Long updateBy) {
this.updateBy = updateBy;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", typeName=").append(typeName);
sb.append(", categoryKey=").append(categoryKey);
sb.append(", shopTag=").append(shopTag);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", createBy=").append(createBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", updateBy=").append(updateBy);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 车家智能产品类型参数表
*/
@Table(name = "smart_product_type_param")
public class SmartProductTypeParam {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 产品类型ID 关联smart_priduct_type中id
*/
private Long typeId;
/**
* 指令code
*/
private String devideOrderCode;
/**
* 指令名称
*/
private String devideOrderName;
/**
* 1.有效 0.无效
*/
private String status;
/**
* 指令集取值类型
*/
private String devideOrderValuetype;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getTypeId() {
return typeId;
}
public void setTypeId(Long typeId) {
this.typeId = typeId;
}
public String getDevideOrderCode() {
return devideOrderCode;
}
public void setDevideOrderCode(String devideOrderCode) {
this.devideOrderCode = devideOrderCode;
}
public String getDevideOrderName() {
return devideOrderName;
}
public void setDevideOrderName(String devideOrderName) {
this.devideOrderName = devideOrderName;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getDevideOrderValuetype() {
return devideOrderValuetype;
}
public void setDevideOrderValuetype(String devideOrderValuetype) {
this.devideOrderValuetype = devideOrderValuetype;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", typeId=").append(typeId);
sb.append(", devideOrderCode=").append(devideOrderCode);
sb.append(", devideOrderName=").append(devideOrderName);
sb.append(", status=").append(status);
sb.append(", devideOrderValuetype=").append(devideOrderValuetype);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
/**
* 车家智能用户场景表
*/
@Table(name = "smart_scense")
public class SmartScense {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 用户ID 关联smart_user_relation中id
*/
private Long userId;
/**
* 场景名称
*/
private String scenesName;
/**
* 场景类型key 关联smart_sys_code中dict_key
*/
private String typeKey;
/**
* 场景图标ID 关联smart_sys_file中id
*/
private Long icon;
/**
* 场景背景图ID 关联smart_sys_file中id
*/
private Long backPic;
/**
* 查看次数
*/
private Long viewTimes;
/**
* 场景描述
*/
private String description;
/**
* 条件规则 1任一条件 2全部条件
*/
private Byte conditionRule;
/**
* 执行周期 1每天 2工作日 3法定节假日
*/
private Byte executeCycle;
/**
* 状态:0下线 1上线
*/
private Byte status;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public String getScenesName() {
return scenesName;
}
public void setScenesName(String scenesName) {
this.scenesName = scenesName;
}
public String getTypeKey() {
return typeKey;
}
public void setTypeKey(String typeKey) {
this.typeKey = typeKey;
}
public Long getIcon() {
return icon;
}
public void setIcon(Long icon) {
this.icon = icon;
}
public Long getBackPic() {
return backPic;
}
public void setBackPic(Long backPic) {
this.backPic = backPic;
}
public Long getViewTimes() {
return viewTimes;
}
public void setViewTimes(Long viewTimes) {
this.viewTimes = viewTimes;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Byte getConditionRule() {
return conditionRule;
}
public void setConditionRule(Byte conditionRule) {
this.conditionRule = conditionRule;
}
public Byte getExecuteCycle() {
return executeCycle;
}
public void setExecuteCycle(Byte executeCycle) {
this.executeCycle = executeCycle;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", userId=").append(userId);
sb.append(", scenesName=").append(scenesName);
sb.append(", typeKey=").append(typeKey);
sb.append(", icon=").append(icon);
sb.append(", backPic=").append(backPic);
sb.append(", viewTimes=").append(viewTimes);
sb.append(", description=").append(description);
sb.append(", conditionRule=").append(conditionRule);
sb.append(", executeCycle=").append(executeCycle);
sb.append(", status=").append(status);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 车家智能用户场景数据表
*/
@Table(name = "smart_scense_data")
public class SmartScenseData {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 场景ID 关联smart_scense中id
*/
private Long templateId;
/**
* 类型 1触发条件 2执行内容
*/
private Byte type;
/**
* 排序
*/
private Byte sort;
/**
* 参数key
*/
private String paramKey;
/**
* 参数值 数组对象
*/
private String paramValue;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getTemplateId() {
return templateId;
}
public void setTemplateId(Long templateId) {
this.templateId = templateId;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Byte getSort() {
return sort;
}
public void setSort(Byte sort) {
this.sort = sort;
}
public String getParamKey() {
return paramKey;
}
public void setParamKey(String paramKey) {
this.paramKey = paramKey;
}
public String getParamValue() {
return paramValue;
}
public void setParamValue(String paramValue) {
this.paramValue = paramValue;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", templateId=").append(templateId);
sb.append(", type=").append(type);
sb.append(", sort=").append(sort);
sb.append(", paramKey=").append(paramKey);
sb.append(", paramValue=").append(paramValue);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
/**
* 车家智能场景模板表
*/
@Table(name = "smart_scense_template")
public class SmartScenseTemplate {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 场景名称
*/
private String scenesName;
/**
* 场景类型key 关联smart_sys_code中dict_key
*/
private String typeKey;
/**
* 场景图标ID 关联smart_sys_file中id
*/
private Long icon;
/**
* 场景背景图ID 关联smart_sys_file中id
*/
private Long backPic;
/**
* 查看次数
*/
private Long viewTimes;
/**
* 场景描述
*/
private String description;
/**
* 条件规则 1任一条件 2全部条件
*/
private Byte conditionRule;
/**
* 执行周期 1每天 2工作日 3法定节假日
*/
private Byte executeCycle;
/**
* 状态:0下线 1上线
*/
private Byte status;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
/**
* 创建人
*/
private Long createBy;
/**
* 更新时间
*/
private Date updateTime;
/**
* 更新人
*/
private Long updateBy;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getScenesName() {
return scenesName;
}
public void setScenesName(String scenesName) {
this.scenesName = scenesName;
}
public String getTypeKey() {
return typeKey;
}
public void setTypeKey(String typeKey) {
this.typeKey = typeKey;
}
public Long getIcon() {
return icon;
}
public void setIcon(Long icon) {
this.icon = icon;
}
public Long getBackPic() {
return backPic;
}
public void setBackPic(Long backPic) {
this.backPic = backPic;
}
public Long getViewTimes() {
return viewTimes;
}
public void setViewTimes(Long viewTimes) {
this.viewTimes = viewTimes;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Byte getConditionRule() {
return conditionRule;
}
public void setConditionRule(Byte conditionRule) {
this.conditionRule = conditionRule;
}
public Byte getExecuteCycle() {
return executeCycle;
}
public void setExecuteCycle(Byte executeCycle) {
this.executeCycle = executeCycle;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateBy() {
return createBy;
}
public void setCreateBy(Long createBy) {
this.createBy = createBy;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Long getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Long updateBy) {
this.updateBy = updateBy;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", scenesName=").append(scenesName);
sb.append(", typeKey=").append(typeKey);
sb.append(", icon=").append(icon);
sb.append(", backPic=").append(backPic);
sb.append(", viewTimes=").append(viewTimes);
sb.append(", description=").append(description);
sb.append(", conditionRule=").append(conditionRule);
sb.append(", executeCycle=").append(executeCycle);
sb.append(", status=").append(status);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", createBy=").append(createBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", updateBy=").append(updateBy);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
/**
* 车家智能系统代码集表
*/
@Table(name = "smart_sys_code")
public class SmartSysCode {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 字典类型
*/
private String dictType;
/**
* 字典键值
*/
private String dictKey;
/**
* 字典值
*/
private String dictValue;
/**
* 父级键值
*/
private String parentKey;
/**
* 排序
*/
private Byte sort;
/**
* 状态:0下线 1上线
*/
private Byte status;
/**
* 分级
*/
private Byte level;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
/**
* 创建人
*/
private Long createBy;
/**
* 更新时间
*/
private Date updateTime;
/**
* 更新人
*/
private Long updateBy;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getDictType() {
return dictType;
}
public void setDictType(String dictType) {
this.dictType = dictType;
}
public String getDictKey() {
return dictKey;
}
public void setDictKey(String dictKey) {
this.dictKey = dictKey;
}
public String getDictValue() {
return dictValue;
}
public void setDictValue(String dictValue) {
this.dictValue = dictValue;
}
public String getParentKey() {
return parentKey;
}
public void setParentKey(String parentKey) {
this.parentKey = parentKey;
}
public Byte getSort() {
return sort;
}
public void setSort(Byte sort) {
this.sort = sort;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public Byte getLevel() {
return level;
}
public void setLevel(Byte level) {
this.level = level;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Long getCreateBy() {
return createBy;
}
public void setCreateBy(Long createBy) {
this.createBy = createBy;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Long getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Long updateBy) {
this.updateBy = updateBy;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", dictType=").append(dictType);
sb.append(", dictKey=").append(dictKey);
sb.append(", dictValue=").append(dictValue);
sb.append(", parentKey=").append(parentKey);
sb.append(", sort=").append(sort);
sb.append(", status=").append(status);
sb.append(", level=").append(level);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", createBy=").append(createBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", updateBy=").append(updateBy);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
/**
* 车家智能系统文件表
*/
@Table(name = "smart_sys_file")
public class SmartSysFile {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 文件名
*/
private String name;
/**
* 文件链接
*/
private String url;
/**
* 类型:0公共 1图片素材库
*/
private Byte type;
/**
* 创建时间
*/
private Date createTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", url=").append(url);
sb.append(", type=").append(type);
sb.append(", createTime=").append(createTime);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 车家智能场景模板参数表
*/
@Table(name = "smart_template_param")
public class SmartTemplateParam {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 模板ID 关联smart_scense_template中id
*/
private Long templateId;
/**
* 类型 1触发条件 2执行内容
*/
private Byte type;
/**
* 排序
*/
private Byte sort;
/**
* 参数key
*/
private String paramKey;
/**
* 模板值 数组对象
*/
private String paramValue;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getTemplateId() {
return templateId;
}
public void setTemplateId(Long templateId) {
this.templateId = templateId;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Byte getSort() {
return sort;
}
public void setSort(Byte sort) {
this.sort = sort;
}
public String getParamKey() {
return paramKey;
}
public void setParamKey(String paramKey) {
this.paramKey = paramKey;
}
public String getParamValue() {
return paramValue;
}
public void setParamValue(String paramValue) {
this.paramValue = paramValue;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", templateId=").append(templateId);
sb.append(", type=").append(type);
sb.append(", sort=").append(sort);
sb.append(", paramKey=").append(paramKey);
sb.append(", paramValue=").append(paramValue);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
/**
* 车家智能用户平台注册信息表
*/
@Table(name = "smart_user_relation")
public class SmartUserRelation {
/**
* 标识ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 用户昵称
*/
private String name;
/**
* 手机号 来自嘀加平台用户
*/
private String phone;
/**
* 用户密码
*/
private String password;
/**
* 第三方平台标识 1涂鸦
*/
private Byte channel;
/**
* 第三方平台用户id
*/
private String thirdId;
/**
* 状态 0注销 1正常
*/
private Byte status;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Byte getChannel() {
return channel;
}
public void setChannel(Byte channel) {
this.channel = channel;
}
public String getThirdId() {
return thirdId;
}
public void setThirdId(String thirdId) {
this.thirdId = thirdId;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", phone=").append(phone);
sb.append(", password=").append(password);
sb.append(", channel=").append(channel);
sb.append(", thirdId=").append(thirdId);
sb.append(", status=").append(status);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append("]");
return sb.toString();
}
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartDevideStatus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartDevideStatusMapper extends tk.mybatis.mapper.common.Mapper<SmartDevideStatus> {
//long countByExample(SmartDevideStatusExample example);
//
//int deleteByExample(SmartDevideStatusExample example);
//
//int deleteByPrimaryKey(Integer id);
//
//int insert(SmartDevideStatus record);
int insertOrUpdate(SmartDevideStatus record);
int insertOrUpdateSelective(SmartDevideStatus record);
//int insertSelective(SmartDevideStatus record);
//
//List<SmartDevideStatus> selectByExample(SmartDevideStatusExample example);
//
//SmartDevideStatus selectByPrimaryKey(Integer id);
//
//int updateByExampleSelective(@Param("record") SmartDevideStatus record,
// @Param("example") SmartDevideStatusExample example);
//
//int updateByExample(@Param("record") SmartDevideStatus record,
// @Param("example") SmartDevideStatusExample example);
//
//int updateByPrimaryKeySelective(SmartDevideStatus record);
//
//int updateByPrimaryKey(SmartDevideStatus record);
int updateBatch(List<SmartDevideStatus> list);
int updateBatchSelective(List<SmartDevideStatus> list);
int batchInsert(@Param("list") List<SmartDevideStatus> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartProductMapper extends tk.mybatis.mapper.common.Mapper<SmartProduct> {
//long countByExample(SmartProductExample example);
//
//int deleteByExample(SmartProductExample example);
//
//int deleteByPrimaryKey(Long id);
//
//@Override
//int insert(SmartProduct record);
int insertOrUpdate(SmartProduct record);
int insertOrUpdateSelective(SmartProduct record);
//@Override
//int insertSelective(SmartProduct record);
//
//List<SmartProduct> selectByExample(SmartProductExample example);
//
//SmartProduct selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartProduct record,
// @Param("example") SmartProductExample example);
//
//int updateByExample(@Param("record") SmartProduct record,
// @Param("example") SmartProductExample example);
//
//@Override
//int updateByPrimaryKeySelective(SmartProduct record);
//
//@Override
//int updateByPrimaryKey(SmartProduct record);
int updateBatch(List<SmartProduct> list);
int updateBatchSelective(List<SmartProduct> list);
int batchInsert(@Param("list") List<SmartProduct> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartProductType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartProductTypeMapper extends tk.mybatis.mapper.common.Mapper<SmartProductType> {
//long countByExample(SmartProductTypeExample example);
//
//int deleteByExample(SmartProductTypeExample example);
//
//int deleteByPrimaryKey(Long id);
//
//int insert(SmartProductType record);
int insertOrUpdate(SmartProductType record);
int insertOrUpdateSelective(SmartProductType record);
//int insertSelective(SmartProductType record);
//
//List<SmartProductType> selectByExample(SmartProductTypeExample example);
//
//SmartProductType selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartProductType record,
// @Param("example") SmartProductTypeExample example);
//
//int updateByExample(@Param("record") SmartProductType record,
// @Param("example") SmartProductTypeExample example);
//
//int updateByPrimaryKeySelective(SmartProductType record);
//
//int updateByPrimaryKey(SmartProductType record);
int updateBatch(List<SmartProductType> list);
int updateBatchSelective(List<SmartProductType> list);
int batchInsert(@Param("list") List<SmartProductType> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartProductTypeParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartProductTypeParamMapper
extends tk.mybatis.mapper.common.Mapper<SmartProductTypeParam> {
//long countByExample(SmartProductTypeParamExample example);
//
//int deleteByExample(SmartProductTypeParamExample example);
//
//int deleteByPrimaryKey(Long id);
//
//int insert(SmartProductTypeParam record);
int insertOrUpdate(SmartProductTypeParam record);
int insertOrUpdateSelective(SmartProductTypeParam record);
//int insertSelective(SmartProductTypeParam record);
//
//List<SmartProductTypeParam> selectByExample(SmartProductTypeParamExample example);
//
//SmartProductTypeParam selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartProductTypeParam record,
// @Param("example") SmartProductTypeParamExample example);
//
//int updateByExample(@Param("record") SmartProductTypeParam record,
// @Param("example") SmartProductTypeParamExample example);
//
//int updateByPrimaryKeySelective(SmartProductTypeParam record);
//
//int updateByPrimaryKey(SmartProductTypeParam record);
int updateBatch(List<SmartProductTypeParam> list);
int updateBatchSelective(List<SmartProductTypeParam> list);
int batchInsert(@Param("list") List<SmartProductTypeParam> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartScenseData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartScenseDataMapper extends tk.mybatis.mapper.common.Mapper<SmartScenseData> {
//long countByExample(SmartScenseDataExample example);
//
//int deleteByExample(SmartScenseDataExample example);
//
//int deleteByPrimaryKey(Long id);
//
//int insert(SmartScenseData record);
int insertOrUpdate(SmartScenseData record);
int insertOrUpdateSelective(SmartScenseData record);
//int insertSelective(SmartScenseData record);
//
//List<SmartScenseData> selectByExample(SmartScenseDataExample example);
//
//SmartScenseData selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartScenseData record,
// @Param("example") SmartScenseDataExample example);
//
//int updateByExample(@Param("record") SmartScenseData record,
// @Param("example") SmartScenseDataExample example);
//
//int updateByPrimaryKeySelective(SmartScenseData record);
//
//int updateByPrimaryKey(SmartScenseData record);
int updateBatch(List<SmartScenseData> list);
int updateBatchSelective(List<SmartScenseData> list);
int batchInsert(@Param("list") List<SmartScenseData> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartScense;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartScenseMapper extends tk.mybatis.mapper.common.Mapper<SmartScense> {
//long countByExample(SmartScenseExample example);
//
//int deleteByExample(SmartScenseExample example);
//
//int deleteByPrimaryKey(Long id);
//
//int insert(SmartScense record);
int insertOrUpdate(SmartScense record);
int insertOrUpdateSelective(SmartScense record);
//int insertSelective(SmartScense record);
//
//List<SmartScense> selectByExample(SmartScenseExample example);
//
//SmartScense selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartScense record,
// @Param("example") SmartScenseExample example);
//
//int updateByExample(@Param("record") SmartScense record,
// @Param("example") SmartScenseExample example);
//
//int updateByPrimaryKeySelective(SmartScense record);
//
//int updateByPrimaryKey(SmartScense record);
int updateBatch(List<SmartScense> list);
int updateBatchSelective(List<SmartScense> list);
int batchInsert(@Param("list") List<SmartScense> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartScenseTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartScenseTemplateMapper
extends tk.mybatis.mapper.common.Mapper<SmartScenseTemplate> {
//long countByExample(SmartScenseTemplateExample example);
//
//int deleteByExample(SmartScenseTemplateExample example);
//
//int deleteByPrimaryKey(Long id);
//
//int insert(SmartScenseTemplate record);
int insertOrUpdate(SmartScenseTemplate record);
int insertOrUpdateSelective(SmartScenseTemplate record);
//int insertSelective(SmartScenseTemplate record);
//
//List<SmartScenseTemplate> selectByExample(SmartScenseTemplateExample example);
//
//SmartScenseTemplate selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartScenseTemplate record,
// @Param("example") SmartScenseTemplateExample example);
//
//int updateByExample(@Param("record") SmartScenseTemplate record,
// @Param("example") SmartScenseTemplateExample example);
//
//int updateByPrimaryKeySelective(SmartScenseTemplate record);
//
//int updateByPrimaryKey(SmartScenseTemplate record);
int updateBatch(List<SmartScenseTemplate> list);
int updateBatchSelective(List<SmartScenseTemplate> list);
int batchInsert(@Param("list") List<SmartScenseTemplate> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartSysCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartSysCodeMapper extends tk.mybatis.mapper.common.Mapper<SmartSysCode> {
//long countByExample(SmartSysCodeExample example);
//
//int deleteByExample(SmartSysCodeExample example);
//
//int deleteByPrimaryKey(Long id);
//
//int insert(SmartSysCode record);
int insertOrUpdate(SmartSysCode record);
int insertOrUpdateSelective(SmartSysCode record);
//int insertSelective(SmartSysCode record);
//
//List<SmartSysCode> selectByExample(SmartSysCodeExample example);
//
//SmartSysCode selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartSysCode record,
// @Param("example") SmartSysCodeExample example);
//
//int updateByExample(@Param("record") SmartSysCode record,
// @Param("example") SmartSysCodeExample example);
//
//int updateByPrimaryKeySelective(SmartSysCode record);
//
//int updateByPrimaryKey(SmartSysCode record);
int updateBatch(List<SmartSysCode> list);
int updateBatchSelective(List<SmartSysCode> list);
int batchInsert(@Param("list") List<SmartSysCode> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartSysFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartSysFileMapper extends tk.mybatis.mapper.common.Mapper<SmartSysFile> {
//long countByExample(SmartSysFileExample example);
//
//int deleteByExample(SmartSysFileExample example);
//
//int deleteByPrimaryKey(Long id);
//
//int insert(SmartSysFile record);
int insertOrUpdate(SmartSysFile record);
int insertOrUpdateSelective(SmartSysFile record);
//int insertSelective(SmartSysFile record);
//
//List<SmartSysFile> selectByExample(SmartSysFileExample example);
//
//SmartSysFile selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartSysFile record,
// @Param("example") SmartSysFileExample example);
//
//int updateByExample(@Param("record") SmartSysFile record,
// @Param("example") SmartSysFileExample example);
//
//int updateByPrimaryKeySelective(SmartSysFile record);
//
//int updateByPrimaryKey(SmartSysFile record);
int updateBatch(List<SmartSysFile> list);
int updateBatchSelective(List<SmartSysFile> list);
int batchInsert(@Param("list") List<SmartSysFile> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartTemplateParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartTemplateParamMapper
extends tk.mybatis.mapper.common.Mapper<SmartTemplateParam> {
//long countByExample(SmartTemplateParamExample example);
//
//int deleteByExample(SmartTemplateParamExample example);
//
//int deleteByPrimaryKey(Long id);
//
//int insert(SmartTemplateParam record);
int insertOrUpdate(SmartTemplateParam record);
int insertOrUpdateSelective(SmartTemplateParam record);
//int insertSelective(SmartTemplateParam record);
//
//List<SmartTemplateParam> selectByExample(SmartTemplateParamExample example);
//
//SmartTemplateParam selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartTemplateParam record,
// @Param("example") SmartTemplateParamExample example);
//
//int updateByExample(@Param("record") SmartTemplateParam record,
// @Param("example") SmartTemplateParamExample example);
//
//int updateByPrimaryKeySelective(SmartTemplateParam record);
//
//int updateByPrimaryKey(SmartTemplateParam record);
int updateBatch(List<SmartTemplateParam> list);
int updateBatchSelective(List<SmartTemplateParam> list);
int batchInsert(@Param("list") List<SmartTemplateParam> list);
}
package com.glsx.smart.mapper;
import java.util.List;
import com.glsx.smart.entity.SmartUserRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Mapper
public interface SmartUserRelationMapper
extends tk.mybatis.mapper.common.Mapper<SmartUserRelation> {
//long countByExample(SmartUserRelationExample example);
//
//int deleteByExample(SmartUserRelationExample example);
//
//int deleteByPrimaryKey(Long id);
//
//int insert(SmartUserRelation record);
int insertOrUpdate(SmartUserRelation record);
int insertOrUpdateSelective(SmartUserRelation record);
//int insertSelective(SmartUserRelation record);
//
//List<SmartUserRelation> selectByExample(SmartUserRelationExample example);
//
//SmartUserRelation selectByPrimaryKey(Long id);
//
//int updateByExampleSelective(@Param("record") SmartUserRelation record,
// @Param("example") SmartUserRelationExample example);
//
//int updateByExample(@Param("record") SmartUserRelation record,
// @Param("example") SmartUserRelationExample example);
//
//int updateByPrimaryKeySelective(SmartUserRelation record);
//
//int updateByPrimaryKey(SmartUserRelation record);
int updateBatch(List<SmartUserRelation> list);
int updateBatchSelective(List<SmartUserRelation> list);
int batchInsert(@Param("list") List<SmartUserRelation> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartDevideStatus;
import com.glsx.smart.entity.SmartDevideStatusExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartDevideStatusService{
int deleteByExample(SmartDevideStatusExample example);
int deleteByPrimaryKey(Integer id);
int insert(SmartDevideStatus record);
int insertOrUpdate(SmartDevideStatus record);
int insertOrUpdateSelective(SmartDevideStatus record);
int insertSelective(SmartDevideStatus record);
List<SmartDevideStatus> selectByExample(SmartDevideStatusExample example);
SmartDevideStatus selectByPrimaryKey(Integer id);
int updateByExampleSelective(SmartDevideStatus record,SmartDevideStatusExample example);
int updateByExample(SmartDevideStatus record,SmartDevideStatusExample example);
int updateByPrimaryKeySelective(SmartDevideStatus record);
int updateByPrimaryKey(SmartDevideStatus record);
int updateBatch(List<SmartDevideStatus> list);
int updateBatchSelective(List<SmartDevideStatus> list);
int batchInsert(List<SmartDevideStatus> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartProduct;
import com.glsx.smart.entity.SmartProductExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartProductService {
List<SmartProduct> getList(SmartProduct product);
SmartProduct getById(Long id);
void save(SmartProduct product);
void getCommandSetById(Long id);
void checkShopProductIdValid(String shopProductId);
void putOn(Long id);
void putOff(Long id);
long countByExample(SmartProductExample example);
int deleteByExample(SmartProductExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartProduct record);
int insertOrUpdate(SmartProduct record);
int insertOrUpdateSelective(SmartProduct record);
int insertSelective(SmartProduct record);
List<SmartProduct> selectByExample(SmartProductExample example);
SmartProduct selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartProduct record, SmartProductExample example);
int updateByExample(SmartProduct record, SmartProductExample example);
int updateByPrimaryKeySelective(SmartProduct record);
int updateByPrimaryKey(SmartProduct record);
int updateBatch(List<SmartProduct> list);
int updateBatchSelective(List<SmartProduct> list);
int batchInsert(List<SmartProduct> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartProductTypeParam;
import com.glsx.smart.entity.SmartProductTypeParamExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartProductTypeParamService {
int deleteByExample(SmartProductTypeParamExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartProductTypeParam record);
int insertOrUpdate(SmartProductTypeParam record);
int insertOrUpdateSelective(SmartProductTypeParam record);
int insertSelective(SmartProductTypeParam record);
List<SmartProductTypeParam> selectByExample(SmartProductTypeParamExample example);
SmartProductTypeParam selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartProductTypeParam record,
SmartProductTypeParamExample example);
int updateByExample(SmartProductTypeParam record, SmartProductTypeParamExample example);
int updateByPrimaryKeySelective(SmartProductTypeParam record);
int updateByPrimaryKey(SmartProductTypeParam record);
int updateBatch(List<SmartProductTypeParam> list);
int updateBatchSelective(List<SmartProductTypeParam> list);
int batchInsert(List<SmartProductTypeParam> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartProductType;
import com.glsx.smart.entity.SmartProductTypeExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartProductTypeService {
List<SmartProductType> getList(SmartProductType productType);
SmartProductType getById(Long id);
void save(SmartProductType productType);
List<String> getShopTagList();
int deleteByExample(SmartProductTypeExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartProductType record);
int insertOrUpdate(SmartProductType record);
int insertOrUpdateSelective(SmartProductType record);
int insertSelective(SmartProductType record);
List<SmartProductType> selectByExample(SmartProductTypeExample example);
SmartProductType selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartProductType record, SmartProductTypeExample example);
int updateByExample(SmartProductType record, SmartProductTypeExample example);
int updateByPrimaryKeySelective(SmartProductType record);
int updateByPrimaryKey(SmartProductType record);
int updateBatch(List<SmartProductType> list);
int updateBatchSelective(List<SmartProductType> list);
int batchInsert(List<SmartProductType> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartScenseData;
import com.glsx.smart.entity.SmartScenseDataExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartScenseDataService {
int deleteByExample(SmartScenseDataExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartScenseData record);
int insertOrUpdate(SmartScenseData record);
int insertOrUpdateSelective(SmartScenseData record);
int insertSelective(SmartScenseData record);
List<SmartScenseData> selectByExample(SmartScenseDataExample example);
SmartScenseData selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartScenseData record, SmartScenseDataExample example);
int updateByExample(SmartScenseData record, SmartScenseDataExample example);
int updateByPrimaryKeySelective(SmartScenseData record);
int updateByPrimaryKey(SmartScenseData record);
int updateBatch(List<SmartScenseData> list);
int updateBatchSelective(List<SmartScenseData> list);
int batchInsert(List<SmartScenseData> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartScense;
import com.glsx.smart.entity.SmartScenseExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartScenseService {
int deleteByExample(SmartScenseExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartScense record);
int insertOrUpdate(SmartScense record);
int insertOrUpdateSelective(SmartScense record);
int insertSelective(SmartScense record);
List<SmartScense> selectByExample(SmartScenseExample example);
SmartScense selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartScense record, SmartScenseExample example);
int updateByExample(SmartScense record, SmartScenseExample example);
int updateByPrimaryKeySelective(SmartScense record);
int updateByPrimaryKey(SmartScense record);
int updateBatch(List<SmartScense> list);
int updateBatchSelective(List<SmartScense> list);
int batchInsert(List<SmartScense> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartScenseTemplate;
import com.glsx.smart.entity.SmartScenseTemplateExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartScenseTemplateService {
int deleteByExample(SmartScenseTemplateExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartScenseTemplate record);
int insertOrUpdate(SmartScenseTemplate record);
int insertOrUpdateSelective(SmartScenseTemplate record);
int insertSelective(SmartScenseTemplate record);
List<SmartScenseTemplate> selectByExample(SmartScenseTemplateExample example);
SmartScenseTemplate selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartScenseTemplate record, SmartScenseTemplateExample example);
int updateByExample(SmartScenseTemplate record, SmartScenseTemplateExample example);
int updateByPrimaryKeySelective(SmartScenseTemplate record);
int updateByPrimaryKey(SmartScenseTemplate record);
int updateBatch(List<SmartScenseTemplate> list);
int updateBatchSelective(List<SmartScenseTemplate> list);
int batchInsert(List<SmartScenseTemplate> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartSysCode;
import com.glsx.smart.entity.SmartSysCodeExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartSysCodeService {
int deleteByExample(SmartSysCodeExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartSysCode record);
int insertOrUpdate(SmartSysCode record);
int insertOrUpdateSelective(SmartSysCode record);
int insertSelective(SmartSysCode record);
List<SmartSysCode> selectByExample(SmartSysCodeExample example);
SmartSysCode selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartSysCode record, SmartSysCodeExample example);
int updateByExample(SmartSysCode record, SmartSysCodeExample example);
int updateByPrimaryKeySelective(SmartSysCode record);
int updateByPrimaryKey(SmartSysCode record);
int updateBatch(List<SmartSysCode> list);
int updateBatchSelective(List<SmartSysCode> list);
int batchInsert(List<SmartSysCode> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartSysFile;
import com.glsx.smart.entity.SmartSysFileExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartSysFileService {
int deleteByExample(SmartSysFileExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartSysFile record);
int insertOrUpdate(SmartSysFile record);
int insertOrUpdateSelective(SmartSysFile record);
int insertSelective(SmartSysFile record);
List<SmartSysFile> selectByExample(SmartSysFileExample example);
SmartSysFile selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartSysFile record, SmartSysFileExample example);
int updateByExample(SmartSysFile record, SmartSysFileExample example);
int updateByPrimaryKeySelective(SmartSysFile record);
int updateByPrimaryKey(SmartSysFile record);
int updateBatch(List<SmartSysFile> list);
int updateBatchSelective(List<SmartSysFile> list);
int batchInsert(List<SmartSysFile> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartTemplateParam;
import com.glsx.smart.entity.SmartTemplateParamExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartTemplateParamService {
int deleteByExample(SmartTemplateParamExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartTemplateParam record);
int insertOrUpdate(SmartTemplateParam record);
int insertOrUpdateSelective(SmartTemplateParam record);
int insertSelective(SmartTemplateParam record);
List<SmartTemplateParam> selectByExample(SmartTemplateParamExample example);
SmartTemplateParam selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartTemplateParam record, SmartTemplateParamExample example);
int updateByExample(SmartTemplateParam record, SmartTemplateParamExample example);
int updateByPrimaryKeySelective(SmartTemplateParam record);
int updateByPrimaryKey(SmartTemplateParam record);
int updateBatch(List<SmartTemplateParam> list);
int updateBatchSelective(List<SmartTemplateParam> list);
int batchInsert(List<SmartTemplateParam> list);
}
package com.glsx.smart.service;
import java.util.List;
import com.glsx.smart.entity.SmartUserRelation;
import com.glsx.smart.entity.SmartUserRelationExample;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public interface SmartUserRelationService {
int deleteByExample(SmartUserRelationExample example);
int deleteByPrimaryKey(Long id);
int insert(SmartUserRelation record);
int insertOrUpdate(SmartUserRelation record);
int insertOrUpdateSelective(SmartUserRelation record);
int insertSelective(SmartUserRelation record);
List<SmartUserRelation> selectByExample(SmartUserRelationExample example);
SmartUserRelation selectByPrimaryKey(Long id);
int updateByExampleSelective(SmartUserRelation record, SmartUserRelationExample example);
int updateByExample(SmartUserRelation record, SmartUserRelationExample example);
int updateByPrimaryKeySelective(SmartUserRelation record);
int updateByPrimaryKey(SmartUserRelation record);
int updateBatch(List<SmartUserRelation> list);
int updateBatchSelective(List<SmartUserRelation> list);
int batchInsert(List<SmartUserRelation> list);
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartDevideStatus;
import com.glsx.smart.entity.SmartDevideStatusExample;
import com.glsx.smart.mapper.SmartDevideStatusMapper;
import com.glsx.smart.service.SmartDevideStatusService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartDevideStatusServiceImpl implements SmartDevideStatusService{
@Resource
private SmartDevideStatusMapper smartDevideStatusMapper;
@Override
public int deleteByExample(SmartDevideStatusExample example) {
return smartDevideStatusMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Integer id) {
return smartDevideStatusMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartDevideStatus record) {
return smartDevideStatusMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartDevideStatus record) {
return smartDevideStatusMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartDevideStatus record) {
return smartDevideStatusMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartDevideStatus record) {
return smartDevideStatusMapper.insertSelective(record);
}
@Override
public List<SmartDevideStatus> selectByExample(SmartDevideStatusExample example) {
return smartDevideStatusMapper.selectByExample(example);
}
@Override
public SmartDevideStatus selectByPrimaryKey(Integer id) {
return smartDevideStatusMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartDevideStatus record,SmartDevideStatusExample example) {
return smartDevideStatusMapper.updateByExampleSelective(record,example);
}
@Override
public int updateByExample(SmartDevideStatus record,SmartDevideStatusExample example) {
return smartDevideStatusMapper.updateByExample(record,example);
}
@Override
public int updateByPrimaryKeySelective(SmartDevideStatus record) {
return smartDevideStatusMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartDevideStatus record) {
return smartDevideStatusMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartDevideStatus> list) {
return smartDevideStatusMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartDevideStatus> list) {
return smartDevideStatusMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartDevideStatus> list) {
return smartDevideStatusMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartProduct;
import com.glsx.smart.entity.SmartProductExample;
import com.glsx.smart.mapper.SmartProductMapper;
import com.glsx.smart.service.SmartProductService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartProductServiceImpl implements SmartProductService {
@Resource
private SmartProductMapper productMapper;
@Override
public List<SmartProduct> getList(SmartProduct product) {
//return productMapper.selectByExample(new SmartProductExample());
return productMapper.selectAll();
}
@Override
public SmartProduct getById(Long id) {
return productMapper.selectByPrimaryKey(id);
}
@Override
public void save(SmartProduct product) {
SmartProduct record = productMapper.selectByPrimaryKey(product.getId());
if (record == null) {
productMapper.insertSelective(product);
} else {
productMapper.updateByPrimaryKeySelective(product);
}
}
@Override
public void getCommandSetById(Long id) {
}
@Override
public void checkShopProductIdValid(String shopProductId) {
}
@Override
public void putOn(Long id) {
}
@Override
public void putOff(Long id) {
}
@Override
public long countByExample(SmartProductExample example) {
return productMapper.selectCount(new SmartProduct());
}
@Override
public int deleteByExample(SmartProductExample example) {
return productMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return productMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartProduct record) {
return productMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartProduct record) {
return productMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartProduct record) {
return productMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartProduct record) {
return productMapper.insertSelective(record);
}
@Override
public List<SmartProduct> selectByExample(SmartProductExample example) {
return productMapper.selectByExample(example);
}
@Override
public SmartProduct selectByPrimaryKey(Long id) {
return productMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartProduct record, SmartProductExample example) {
return productMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartProduct record, SmartProductExample example) {
return productMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartProduct record) {
return productMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartProduct record) {
return productMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartProduct> list) {
return productMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartProduct> list) {
return productMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartProduct> list) {
return productMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartProductTypeParam;
import com.glsx.smart.entity.SmartProductTypeParamExample;
import com.glsx.smart.mapper.SmartProductTypeParamMapper;
import com.glsx.smart.service.SmartProductTypeParamService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartProductTypeParamServiceImpl implements SmartProductTypeParamService {
@Resource
private SmartProductTypeParamMapper smartProductTypeParamMapper;
@Override
public int deleteByExample(SmartProductTypeParamExample example) {
return smartProductTypeParamMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return smartProductTypeParamMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartProductTypeParam record) {
return smartProductTypeParamMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartProductTypeParam record) {
return smartProductTypeParamMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartProductTypeParam record) {
return smartProductTypeParamMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartProductTypeParam record) {
return smartProductTypeParamMapper.insertSelective(record);
}
@Override
public List<SmartProductTypeParam> selectByExample(SmartProductTypeParamExample example) {
return smartProductTypeParamMapper.selectByExample(example);
}
@Override
public SmartProductTypeParam selectByPrimaryKey(Long id) {
return smartProductTypeParamMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartProductTypeParam record,
SmartProductTypeParamExample example) {
return smartProductTypeParamMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartProductTypeParam record, SmartProductTypeParamExample example) {
return smartProductTypeParamMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartProductTypeParam record) {
return smartProductTypeParamMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartProductTypeParam record) {
return smartProductTypeParamMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartProductTypeParam> list) {
return smartProductTypeParamMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartProductTypeParam> list) {
return smartProductTypeParamMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartProductTypeParam> list) {
return smartProductTypeParamMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartProductType;
import com.glsx.smart.entity.SmartProductTypeExample;
import com.glsx.smart.mapper.SmartProductTypeMapper;
import com.glsx.smart.service.SmartProductTypeService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartProductTypeServiceImpl implements SmartProductTypeService {
@Resource
private SmartProductTypeMapper productTypeMapper;
@Override
public List<SmartProductType> getList(SmartProductType productType) {
return productTypeMapper.selectByExample(new SmartProductTypeExample());
}
@Override
public SmartProductType getById(Long id) {
return productTypeMapper.selectByPrimaryKey(id);
}
@Override
public void save(SmartProductType productType) {
SmartProductType record = productTypeMapper.selectByPrimaryKey(
productType.getId());
if (record == null) {
productTypeMapper.insertSelective(productType);
} else {
productTypeMapper.updateByPrimaryKeySelective(productType);
}
}
@Override
public List<String> getShopTagList() {
return null;
}
@Override
public int deleteByExample(SmartProductTypeExample example) {
return productTypeMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return productTypeMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartProductType record) {
return productTypeMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartProductType record) {
return productTypeMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartProductType record) {
return productTypeMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartProductType record) {
return productTypeMapper.insertSelective(record);
}
@Override
public List<SmartProductType> selectByExample(SmartProductTypeExample example) {
return productTypeMapper.selectByExample(example);
}
@Override
public SmartProductType selectByPrimaryKey(Long id) {
return productTypeMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartProductType record, SmartProductTypeExample example) {
return productTypeMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartProductType record, SmartProductTypeExample example) {
return productTypeMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartProductType record) {
return productTypeMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartProductType record) {
return productTypeMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartProductType> list) {
return productTypeMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartProductType> list) {
return productTypeMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartProductType> list) {
return productTypeMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartScenseData;
import com.glsx.smart.entity.SmartScenseDataExample;
import com.glsx.smart.mapper.SmartScenseDataMapper;
import com.glsx.smart.service.SmartScenseDataService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartScenseDataServiceImpl implements SmartScenseDataService {
@Resource
private SmartScenseDataMapper smartScenseDataMapper;
@Override
public int deleteByExample(SmartScenseDataExample example) {
return smartScenseDataMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return smartScenseDataMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartScenseData record) {
return smartScenseDataMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartScenseData record) {
return smartScenseDataMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartScenseData record) {
return smartScenseDataMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartScenseData record) {
return smartScenseDataMapper.insertSelective(record);
}
@Override
public List<SmartScenseData> selectByExample(SmartScenseDataExample example) {
return smartScenseDataMapper.selectByExample(example);
}
@Override
public SmartScenseData selectByPrimaryKey(Long id) {
return smartScenseDataMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartScenseData record, SmartScenseDataExample example) {
return smartScenseDataMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartScenseData record, SmartScenseDataExample example) {
return smartScenseDataMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartScenseData record) {
return smartScenseDataMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartScenseData record) {
return smartScenseDataMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartScenseData> list) {
return smartScenseDataMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartScenseData> list) {
return smartScenseDataMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartScenseData> list) {
return smartScenseDataMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartScense;
import com.glsx.smart.entity.SmartScenseExample;
import com.glsx.smart.mapper.SmartScenseMapper;
import com.glsx.smart.service.SmartScenseService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartScenseServiceImpl implements SmartScenseService {
@Resource
private SmartScenseMapper smartScenseMapper;
@Override
public int deleteByExample(SmartScenseExample example) {
return smartScenseMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return smartScenseMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartScense record) {
return smartScenseMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartScense record) {
return smartScenseMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartScense record) {
return smartScenseMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartScense record) {
return smartScenseMapper.insertSelective(record);
}
@Override
public List<SmartScense> selectByExample(SmartScenseExample example) {
return smartScenseMapper.selectByExample(example);
}
@Override
public SmartScense selectByPrimaryKey(Long id) {
return smartScenseMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartScense record, SmartScenseExample example) {
return smartScenseMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartScense record, SmartScenseExample example) {
return smartScenseMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartScense record) {
return smartScenseMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartScense record) {
return smartScenseMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartScense> list) {
return smartScenseMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartScense> list) {
return smartScenseMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartScense> list) {
return smartScenseMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartScenseTemplate;
import com.glsx.smart.entity.SmartScenseTemplateExample;
import com.glsx.smart.mapper.SmartScenseTemplateMapper;
import com.glsx.smart.service.SmartScenseTemplateService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartScenseTemplateServiceImpl implements SmartScenseTemplateService {
@Resource
private SmartScenseTemplateMapper smartScenseTemplateMapper;
@Override
public int deleteByExample(SmartScenseTemplateExample example) {
return smartScenseTemplateMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return smartScenseTemplateMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartScenseTemplate record) {
return smartScenseTemplateMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartScenseTemplate record) {
return smartScenseTemplateMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartScenseTemplate record) {
return smartScenseTemplateMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartScenseTemplate record) {
return smartScenseTemplateMapper.insertSelective(record);
}
@Override
public List<SmartScenseTemplate> selectByExample(SmartScenseTemplateExample example) {
return smartScenseTemplateMapper.selectByExample(example);
}
@Override
public SmartScenseTemplate selectByPrimaryKey(Long id) {
return smartScenseTemplateMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartScenseTemplate record,
SmartScenseTemplateExample example) {
return smartScenseTemplateMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartScenseTemplate record, SmartScenseTemplateExample example) {
return smartScenseTemplateMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartScenseTemplate record) {
return smartScenseTemplateMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartScenseTemplate record) {
return smartScenseTemplateMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartScenseTemplate> list) {
return smartScenseTemplateMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartScenseTemplate> list) {
return smartScenseTemplateMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartScenseTemplate> list) {
return smartScenseTemplateMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartSysCode;
import com.glsx.smart.entity.SmartSysCodeExample;
import com.glsx.smart.mapper.SmartSysCodeMapper;
import com.glsx.smart.service.SmartSysCodeService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartSysCodeServiceImpl implements SmartSysCodeService {
@Resource
private SmartSysCodeMapper smartSysCodeMapper;
@Override
public int deleteByExample(SmartSysCodeExample example) {
return smartSysCodeMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return smartSysCodeMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartSysCode record) {
return smartSysCodeMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartSysCode record) {
return smartSysCodeMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartSysCode record) {
return smartSysCodeMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartSysCode record) {
return smartSysCodeMapper.insertSelective(record);
}
@Override
public List<SmartSysCode> selectByExample(SmartSysCodeExample example) {
return smartSysCodeMapper.selectByExample(example);
}
@Override
public SmartSysCode selectByPrimaryKey(Long id) {
return smartSysCodeMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartSysCode record, SmartSysCodeExample example) {
return smartSysCodeMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartSysCode record, SmartSysCodeExample example) {
return smartSysCodeMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartSysCode record) {
return smartSysCodeMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartSysCode record) {
return smartSysCodeMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartSysCode> list) {
return smartSysCodeMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartSysCode> list) {
return smartSysCodeMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartSysCode> list) {
return smartSysCodeMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartSysFile;
import com.glsx.smart.entity.SmartSysFileExample;
import com.glsx.smart.mapper.SmartSysFileMapper;
import com.glsx.smart.service.SmartSysFileService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartSysFileServiceImpl implements SmartSysFileService {
@Resource
private SmartSysFileMapper smartSysFileMapper;
@Override
public int deleteByExample(SmartSysFileExample example) {
return smartSysFileMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return smartSysFileMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartSysFile record) {
return smartSysFileMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartSysFile record) {
return smartSysFileMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartSysFile record) {
return smartSysFileMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartSysFile record) {
return smartSysFileMapper.insertSelective(record);
}
@Override
public List<SmartSysFile> selectByExample(SmartSysFileExample example) {
return smartSysFileMapper.selectByExample(example);
}
@Override
public SmartSysFile selectByPrimaryKey(Long id) {
return smartSysFileMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartSysFile record, SmartSysFileExample example) {
return smartSysFileMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartSysFile record, SmartSysFileExample example) {
return smartSysFileMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartSysFile record) {
return smartSysFileMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartSysFile record) {
return smartSysFileMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartSysFile> list) {
return smartSysFileMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartSysFile> list) {
return smartSysFileMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartSysFile> list) {
return smartSysFileMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartTemplateParam;
import com.glsx.smart.entity.SmartTemplateParamExample;
import com.glsx.smart.mapper.SmartTemplateParamMapper;
import com.glsx.smart.service.SmartTemplateParamService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartTemplateParamServiceImpl implements SmartTemplateParamService {
@Resource
private SmartTemplateParamMapper smartTemplateParamMapper;
@Override
public int deleteByExample(SmartTemplateParamExample example) {
return smartTemplateParamMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return smartTemplateParamMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartTemplateParam record) {
return smartTemplateParamMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartTemplateParam record) {
return smartTemplateParamMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartTemplateParam record) {
return smartTemplateParamMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartTemplateParam record) {
return smartTemplateParamMapper.insertSelective(record);
}
@Override
public List<SmartTemplateParam> selectByExample(SmartTemplateParamExample example) {
return smartTemplateParamMapper.selectByExample(example);
}
@Override
public SmartTemplateParam selectByPrimaryKey(Long id) {
return smartTemplateParamMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartTemplateParam record,
SmartTemplateParamExample example) {
return smartTemplateParamMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartTemplateParam record, SmartTemplateParamExample example) {
return smartTemplateParamMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartTemplateParam record) {
return smartTemplateParamMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartTemplateParam record) {
return smartTemplateParamMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartTemplateParam> list) {
return smartTemplateParamMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartTemplateParam> list) {
return smartTemplateParamMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartTemplateParam> list) {
return smartTemplateParamMapper.batchInsert(list);
}
}
package com.glsx.smart.service.impl;
import javax.annotation.Resource;
import java.util.List;
import com.glsx.smart.entity.SmartUserRelation;
import com.glsx.smart.entity.SmartUserRelationExample;
import com.glsx.smart.mapper.SmartUserRelationMapper;
import com.glsx.smart.service.SmartUserRelationService;
import org.springframework.stereotype.Service;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
@Service
public class SmartUserRelationServiceImpl implements SmartUserRelationService {
@Resource
private SmartUserRelationMapper smartUserRelationMapper;
@Override
public int deleteByExample(SmartUserRelationExample example) {
return smartUserRelationMapper.deleteByExample(example);
}
@Override
public int deleteByPrimaryKey(Long id) {
return smartUserRelationMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(SmartUserRelation record) {
return smartUserRelationMapper.insert(record);
}
@Override
public int insertOrUpdate(SmartUserRelation record) {
return smartUserRelationMapper.insertOrUpdate(record);
}
@Override
public int insertOrUpdateSelective(SmartUserRelation record) {
return smartUserRelationMapper.insertOrUpdateSelective(record);
}
@Override
public int insertSelective(SmartUserRelation record) {
return smartUserRelationMapper.insertSelective(record);
}
@Override
public List<SmartUserRelation> selectByExample(SmartUserRelationExample example) {
return smartUserRelationMapper.selectByExample(example);
}
@Override
public SmartUserRelation selectByPrimaryKey(Long id) {
return smartUserRelationMapper.selectByPrimaryKey(id);
}
@Override
public int updateByExampleSelective(SmartUserRelation record,
SmartUserRelationExample example) {
return smartUserRelationMapper.updateByExampleSelective(record, example);
}
@Override
public int updateByExample(SmartUserRelation record, SmartUserRelationExample example) {
return smartUserRelationMapper.updateByExample(record, example);
}
@Override
public int updateByPrimaryKeySelective(SmartUserRelation record) {
return smartUserRelationMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(SmartUserRelation record) {
return smartUserRelationMapper.updateByPrimaryKey(record);
}
@Override
public int updateBatch(List<SmartUserRelation> list) {
return smartUserRelationMapper.updateBatch(list);
}
@Override
public int updateBatchSelective(List<SmartUserRelation> list) {
return smartUserRelationMapper.updateBatchSelective(list);
}
@Override
public int batchInsert(List<SmartUserRelation> list) {
return smartUserRelationMapper.batchInsert(list);
}
}
...@@ -9,7 +9,7 @@ spring.jackson.time-zone=GMT+8 ...@@ -9,7 +9,7 @@ spring.jackson.time-zone=GMT+8
server.tomcat.uri-encoding=UTF-8 server.tomcat.uri-encoding=UTF-8
spring.messages.encoding=UTF-8 spring.messages.encoding=UTF-8
#mybatis\u914D\u7F6E #mybatis\u914D\u7F6E
mybatis.typeAliasesPackage=com.glsx.dao.entity mybatis.typeAliasesPackage=com.glsx.entity
mybatis.mapperLocations=classpath:mapper/*.xml mybatis.mapperLocations=classpath:mapper/*.xml
mybatis.configLocation=classpath:/mybatis-config.xml mybatis.configLocation=classpath:/mybatis-config.xml
...@@ -17,3 +17,8 @@ logging.level.org.springframework.boot.autoconfigure=off ...@@ -17,3 +17,8 @@ logging.level.org.springframework.boot.autoconfigure=off
logging.level.com.glsx.smart=DEBUG logging.level.com.glsx.smart=DEBUG
logging.path=/data/java_log/jetty/smartService/chejia-smart-service logging.path=/data/java_log/jetty/smartService/chejia-smart-service
# PageHelper
pagehelper.helperDialect=mysql
pagehelper.reasonable=true
pagehelper.supportMethodsArguments=true
pagehelper.params=count=countSql
...@@ -2,4 +2,4 @@ spring.application.name=chejia-smart-service ...@@ -2,4 +2,4 @@ spring.application.name=chejia-smart-service
server.port=8209 server.port=8209
#nacos\u914D\u7F6E #nacos\u914D\u7F6E
spring.cloud.nacos.config.group=DEFAULT_GROUP spring.cloud.nacos.config.group=DEFAULT_GROUP
spring.cloud.nacos.config.server-addr=192.168.0.63:8848
\ No newline at end of file \ No newline at end of file
spring.cloud.nacos.config.server-addr=192.168.0.63:8848
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!