Commit dccb03f6 by tyfanchz

生成通用业务代码

1 parent 1e204042
Showing 75 changed files with 19912 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 java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartDevideStatusExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartDevideStatusExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andDeviceIdIsNull() {
addCriterion("device_id is null");
return (Criteria) this;
}
public Criteria andDeviceIdIsNotNull() {
addCriterion("device_id is not null");
return (Criteria) this;
}
public Criteria andDeviceIdEqualTo(String value) {
addCriterion("device_id =", value, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdNotEqualTo(String value) {
addCriterion("device_id <>", value, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdGreaterThan(String value) {
addCriterion("device_id >", value, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdGreaterThanOrEqualTo(String value) {
addCriterion("device_id >=", value, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdLessThan(String value) {
addCriterion("device_id <", value, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdLessThanOrEqualTo(String value) {
addCriterion("device_id <=", value, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdLike(String value) {
addCriterion("device_id like", value, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdNotLike(String value) {
addCriterion("device_id not like", value, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdIn(List<String> values) {
addCriterion("device_id in", values, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdNotIn(List<String> values) {
addCriterion("device_id not in", values, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdBetween(String value1, String value2) {
addCriterion("device_id between", value1, value2, "deviceId");
return (Criteria) this;
}
public Criteria andDeviceIdNotBetween(String value1, String value2) {
addCriterion("device_id not between", value1, value2, "deviceId");
return (Criteria) this;
}
public Criteria andUidIsNull() {
addCriterion("`uid` is null");
return (Criteria) this;
}
public Criteria andUidIsNotNull() {
addCriterion("`uid` is not null");
return (Criteria) this;
}
public Criteria andUidEqualTo(String value) {
addCriterion("`uid` =", value, "uid");
return (Criteria) this;
}
public Criteria andUidNotEqualTo(String value) {
addCriterion("`uid` <>", value, "uid");
return (Criteria) this;
}
public Criteria andUidGreaterThan(String value) {
addCriterion("`uid` >", value, "uid");
return (Criteria) this;
}
public Criteria andUidGreaterThanOrEqualTo(String value) {
addCriterion("`uid` >=", value, "uid");
return (Criteria) this;
}
public Criteria andUidLessThan(String value) {
addCriterion("`uid` <", value, "uid");
return (Criteria) this;
}
public Criteria andUidLessThanOrEqualTo(String value) {
addCriterion("`uid` <=", value, "uid");
return (Criteria) this;
}
public Criteria andUidLike(String value) {
addCriterion("`uid` like", value, "uid");
return (Criteria) this;
}
public Criteria andUidNotLike(String value) {
addCriterion("`uid` not like", value, "uid");
return (Criteria) this;
}
public Criteria andUidIn(List<String> values) {
addCriterion("`uid` in", values, "uid");
return (Criteria) this;
}
public Criteria andUidNotIn(List<String> values) {
addCriterion("`uid` not in", values, "uid");
return (Criteria) this;
}
public Criteria andUidBetween(String value1, String value2) {
addCriterion("`uid` between", value1, value2, "uid");
return (Criteria) this;
}
public Criteria andUidNotBetween(String value1, String value2) {
addCriterion("`uid` not between", value1, value2, "uid");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeIsNull() {
addCriterion("device_order_code is null");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeIsNotNull() {
addCriterion("device_order_code is not null");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeEqualTo(String value) {
addCriterion("device_order_code =", value, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeNotEqualTo(String value) {
addCriterion("device_order_code <>", value, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeGreaterThan(String value) {
addCriterion("device_order_code >", value, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeGreaterThanOrEqualTo(String value) {
addCriterion("device_order_code >=", value, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeLessThan(String value) {
addCriterion("device_order_code <", value, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeLessThanOrEqualTo(String value) {
addCriterion("device_order_code <=", value, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeLike(String value) {
addCriterion("device_order_code like", value, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeNotLike(String value) {
addCriterion("device_order_code not like", value, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeIn(List<String> values) {
addCriterion("device_order_code in", values, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeNotIn(List<String> values) {
addCriterion("device_order_code not in", values, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeBetween(String value1, String value2) {
addCriterion("device_order_code between", value1, value2, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderCodeNotBetween(String value1, String value2) {
addCriterion("device_order_code not between", value1, value2, "deviceOrderCode");
return (Criteria) this;
}
public Criteria andDeviceOrderValueIsNull() {
addCriterion("device_order_value is null");
return (Criteria) this;
}
public Criteria andDeviceOrderValueIsNotNull() {
addCriterion("device_order_value is not null");
return (Criteria) this;
}
public Criteria andDeviceOrderValueEqualTo(String value) {
addCriterion("device_order_value =", value, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueNotEqualTo(String value) {
addCriterion("device_order_value <>", value, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueGreaterThan(String value) {
addCriterion("device_order_value >", value, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueGreaterThanOrEqualTo(String value) {
addCriterion("device_order_value >=", value, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueLessThan(String value) {
addCriterion("device_order_value <", value, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueLessThanOrEqualTo(String value) {
addCriterion("device_order_value <=", value, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueLike(String value) {
addCriterion("device_order_value like", value, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueNotLike(String value) {
addCriterion("device_order_value not like", value, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueIn(List<String> values) {
addCriterion("device_order_value in", values, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueNotIn(List<String> values) {
addCriterion("device_order_value not in", values, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueBetween(String value1, String value2) {
addCriterion("device_order_value between", value1, value2, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andDeviceOrderValueNotBetween(String value1, String value2) {
addCriterion("device_order_value not between", value1, value2, "deviceOrderValue");
return (Criteria) this;
}
public Criteria andCreatetimeIsNull() {
addCriterion("createtime is null");
return (Criteria) this;
}
public Criteria andCreatetimeIsNotNull() {
addCriterion("createtime is not null");
return (Criteria) this;
}
public Criteria andCreatetimeEqualTo(Date value) {
addCriterion("createtime =", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotEqualTo(Date value) {
addCriterion("createtime <>", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThan(Date value) {
addCriterion("createtime >", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
addCriterion("createtime >=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThan(Date value) {
addCriterion("createtime <", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
addCriterion("createtime <=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeIn(List<Date> values) {
addCriterion("createtime in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotIn(List<Date> values) {
addCriterion("createtime not in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeBetween(Date value1, Date value2) {
addCriterion("createtime between", value1, value2, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
addCriterion("createtime not between", value1, value2, "createtime");
return (Criteria) this;
}
public Criteria andUpdatetimeIsNull() {
addCriterion("updatetime is null");
return (Criteria) this;
}
public Criteria andUpdatetimeIsNotNull() {
addCriterion("updatetime is not null");
return (Criteria) this;
}
public Criteria andUpdatetimeEqualTo(Date value) {
addCriterion("updatetime =", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeNotEqualTo(Date value) {
addCriterion("updatetime <>", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeGreaterThan(Date value) {
addCriterion("updatetime >", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
addCriterion("updatetime >=", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeLessThan(Date value) {
addCriterion("updatetime <", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
addCriterion("updatetime <=", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeIn(List<Date> values) {
addCriterion("updatetime in", values, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeNotIn(List<Date> values) {
addCriterion("updatetime not in", values, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeBetween(Date value1, Date value2) {
addCriterion("updatetime between", value1, value2, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
addCriterion("updatetime not between", value1, value2, "updatetime");
return (Criteria) this;
}
public Criteria andProductKeyIsNull() {
addCriterion("product_key is null");
return (Criteria) this;
}
public Criteria andProductKeyIsNotNull() {
addCriterion("product_key is not null");
return (Criteria) this;
}
public Criteria andProductKeyEqualTo(String value) {
addCriterion("product_key =", value, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyNotEqualTo(String value) {
addCriterion("product_key <>", value, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyGreaterThan(String value) {
addCriterion("product_key >", value, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyGreaterThanOrEqualTo(String value) {
addCriterion("product_key >=", value, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyLessThan(String value) {
addCriterion("product_key <", value, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyLessThanOrEqualTo(String value) {
addCriterion("product_key <=", value, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyLike(String value) {
addCriterion("product_key like", value, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyNotLike(String value) {
addCriterion("product_key not like", value, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyIn(List<String> values) {
addCriterion("product_key in", values, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyNotIn(List<String> values) {
addCriterion("product_key not in", values, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyBetween(String value1, String value2) {
addCriterion("product_key between", value1, value2, "productKey");
return (Criteria) this;
}
public Criteria andProductKeyNotBetween(String value1, String value2) {
addCriterion("product_key not between", value1, value2, "productKey");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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 java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartProductExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartProductExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andProductNameIsNull() {
addCriterion("product_name is null");
return (Criteria) this;
}
public Criteria andProductNameIsNotNull() {
addCriterion("product_name is not null");
return (Criteria) this;
}
public Criteria andProductNameEqualTo(String value) {
addCriterion("product_name =", value, "productName");
return (Criteria) this;
}
public Criteria andProductNameNotEqualTo(String value) {
addCriterion("product_name <>", value, "productName");
return (Criteria) this;
}
public Criteria andProductNameGreaterThan(String value) {
addCriterion("product_name >", value, "productName");
return (Criteria) this;
}
public Criteria andProductNameGreaterThanOrEqualTo(String value) {
addCriterion("product_name >=", value, "productName");
return (Criteria) this;
}
public Criteria andProductNameLessThan(String value) {
addCriterion("product_name <", value, "productName");
return (Criteria) this;
}
public Criteria andProductNameLessThanOrEqualTo(String value) {
addCriterion("product_name <=", value, "productName");
return (Criteria) this;
}
public Criteria andProductNameLike(String value) {
addCriterion("product_name like", value, "productName");
return (Criteria) this;
}
public Criteria andProductNameNotLike(String value) {
addCriterion("product_name not like", value, "productName");
return (Criteria) this;
}
public Criteria andProductNameIn(List<String> values) {
addCriterion("product_name in", values, "productName");
return (Criteria) this;
}
public Criteria andProductNameNotIn(List<String> values) {
addCriterion("product_name not in", values, "productName");
return (Criteria) this;
}
public Criteria andProductNameBetween(String value1, String value2) {
addCriterion("product_name between", value1, value2, "productName");
return (Criteria) this;
}
public Criteria andProductNameNotBetween(String value1, String value2) {
addCriterion("product_name not between", value1, value2, "productName");
return (Criteria) this;
}
public Criteria andIconIsNull() {
addCriterion("icon is null");
return (Criteria) this;
}
public Criteria andIconIsNotNull() {
addCriterion("icon is not null");
return (Criteria) this;
}
public Criteria andIconEqualTo(Long value) {
addCriterion("icon =", value, "icon");
return (Criteria) this;
}
public Criteria andIconNotEqualTo(Long value) {
addCriterion("icon <>", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThan(Long value) {
addCriterion("icon >", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThanOrEqualTo(Long value) {
addCriterion("icon >=", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThan(Long value) {
addCriterion("icon <", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThanOrEqualTo(Long value) {
addCriterion("icon <=", value, "icon");
return (Criteria) this;
}
public Criteria andIconIn(List<Long> values) {
addCriterion("icon in", values, "icon");
return (Criteria) this;
}
public Criteria andIconNotIn(List<Long> values) {
addCriterion("icon not in", values, "icon");
return (Criteria) this;
}
public Criteria andIconBetween(Long value1, Long value2) {
addCriterion("icon between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andIconNotBetween(Long value1, Long value2) {
addCriterion("icon not between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andTypeIdIsNull() {
addCriterion("type_id is null");
return (Criteria) this;
}
public Criteria andTypeIdIsNotNull() {
addCriterion("type_id is not null");
return (Criteria) this;
}
public Criteria andTypeIdEqualTo(Long value) {
addCriterion("type_id =", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdNotEqualTo(Long value) {
addCriterion("type_id <>", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdGreaterThan(Long value) {
addCriterion("type_id >", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdGreaterThanOrEqualTo(Long value) {
addCriterion("type_id >=", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdLessThan(Long value) {
addCriterion("type_id <", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdLessThanOrEqualTo(Long value) {
addCriterion("type_id <=", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdIn(List<Long> values) {
addCriterion("type_id in", values, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdNotIn(List<Long> values) {
addCriterion("type_id not in", values, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdBetween(Long value1, Long value2) {
addCriterion("type_id between", value1, value2, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdNotBetween(Long value1, Long value2) {
addCriterion("type_id not between", value1, value2, "typeId");
return (Criteria) this;
}
public Criteria andShopProductIdIsNull() {
addCriterion("shop_product_id is null");
return (Criteria) this;
}
public Criteria andShopProductIdIsNotNull() {
addCriterion("shop_product_id is not null");
return (Criteria) this;
}
public Criteria andShopProductIdEqualTo(String value) {
addCriterion("shop_product_id =", value, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdNotEqualTo(String value) {
addCriterion("shop_product_id <>", value, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdGreaterThan(String value) {
addCriterion("shop_product_id >", value, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdGreaterThanOrEqualTo(String value) {
addCriterion("shop_product_id >=", value, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdLessThan(String value) {
addCriterion("shop_product_id <", value, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdLessThanOrEqualTo(String value) {
addCriterion("shop_product_id <=", value, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdLike(String value) {
addCriterion("shop_product_id like", value, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdNotLike(String value) {
addCriterion("shop_product_id not like", value, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdIn(List<String> values) {
addCriterion("shop_product_id in", values, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdNotIn(List<String> values) {
addCriterion("shop_product_id not in", values, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdBetween(String value1, String value2) {
addCriterion("shop_product_id between", value1, value2, "shopProductId");
return (Criteria) this;
}
public Criteria andShopProductIdNotBetween(String value1, String value2) {
addCriterion("shop_product_id not between", value1, value2, "shopProductId");
return (Criteria) this;
}
public Criteria andPlatformKeyIsNull() {
addCriterion("platform_key is null");
return (Criteria) this;
}
public Criteria andPlatformKeyIsNotNull() {
addCriterion("platform_key is not null");
return (Criteria) this;
}
public Criteria andPlatformKeyEqualTo(String value) {
addCriterion("platform_key =", value, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyNotEqualTo(String value) {
addCriterion("platform_key <>", value, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyGreaterThan(String value) {
addCriterion("platform_key >", value, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyGreaterThanOrEqualTo(String value) {
addCriterion("platform_key >=", value, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyLessThan(String value) {
addCriterion("platform_key <", value, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyLessThanOrEqualTo(String value) {
addCriterion("platform_key <=", value, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyLike(String value) {
addCriterion("platform_key like", value, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyNotLike(String value) {
addCriterion("platform_key not like", value, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyIn(List<String> values) {
addCriterion("platform_key in", values, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyNotIn(List<String> values) {
addCriterion("platform_key not in", values, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyBetween(String value1, String value2) {
addCriterion("platform_key between", value1, value2, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformKeyNotBetween(String value1, String value2) {
addCriterion("platform_key not between", value1, value2, "platformKey");
return (Criteria) this;
}
public Criteria andPlatformProductIdIsNull() {
addCriterion("platform_product_id is null");
return (Criteria) this;
}
public Criteria andPlatformProductIdIsNotNull() {
addCriterion("platform_product_id is not null");
return (Criteria) this;
}
public Criteria andPlatformProductIdEqualTo(String value) {
addCriterion("platform_product_id =", value, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdNotEqualTo(String value) {
addCriterion("platform_product_id <>", value, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdGreaterThan(String value) {
addCriterion("platform_product_id >", value, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdGreaterThanOrEqualTo(String value) {
addCriterion("platform_product_id >=", value, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdLessThan(String value) {
addCriterion("platform_product_id <", value, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdLessThanOrEqualTo(String value) {
addCriterion("platform_product_id <=", value, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdLike(String value) {
addCriterion("platform_product_id like", value, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdNotLike(String value) {
addCriterion("platform_product_id not like", value, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdIn(List<String> values) {
addCriterion("platform_product_id in", values, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdNotIn(List<String> values) {
addCriterion("platform_product_id not in", values, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdBetween(String value1, String value2) {
addCriterion("platform_product_id between", value1, value2, "platformProductId");
return (Criteria) this;
}
public Criteria andPlatformProductIdNotBetween(String value1, String value2) {
addCriterion("platform_product_id not between", value1, value2, "platformProductId");
return (Criteria) this;
}
public Criteria andNetworkKeyIsNull() {
addCriterion("network_key is null");
return (Criteria) this;
}
public Criteria andNetworkKeyIsNotNull() {
addCriterion("network_key is not null");
return (Criteria) this;
}
public Criteria andNetworkKeyEqualTo(String value) {
addCriterion("network_key =", value, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyNotEqualTo(String value) {
addCriterion("network_key <>", value, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyGreaterThan(String value) {
addCriterion("network_key >", value, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyGreaterThanOrEqualTo(String value) {
addCriterion("network_key >=", value, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyLessThan(String value) {
addCriterion("network_key <", value, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyLessThanOrEqualTo(String value) {
addCriterion("network_key <=", value, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyLike(String value) {
addCriterion("network_key like", value, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyNotLike(String value) {
addCriterion("network_key not like", value, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyIn(List<String> values) {
addCriterion("network_key in", values, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyNotIn(List<String> values) {
addCriterion("network_key not in", values, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyBetween(String value1, String value2) {
addCriterion("network_key between", value1, value2, "networkKey");
return (Criteria) this;
}
public Criteria andNetworkKeyNotBetween(String value1, String value2) {
addCriterion("network_key not between", value1, value2, "networkKey");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("`status` is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("`status` =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("`status` <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("`status` >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("`status` >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("`status` <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("`status` <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("`status` in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("`status` not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("`status` between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("`status` not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(Long value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(Long value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(Long value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(Long value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(Long value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(Long value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<Long> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<Long> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(Long value1, Long value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(Long value1, Long value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(Long value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(Long value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(Long value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(Long value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(Long value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(Long value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<Long> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<Long> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(Long value1, Long value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(Long value1, Long value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartProductTypeExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartProductTypeExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTypeNameIsNull() {
addCriterion("type_name is null");
return (Criteria) this;
}
public Criteria andTypeNameIsNotNull() {
addCriterion("type_name is not null");
return (Criteria) this;
}
public Criteria andTypeNameEqualTo(String value) {
addCriterion("type_name =", value, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameNotEqualTo(String value) {
addCriterion("type_name <>", value, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameGreaterThan(String value) {
addCriterion("type_name >", value, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameGreaterThanOrEqualTo(String value) {
addCriterion("type_name >=", value, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameLessThan(String value) {
addCriterion("type_name <", value, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameLessThanOrEqualTo(String value) {
addCriterion("type_name <=", value, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameLike(String value) {
addCriterion("type_name like", value, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameNotLike(String value) {
addCriterion("type_name not like", value, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameIn(List<String> values) {
addCriterion("type_name in", values, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameNotIn(List<String> values) {
addCriterion("type_name not in", values, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameBetween(String value1, String value2) {
addCriterion("type_name between", value1, value2, "typeName");
return (Criteria) this;
}
public Criteria andTypeNameNotBetween(String value1, String value2) {
addCriterion("type_name not between", value1, value2, "typeName");
return (Criteria) this;
}
public Criteria andCategoryKeyIsNull() {
addCriterion("category_key is null");
return (Criteria) this;
}
public Criteria andCategoryKeyIsNotNull() {
addCriterion("category_key is not null");
return (Criteria) this;
}
public Criteria andCategoryKeyEqualTo(String value) {
addCriterion("category_key =", value, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyNotEqualTo(String value) {
addCriterion("category_key <>", value, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyGreaterThan(String value) {
addCriterion("category_key >", value, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyGreaterThanOrEqualTo(String value) {
addCriterion("category_key >=", value, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyLessThan(String value) {
addCriterion("category_key <", value, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyLessThanOrEqualTo(String value) {
addCriterion("category_key <=", value, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyLike(String value) {
addCriterion("category_key like", value, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyNotLike(String value) {
addCriterion("category_key not like", value, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyIn(List<String> values) {
addCriterion("category_key in", values, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyNotIn(List<String> values) {
addCriterion("category_key not in", values, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyBetween(String value1, String value2) {
addCriterion("category_key between", value1, value2, "categoryKey");
return (Criteria) this;
}
public Criteria andCategoryKeyNotBetween(String value1, String value2) {
addCriterion("category_key not between", value1, value2, "categoryKey");
return (Criteria) this;
}
public Criteria andShopTagIsNull() {
addCriterion("shop_tag is null");
return (Criteria) this;
}
public Criteria andShopTagIsNotNull() {
addCriterion("shop_tag is not null");
return (Criteria) this;
}
public Criteria andShopTagEqualTo(String value) {
addCriterion("shop_tag =", value, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagNotEqualTo(String value) {
addCriterion("shop_tag <>", value, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagGreaterThan(String value) {
addCriterion("shop_tag >", value, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagGreaterThanOrEqualTo(String value) {
addCriterion("shop_tag >=", value, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagLessThan(String value) {
addCriterion("shop_tag <", value, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagLessThanOrEqualTo(String value) {
addCriterion("shop_tag <=", value, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagLike(String value) {
addCriterion("shop_tag like", value, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagNotLike(String value) {
addCriterion("shop_tag not like", value, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagIn(List<String> values) {
addCriterion("shop_tag in", values, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagNotIn(List<String> values) {
addCriterion("shop_tag not in", values, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagBetween(String value1, String value2) {
addCriterion("shop_tag between", value1, value2, "shopTag");
return (Criteria) this;
}
public Criteria andShopTagNotBetween(String value1, String value2) {
addCriterion("shop_tag not between", value1, value2, "shopTag");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(Long value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(Long value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(Long value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(Long value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(Long value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(Long value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<Long> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<Long> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(Long value1, Long value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(Long value1, Long value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(Long value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(Long value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(Long value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(Long value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(Long value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(Long value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<Long> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<Long> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(Long value1, Long value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(Long value1, Long value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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 java.util.ArrayList;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartProductTypeParamExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartProductTypeParamExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTypeIdIsNull() {
addCriterion("type_id is null");
return (Criteria) this;
}
public Criteria andTypeIdIsNotNull() {
addCriterion("type_id is not null");
return (Criteria) this;
}
public Criteria andTypeIdEqualTo(Long value) {
addCriterion("type_id =", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdNotEqualTo(Long value) {
addCriterion("type_id <>", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdGreaterThan(Long value) {
addCriterion("type_id >", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdGreaterThanOrEqualTo(Long value) {
addCriterion("type_id >=", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdLessThan(Long value) {
addCriterion("type_id <", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdLessThanOrEqualTo(Long value) {
addCriterion("type_id <=", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdIn(List<Long> values) {
addCriterion("type_id in", values, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdNotIn(List<Long> values) {
addCriterion("type_id not in", values, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdBetween(Long value1, Long value2) {
addCriterion("type_id between", value1, value2, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdNotBetween(Long value1, Long value2) {
addCriterion("type_id not between", value1, value2, "typeId");
return (Criteria) this;
}
public Criteria andDevideOrderCodeIsNull() {
addCriterion("devide_order_code is null");
return (Criteria) this;
}
public Criteria andDevideOrderCodeIsNotNull() {
addCriterion("devide_order_code is not null");
return (Criteria) this;
}
public Criteria andDevideOrderCodeEqualTo(String value) {
addCriterion("devide_order_code =", value, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeNotEqualTo(String value) {
addCriterion("devide_order_code <>", value, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeGreaterThan(String value) {
addCriterion("devide_order_code >", value, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeGreaterThanOrEqualTo(String value) {
addCriterion("devide_order_code >=", value, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeLessThan(String value) {
addCriterion("devide_order_code <", value, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeLessThanOrEqualTo(String value) {
addCriterion("devide_order_code <=", value, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeLike(String value) {
addCriterion("devide_order_code like", value, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeNotLike(String value) {
addCriterion("devide_order_code not like", value, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeIn(List<String> values) {
addCriterion("devide_order_code in", values, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeNotIn(List<String> values) {
addCriterion("devide_order_code not in", values, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeBetween(String value1, String value2) {
addCriterion("devide_order_code between", value1, value2, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderCodeNotBetween(String value1, String value2) {
addCriterion("devide_order_code not between", value1, value2, "devideOrderCode");
return (Criteria) this;
}
public Criteria andDevideOrderNameIsNull() {
addCriterion("devide_order_name is null");
return (Criteria) this;
}
public Criteria andDevideOrderNameIsNotNull() {
addCriterion("devide_order_name is not null");
return (Criteria) this;
}
public Criteria andDevideOrderNameEqualTo(String value) {
addCriterion("devide_order_name =", value, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameNotEqualTo(String value) {
addCriterion("devide_order_name <>", value, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameGreaterThan(String value) {
addCriterion("devide_order_name >", value, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameGreaterThanOrEqualTo(String value) {
addCriterion("devide_order_name >=", value, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameLessThan(String value) {
addCriterion("devide_order_name <", value, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameLessThanOrEqualTo(String value) {
addCriterion("devide_order_name <=", value, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameLike(String value) {
addCriterion("devide_order_name like", value, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameNotLike(String value) {
addCriterion("devide_order_name not like", value, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameIn(List<String> values) {
addCriterion("devide_order_name in", values, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameNotIn(List<String> values) {
addCriterion("devide_order_name not in", values, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameBetween(String value1, String value2) {
addCriterion("devide_order_name between", value1, value2, "devideOrderName");
return (Criteria) this;
}
public Criteria andDevideOrderNameNotBetween(String value1, String value2) {
addCriterion("devide_order_name not between", value1, value2, "devideOrderName");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("`status` is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(String value) {
addCriterion("`status` =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(String value) {
addCriterion("`status` <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(String value) {
addCriterion("`status` >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(String value) {
addCriterion("`status` >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(String value) {
addCriterion("`status` <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(String value) {
addCriterion("`status` <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLike(String value) {
addCriterion("`status` like", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotLike(String value) {
addCriterion("`status` not like", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<String> values) {
addCriterion("`status` in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<String> values) {
addCriterion("`status` not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(String value1, String value2) {
addCriterion("`status` between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(String value1, String value2) {
addCriterion("`status` not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeIsNull() {
addCriterion("devide_order_valuetype is null");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeIsNotNull() {
addCriterion("devide_order_valuetype is not null");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeEqualTo(String value) {
addCriterion("devide_order_valuetype =", value, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeNotEqualTo(String value) {
addCriterion("devide_order_valuetype <>", value, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeGreaterThan(String value) {
addCriterion("devide_order_valuetype >", value, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeGreaterThanOrEqualTo(String value) {
addCriterion("devide_order_valuetype >=", value, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeLessThan(String value) {
addCriterion("devide_order_valuetype <", value, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeLessThanOrEqualTo(String value) {
addCriterion("devide_order_valuetype <=", value, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeLike(String value) {
addCriterion("devide_order_valuetype like", value, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeNotLike(String value) {
addCriterion("devide_order_valuetype not like", value, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeIn(List<String> values) {
addCriterion("devide_order_valuetype in", values, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeNotIn(List<String> values) {
addCriterion("devide_order_valuetype not in", values, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeBetween(String value1, String value2) {
addCriterion("devide_order_valuetype between", value1, value2, "devideOrderValuetype");
return (Criteria) this;
}
public Criteria andDevideOrderValuetypeNotBetween(String value1, String value2) {
addCriterion("devide_order_valuetype not between", value1, value2,
"devideOrderValuetype");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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 java.util.ArrayList;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartScenseDataExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartScenseDataExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTemplateIdIsNull() {
addCriterion("template_id is null");
return (Criteria) this;
}
public Criteria andTemplateIdIsNotNull() {
addCriterion("template_id is not null");
return (Criteria) this;
}
public Criteria andTemplateIdEqualTo(Long value) {
addCriterion("template_id =", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotEqualTo(Long value) {
addCriterion("template_id <>", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdGreaterThan(Long value) {
addCriterion("template_id >", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdGreaterThanOrEqualTo(Long value) {
addCriterion("template_id >=", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdLessThan(Long value) {
addCriterion("template_id <", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdLessThanOrEqualTo(Long value) {
addCriterion("template_id <=", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdIn(List<Long> values) {
addCriterion("template_id in", values, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotIn(List<Long> values) {
addCriterion("template_id not in", values, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdBetween(Long value1, Long value2) {
addCriterion("template_id between", value1, value2, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotBetween(Long value1, Long value2) {
addCriterion("template_id not between", value1, value2, "templateId");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("`type` is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("`type` is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("`type` =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("`type` <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("`type` >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("`type` >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("`type` <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("`type` <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("`type` in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("`type` not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("`type` between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("`type` not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Byte value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Byte value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Byte value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Byte value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Byte value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Byte value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Byte> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Byte> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Byte value1, Byte value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Byte value1, Byte value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andParamKeyIsNull() {
addCriterion("param_key is null");
return (Criteria) this;
}
public Criteria andParamKeyIsNotNull() {
addCriterion("param_key is not null");
return (Criteria) this;
}
public Criteria andParamKeyEqualTo(String value) {
addCriterion("param_key =", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotEqualTo(String value) {
addCriterion("param_key <>", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyGreaterThan(String value) {
addCriterion("param_key >", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyGreaterThanOrEqualTo(String value) {
addCriterion("param_key >=", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyLessThan(String value) {
addCriterion("param_key <", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyLessThanOrEqualTo(String value) {
addCriterion("param_key <=", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyLike(String value) {
addCriterion("param_key like", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotLike(String value) {
addCriterion("param_key not like", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyIn(List<String> values) {
addCriterion("param_key in", values, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotIn(List<String> values) {
addCriterion("param_key not in", values, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyBetween(String value1, String value2) {
addCriterion("param_key between", value1, value2, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotBetween(String value1, String value2) {
addCriterion("param_key not between", value1, value2, "paramKey");
return (Criteria) this;
}
public Criteria andParamValueIsNull() {
addCriterion("param_value is null");
return (Criteria) this;
}
public Criteria andParamValueIsNotNull() {
addCriterion("param_value is not null");
return (Criteria) this;
}
public Criteria andParamValueEqualTo(String value) {
addCriterion("param_value =", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotEqualTo(String value) {
addCriterion("param_value <>", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueGreaterThan(String value) {
addCriterion("param_value >", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueGreaterThanOrEqualTo(String value) {
addCriterion("param_value >=", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueLessThan(String value) {
addCriterion("param_value <", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueLessThanOrEqualTo(String value) {
addCriterion("param_value <=", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueLike(String value) {
addCriterion("param_value like", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotLike(String value) {
addCriterion("param_value not like", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueIn(List<String> values) {
addCriterion("param_value in", values, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotIn(List<String> values) {
addCriterion("param_value not in", values, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueBetween(String value1, String value2) {
addCriterion("param_value between", value1, value2, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotBetween(String value1, String value2) {
addCriterion("param_value not between", value1, value2, "paramValue");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
package com.glsx.smart.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartScenseExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartScenseExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andScenesNameIsNull() {
addCriterion("scenes_name is null");
return (Criteria) this;
}
public Criteria andScenesNameIsNotNull() {
addCriterion("scenes_name is not null");
return (Criteria) this;
}
public Criteria andScenesNameEqualTo(String value) {
addCriterion("scenes_name =", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameNotEqualTo(String value) {
addCriterion("scenes_name <>", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameGreaterThan(String value) {
addCriterion("scenes_name >", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameGreaterThanOrEqualTo(String value) {
addCriterion("scenes_name >=", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameLessThan(String value) {
addCriterion("scenes_name <", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameLessThanOrEqualTo(String value) {
addCriterion("scenes_name <=", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameLike(String value) {
addCriterion("scenes_name like", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameNotLike(String value) {
addCriterion("scenes_name not like", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameIn(List<String> values) {
addCriterion("scenes_name in", values, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameNotIn(List<String> values) {
addCriterion("scenes_name not in", values, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameBetween(String value1, String value2) {
addCriterion("scenes_name between", value1, value2, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameNotBetween(String value1, String value2) {
addCriterion("scenes_name not between", value1, value2, "scenesName");
return (Criteria) this;
}
public Criteria andTypeKeyIsNull() {
addCriterion("type_key is null");
return (Criteria) this;
}
public Criteria andTypeKeyIsNotNull() {
addCriterion("type_key is not null");
return (Criteria) this;
}
public Criteria andTypeKeyEqualTo(String value) {
addCriterion("type_key =", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyNotEqualTo(String value) {
addCriterion("type_key <>", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyGreaterThan(String value) {
addCriterion("type_key >", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyGreaterThanOrEqualTo(String value) {
addCriterion("type_key >=", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyLessThan(String value) {
addCriterion("type_key <", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyLessThanOrEqualTo(String value) {
addCriterion("type_key <=", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyLike(String value) {
addCriterion("type_key like", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyNotLike(String value) {
addCriterion("type_key not like", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyIn(List<String> values) {
addCriterion("type_key in", values, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyNotIn(List<String> values) {
addCriterion("type_key not in", values, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyBetween(String value1, String value2) {
addCriterion("type_key between", value1, value2, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyNotBetween(String value1, String value2) {
addCriterion("type_key not between", value1, value2, "typeKey");
return (Criteria) this;
}
public Criteria andIconIsNull() {
addCriterion("icon is null");
return (Criteria) this;
}
public Criteria andIconIsNotNull() {
addCriterion("icon is not null");
return (Criteria) this;
}
public Criteria andIconEqualTo(Long value) {
addCriterion("icon =", value, "icon");
return (Criteria) this;
}
public Criteria andIconNotEqualTo(Long value) {
addCriterion("icon <>", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThan(Long value) {
addCriterion("icon >", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThanOrEqualTo(Long value) {
addCriterion("icon >=", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThan(Long value) {
addCriterion("icon <", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThanOrEqualTo(Long value) {
addCriterion("icon <=", value, "icon");
return (Criteria) this;
}
public Criteria andIconIn(List<Long> values) {
addCriterion("icon in", values, "icon");
return (Criteria) this;
}
public Criteria andIconNotIn(List<Long> values) {
addCriterion("icon not in", values, "icon");
return (Criteria) this;
}
public Criteria andIconBetween(Long value1, Long value2) {
addCriterion("icon between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andIconNotBetween(Long value1, Long value2) {
addCriterion("icon not between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andBackPicIsNull() {
addCriterion("back_pic is null");
return (Criteria) this;
}
public Criteria andBackPicIsNotNull() {
addCriterion("back_pic is not null");
return (Criteria) this;
}
public Criteria andBackPicEqualTo(Long value) {
addCriterion("back_pic =", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicNotEqualTo(Long value) {
addCriterion("back_pic <>", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicGreaterThan(Long value) {
addCriterion("back_pic >", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicGreaterThanOrEqualTo(Long value) {
addCriterion("back_pic >=", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicLessThan(Long value) {
addCriterion("back_pic <", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicLessThanOrEqualTo(Long value) {
addCriterion("back_pic <=", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicIn(List<Long> values) {
addCriterion("back_pic in", values, "backPic");
return (Criteria) this;
}
public Criteria andBackPicNotIn(List<Long> values) {
addCriterion("back_pic not in", values, "backPic");
return (Criteria) this;
}
public Criteria andBackPicBetween(Long value1, Long value2) {
addCriterion("back_pic between", value1, value2, "backPic");
return (Criteria) this;
}
public Criteria andBackPicNotBetween(Long value1, Long value2) {
addCriterion("back_pic not between", value1, value2, "backPic");
return (Criteria) this;
}
public Criteria andViewTimesIsNull() {
addCriterion("view_times is null");
return (Criteria) this;
}
public Criteria andViewTimesIsNotNull() {
addCriterion("view_times is not null");
return (Criteria) this;
}
public Criteria andViewTimesEqualTo(Long value) {
addCriterion("view_times =", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesNotEqualTo(Long value) {
addCriterion("view_times <>", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesGreaterThan(Long value) {
addCriterion("view_times >", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesGreaterThanOrEqualTo(Long value) {
addCriterion("view_times >=", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesLessThan(Long value) {
addCriterion("view_times <", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesLessThanOrEqualTo(Long value) {
addCriterion("view_times <=", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesIn(List<Long> values) {
addCriterion("view_times in", values, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesNotIn(List<Long> values) {
addCriterion("view_times not in", values, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesBetween(Long value1, Long value2) {
addCriterion("view_times between", value1, value2, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesNotBetween(Long value1, Long value2) {
addCriterion("view_times not between", value1, value2, "viewTimes");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andConditionRuleIsNull() {
addCriterion("condition_rule is null");
return (Criteria) this;
}
public Criteria andConditionRuleIsNotNull() {
addCriterion("condition_rule is not null");
return (Criteria) this;
}
public Criteria andConditionRuleEqualTo(Byte value) {
addCriterion("condition_rule =", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleNotEqualTo(Byte value) {
addCriterion("condition_rule <>", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleGreaterThan(Byte value) {
addCriterion("condition_rule >", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleGreaterThanOrEqualTo(Byte value) {
addCriterion("condition_rule >=", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleLessThan(Byte value) {
addCriterion("condition_rule <", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleLessThanOrEqualTo(Byte value) {
addCriterion("condition_rule <=", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleIn(List<Byte> values) {
addCriterion("condition_rule in", values, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleNotIn(List<Byte> values) {
addCriterion("condition_rule not in", values, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleBetween(Byte value1, Byte value2) {
addCriterion("condition_rule between", value1, value2, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleNotBetween(Byte value1, Byte value2) {
addCriterion("condition_rule not between", value1, value2, "conditionRule");
return (Criteria) this;
}
public Criteria andExecuteCycleIsNull() {
addCriterion("execute_cycle is null");
return (Criteria) this;
}
public Criteria andExecuteCycleIsNotNull() {
addCriterion("execute_cycle is not null");
return (Criteria) this;
}
public Criteria andExecuteCycleEqualTo(Byte value) {
addCriterion("execute_cycle =", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleNotEqualTo(Byte value) {
addCriterion("execute_cycle <>", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleGreaterThan(Byte value) {
addCriterion("execute_cycle >", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleGreaterThanOrEqualTo(Byte value) {
addCriterion("execute_cycle >=", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleLessThan(Byte value) {
addCriterion("execute_cycle <", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleLessThanOrEqualTo(Byte value) {
addCriterion("execute_cycle <=", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleIn(List<Byte> values) {
addCriterion("execute_cycle in", values, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleNotIn(List<Byte> values) {
addCriterion("execute_cycle not in", values, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleBetween(Byte value1, Byte value2) {
addCriterion("execute_cycle between", value1, value2, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleNotBetween(Byte value1, Byte value2) {
addCriterion("execute_cycle not between", value1, value2, "executeCycle");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("`status` is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("`status` =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("`status` <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("`status` >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("`status` >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("`status` <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("`status` <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("`status` in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("`status` not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("`status` between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("`status` not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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 java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartScenseTemplateExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartScenseTemplateExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andScenesNameIsNull() {
addCriterion("scenes_name is null");
return (Criteria) this;
}
public Criteria andScenesNameIsNotNull() {
addCriterion("scenes_name is not null");
return (Criteria) this;
}
public Criteria andScenesNameEqualTo(String value) {
addCriterion("scenes_name =", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameNotEqualTo(String value) {
addCriterion("scenes_name <>", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameGreaterThan(String value) {
addCriterion("scenes_name >", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameGreaterThanOrEqualTo(String value) {
addCriterion("scenes_name >=", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameLessThan(String value) {
addCriterion("scenes_name <", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameLessThanOrEqualTo(String value) {
addCriterion("scenes_name <=", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameLike(String value) {
addCriterion("scenes_name like", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameNotLike(String value) {
addCriterion("scenes_name not like", value, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameIn(List<String> values) {
addCriterion("scenes_name in", values, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameNotIn(List<String> values) {
addCriterion("scenes_name not in", values, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameBetween(String value1, String value2) {
addCriterion("scenes_name between", value1, value2, "scenesName");
return (Criteria) this;
}
public Criteria andScenesNameNotBetween(String value1, String value2) {
addCriterion("scenes_name not between", value1, value2, "scenesName");
return (Criteria) this;
}
public Criteria andTypeKeyIsNull() {
addCriterion("type_key is null");
return (Criteria) this;
}
public Criteria andTypeKeyIsNotNull() {
addCriterion("type_key is not null");
return (Criteria) this;
}
public Criteria andTypeKeyEqualTo(String value) {
addCriterion("type_key =", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyNotEqualTo(String value) {
addCriterion("type_key <>", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyGreaterThan(String value) {
addCriterion("type_key >", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyGreaterThanOrEqualTo(String value) {
addCriterion("type_key >=", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyLessThan(String value) {
addCriterion("type_key <", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyLessThanOrEqualTo(String value) {
addCriterion("type_key <=", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyLike(String value) {
addCriterion("type_key like", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyNotLike(String value) {
addCriterion("type_key not like", value, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyIn(List<String> values) {
addCriterion("type_key in", values, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyNotIn(List<String> values) {
addCriterion("type_key not in", values, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyBetween(String value1, String value2) {
addCriterion("type_key between", value1, value2, "typeKey");
return (Criteria) this;
}
public Criteria andTypeKeyNotBetween(String value1, String value2) {
addCriterion("type_key not between", value1, value2, "typeKey");
return (Criteria) this;
}
public Criteria andIconIsNull() {
addCriterion("icon is null");
return (Criteria) this;
}
public Criteria andIconIsNotNull() {
addCriterion("icon is not null");
return (Criteria) this;
}
public Criteria andIconEqualTo(Long value) {
addCriterion("icon =", value, "icon");
return (Criteria) this;
}
public Criteria andIconNotEqualTo(Long value) {
addCriterion("icon <>", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThan(Long value) {
addCriterion("icon >", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThanOrEqualTo(Long value) {
addCriterion("icon >=", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThan(Long value) {
addCriterion("icon <", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThanOrEqualTo(Long value) {
addCriterion("icon <=", value, "icon");
return (Criteria) this;
}
public Criteria andIconIn(List<Long> values) {
addCriterion("icon in", values, "icon");
return (Criteria) this;
}
public Criteria andIconNotIn(List<Long> values) {
addCriterion("icon not in", values, "icon");
return (Criteria) this;
}
public Criteria andIconBetween(Long value1, Long value2) {
addCriterion("icon between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andIconNotBetween(Long value1, Long value2) {
addCriterion("icon not between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andBackPicIsNull() {
addCriterion("back_pic is null");
return (Criteria) this;
}
public Criteria andBackPicIsNotNull() {
addCriterion("back_pic is not null");
return (Criteria) this;
}
public Criteria andBackPicEqualTo(Long value) {
addCriterion("back_pic =", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicNotEqualTo(Long value) {
addCriterion("back_pic <>", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicGreaterThan(Long value) {
addCriterion("back_pic >", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicGreaterThanOrEqualTo(Long value) {
addCriterion("back_pic >=", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicLessThan(Long value) {
addCriterion("back_pic <", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicLessThanOrEqualTo(Long value) {
addCriterion("back_pic <=", value, "backPic");
return (Criteria) this;
}
public Criteria andBackPicIn(List<Long> values) {
addCriterion("back_pic in", values, "backPic");
return (Criteria) this;
}
public Criteria andBackPicNotIn(List<Long> values) {
addCriterion("back_pic not in", values, "backPic");
return (Criteria) this;
}
public Criteria andBackPicBetween(Long value1, Long value2) {
addCriterion("back_pic between", value1, value2, "backPic");
return (Criteria) this;
}
public Criteria andBackPicNotBetween(Long value1, Long value2) {
addCriterion("back_pic not between", value1, value2, "backPic");
return (Criteria) this;
}
public Criteria andViewTimesIsNull() {
addCriterion("view_times is null");
return (Criteria) this;
}
public Criteria andViewTimesIsNotNull() {
addCriterion("view_times is not null");
return (Criteria) this;
}
public Criteria andViewTimesEqualTo(Long value) {
addCriterion("view_times =", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesNotEqualTo(Long value) {
addCriterion("view_times <>", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesGreaterThan(Long value) {
addCriterion("view_times >", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesGreaterThanOrEqualTo(Long value) {
addCriterion("view_times >=", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesLessThan(Long value) {
addCriterion("view_times <", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesLessThanOrEqualTo(Long value) {
addCriterion("view_times <=", value, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesIn(List<Long> values) {
addCriterion("view_times in", values, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesNotIn(List<Long> values) {
addCriterion("view_times not in", values, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesBetween(Long value1, Long value2) {
addCriterion("view_times between", value1, value2, "viewTimes");
return (Criteria) this;
}
public Criteria andViewTimesNotBetween(Long value1, Long value2) {
addCriterion("view_times not between", value1, value2, "viewTimes");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andConditionRuleIsNull() {
addCriterion("condition_rule is null");
return (Criteria) this;
}
public Criteria andConditionRuleIsNotNull() {
addCriterion("condition_rule is not null");
return (Criteria) this;
}
public Criteria andConditionRuleEqualTo(Byte value) {
addCriterion("condition_rule =", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleNotEqualTo(Byte value) {
addCriterion("condition_rule <>", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleGreaterThan(Byte value) {
addCriterion("condition_rule >", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleGreaterThanOrEqualTo(Byte value) {
addCriterion("condition_rule >=", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleLessThan(Byte value) {
addCriterion("condition_rule <", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleLessThanOrEqualTo(Byte value) {
addCriterion("condition_rule <=", value, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleIn(List<Byte> values) {
addCriterion("condition_rule in", values, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleNotIn(List<Byte> values) {
addCriterion("condition_rule not in", values, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleBetween(Byte value1, Byte value2) {
addCriterion("condition_rule between", value1, value2, "conditionRule");
return (Criteria) this;
}
public Criteria andConditionRuleNotBetween(Byte value1, Byte value2) {
addCriterion("condition_rule not between", value1, value2, "conditionRule");
return (Criteria) this;
}
public Criteria andExecuteCycleIsNull() {
addCriterion("execute_cycle is null");
return (Criteria) this;
}
public Criteria andExecuteCycleIsNotNull() {
addCriterion("execute_cycle is not null");
return (Criteria) this;
}
public Criteria andExecuteCycleEqualTo(Byte value) {
addCriterion("execute_cycle =", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleNotEqualTo(Byte value) {
addCriterion("execute_cycle <>", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleGreaterThan(Byte value) {
addCriterion("execute_cycle >", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleGreaterThanOrEqualTo(Byte value) {
addCriterion("execute_cycle >=", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleLessThan(Byte value) {
addCriterion("execute_cycle <", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleLessThanOrEqualTo(Byte value) {
addCriterion("execute_cycle <=", value, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleIn(List<Byte> values) {
addCriterion("execute_cycle in", values, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleNotIn(List<Byte> values) {
addCriterion("execute_cycle not in", values, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleBetween(Byte value1, Byte value2) {
addCriterion("execute_cycle between", value1, value2, "executeCycle");
return (Criteria) this;
}
public Criteria andExecuteCycleNotBetween(Byte value1, Byte value2) {
addCriterion("execute_cycle not between", value1, value2, "executeCycle");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("`status` is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("`status` =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("`status` <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("`status` >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("`status` >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("`status` <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("`status` <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("`status` in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("`status` not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("`status` between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("`status` not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(Long value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(Long value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(Long value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(Long value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(Long value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(Long value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<Long> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<Long> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(Long value1, Long value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(Long value1, Long value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(Long value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(Long value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(Long value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(Long value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(Long value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(Long value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<Long> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<Long> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(Long value1, Long value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(Long value1, Long value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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 java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartSysCodeExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartSysCodeExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andDictTypeIsNull() {
addCriterion("dict_type is null");
return (Criteria) this;
}
public Criteria andDictTypeIsNotNull() {
addCriterion("dict_type is not null");
return (Criteria) this;
}
public Criteria andDictTypeEqualTo(String value) {
addCriterion("dict_type =", value, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeNotEqualTo(String value) {
addCriterion("dict_type <>", value, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeGreaterThan(String value) {
addCriterion("dict_type >", value, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeGreaterThanOrEqualTo(String value) {
addCriterion("dict_type >=", value, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeLessThan(String value) {
addCriterion("dict_type <", value, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeLessThanOrEqualTo(String value) {
addCriterion("dict_type <=", value, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeLike(String value) {
addCriterion("dict_type like", value, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeNotLike(String value) {
addCriterion("dict_type not like", value, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeIn(List<String> values) {
addCriterion("dict_type in", values, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeNotIn(List<String> values) {
addCriterion("dict_type not in", values, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeBetween(String value1, String value2) {
addCriterion("dict_type between", value1, value2, "dictType");
return (Criteria) this;
}
public Criteria andDictTypeNotBetween(String value1, String value2) {
addCriterion("dict_type not between", value1, value2, "dictType");
return (Criteria) this;
}
public Criteria andDictKeyIsNull() {
addCriterion("dict_key is null");
return (Criteria) this;
}
public Criteria andDictKeyIsNotNull() {
addCriterion("dict_key is not null");
return (Criteria) this;
}
public Criteria andDictKeyEqualTo(String value) {
addCriterion("dict_key =", value, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyNotEqualTo(String value) {
addCriterion("dict_key <>", value, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyGreaterThan(String value) {
addCriterion("dict_key >", value, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyGreaterThanOrEqualTo(String value) {
addCriterion("dict_key >=", value, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyLessThan(String value) {
addCriterion("dict_key <", value, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyLessThanOrEqualTo(String value) {
addCriterion("dict_key <=", value, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyLike(String value) {
addCriterion("dict_key like", value, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyNotLike(String value) {
addCriterion("dict_key not like", value, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyIn(List<String> values) {
addCriterion("dict_key in", values, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyNotIn(List<String> values) {
addCriterion("dict_key not in", values, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyBetween(String value1, String value2) {
addCriterion("dict_key between", value1, value2, "dictKey");
return (Criteria) this;
}
public Criteria andDictKeyNotBetween(String value1, String value2) {
addCriterion("dict_key not between", value1, value2, "dictKey");
return (Criteria) this;
}
public Criteria andDictValueIsNull() {
addCriterion("dict_value is null");
return (Criteria) this;
}
public Criteria andDictValueIsNotNull() {
addCriterion("dict_value is not null");
return (Criteria) this;
}
public Criteria andDictValueEqualTo(String value) {
addCriterion("dict_value =", value, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueNotEqualTo(String value) {
addCriterion("dict_value <>", value, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueGreaterThan(String value) {
addCriterion("dict_value >", value, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueGreaterThanOrEqualTo(String value) {
addCriterion("dict_value >=", value, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueLessThan(String value) {
addCriterion("dict_value <", value, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueLessThanOrEqualTo(String value) {
addCriterion("dict_value <=", value, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueLike(String value) {
addCriterion("dict_value like", value, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueNotLike(String value) {
addCriterion("dict_value not like", value, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueIn(List<String> values) {
addCriterion("dict_value in", values, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueNotIn(List<String> values) {
addCriterion("dict_value not in", values, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueBetween(String value1, String value2) {
addCriterion("dict_value between", value1, value2, "dictValue");
return (Criteria) this;
}
public Criteria andDictValueNotBetween(String value1, String value2) {
addCriterion("dict_value not between", value1, value2, "dictValue");
return (Criteria) this;
}
public Criteria andParentKeyIsNull() {
addCriterion("parent_key is null");
return (Criteria) this;
}
public Criteria andParentKeyIsNotNull() {
addCriterion("parent_key is not null");
return (Criteria) this;
}
public Criteria andParentKeyEqualTo(String value) {
addCriterion("parent_key =", value, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyNotEqualTo(String value) {
addCriterion("parent_key <>", value, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyGreaterThan(String value) {
addCriterion("parent_key >", value, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyGreaterThanOrEqualTo(String value) {
addCriterion("parent_key >=", value, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyLessThan(String value) {
addCriterion("parent_key <", value, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyLessThanOrEqualTo(String value) {
addCriterion("parent_key <=", value, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyLike(String value) {
addCriterion("parent_key like", value, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyNotLike(String value) {
addCriterion("parent_key not like", value, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyIn(List<String> values) {
addCriterion("parent_key in", values, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyNotIn(List<String> values) {
addCriterion("parent_key not in", values, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyBetween(String value1, String value2) {
addCriterion("parent_key between", value1, value2, "parentKey");
return (Criteria) this;
}
public Criteria andParentKeyNotBetween(String value1, String value2) {
addCriterion("parent_key not between", value1, value2, "parentKey");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Byte value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Byte value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Byte value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Byte value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Byte value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Byte value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Byte> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Byte> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Byte value1, Byte value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Byte value1, Byte value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("`status` is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("`status` =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("`status` <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("`status` >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("`status` >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("`status` <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("`status` <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("`status` in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("`status` not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("`status` between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("`status` not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andLevelIsNull() {
addCriterion("`level` is null");
return (Criteria) this;
}
public Criteria andLevelIsNotNull() {
addCriterion("`level` is not null");
return (Criteria) this;
}
public Criteria andLevelEqualTo(Byte value) {
addCriterion("`level` =", value, "level");
return (Criteria) this;
}
public Criteria andLevelNotEqualTo(Byte value) {
addCriterion("`level` <>", value, "level");
return (Criteria) this;
}
public Criteria andLevelGreaterThan(Byte value) {
addCriterion("`level` >", value, "level");
return (Criteria) this;
}
public Criteria andLevelGreaterThanOrEqualTo(Byte value) {
addCriterion("`level` >=", value, "level");
return (Criteria) this;
}
public Criteria andLevelLessThan(Byte value) {
addCriterion("`level` <", value, "level");
return (Criteria) this;
}
public Criteria andLevelLessThanOrEqualTo(Byte value) {
addCriterion("`level` <=", value, "level");
return (Criteria) this;
}
public Criteria andLevelIn(List<Byte> values) {
addCriterion("`level` in", values, "level");
return (Criteria) this;
}
public Criteria andLevelNotIn(List<Byte> values) {
addCriterion("`level` not in", values, "level");
return (Criteria) this;
}
public Criteria andLevelBetween(Byte value1, Byte value2) {
addCriterion("`level` between", value1, value2, "level");
return (Criteria) this;
}
public Criteria andLevelNotBetween(Byte value1, Byte value2) {
addCriterion("`level` not between", value1, value2, "level");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(Long value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(Long value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(Long value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(Long value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(Long value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(Long value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<Long> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<Long> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(Long value1, Long value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(Long value1, Long value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(Long value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(Long value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(Long value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(Long value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(Long value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(Long value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<Long> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<Long> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(Long value1, Long value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(Long value1, Long value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartSysFileExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartSysFileExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("`name` is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("`name` is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("`name` =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("`name` <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("`name` >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("`name` >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("`name` <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("`name` <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("`name` like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("`name` not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("`name` in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("`name` not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("`name` between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("`name` not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andUrlIsNull() {
addCriterion("url is null");
return (Criteria) this;
}
public Criteria andUrlIsNotNull() {
addCriterion("url is not null");
return (Criteria) this;
}
public Criteria andUrlEqualTo(String value) {
addCriterion("url =", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotEqualTo(String value) {
addCriterion("url <>", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThan(String value) {
addCriterion("url >", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThanOrEqualTo(String value) {
addCriterion("url >=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThan(String value) {
addCriterion("url <", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThanOrEqualTo(String value) {
addCriterion("url <=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLike(String value) {
addCriterion("url like", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotLike(String value) {
addCriterion("url not like", value, "url");
return (Criteria) this;
}
public Criteria andUrlIn(List<String> values) {
addCriterion("url in", values, "url");
return (Criteria) this;
}
public Criteria andUrlNotIn(List<String> values) {
addCriterion("url not in", values, "url");
return (Criteria) this;
}
public Criteria andUrlBetween(String value1, String value2) {
addCriterion("url between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andUrlNotBetween(String value1, String value2) {
addCriterion("url not between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("`type` is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("`type` is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("`type` =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("`type` <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("`type` >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("`type` >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("`type` <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("`type` <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("`type` in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("`type` not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("`type` between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("`type` not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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 java.util.ArrayList;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartTemplateParamExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartTemplateParamExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTemplateIdIsNull() {
addCriterion("template_id is null");
return (Criteria) this;
}
public Criteria andTemplateIdIsNotNull() {
addCriterion("template_id is not null");
return (Criteria) this;
}
public Criteria andTemplateIdEqualTo(Long value) {
addCriterion("template_id =", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotEqualTo(Long value) {
addCriterion("template_id <>", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdGreaterThan(Long value) {
addCriterion("template_id >", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdGreaterThanOrEqualTo(Long value) {
addCriterion("template_id >=", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdLessThan(Long value) {
addCriterion("template_id <", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdLessThanOrEqualTo(Long value) {
addCriterion("template_id <=", value, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdIn(List<Long> values) {
addCriterion("template_id in", values, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotIn(List<Long> values) {
addCriterion("template_id not in", values, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdBetween(Long value1, Long value2) {
addCriterion("template_id between", value1, value2, "templateId");
return (Criteria) this;
}
public Criteria andTemplateIdNotBetween(Long value1, Long value2) {
addCriterion("template_id not between", value1, value2, "templateId");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("`type` is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("`type` is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("`type` =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("`type` <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("`type` >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("`type` >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("`type` <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("`type` <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("`type` in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("`type` not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("`type` between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("`type` not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Byte value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Byte value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Byte value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Byte value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Byte value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Byte value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Byte> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Byte> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Byte value1, Byte value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Byte value1, Byte value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andParamKeyIsNull() {
addCriterion("param_key is null");
return (Criteria) this;
}
public Criteria andParamKeyIsNotNull() {
addCriterion("param_key is not null");
return (Criteria) this;
}
public Criteria andParamKeyEqualTo(String value) {
addCriterion("param_key =", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotEqualTo(String value) {
addCriterion("param_key <>", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyGreaterThan(String value) {
addCriterion("param_key >", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyGreaterThanOrEqualTo(String value) {
addCriterion("param_key >=", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyLessThan(String value) {
addCriterion("param_key <", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyLessThanOrEqualTo(String value) {
addCriterion("param_key <=", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyLike(String value) {
addCriterion("param_key like", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotLike(String value) {
addCriterion("param_key not like", value, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyIn(List<String> values) {
addCriterion("param_key in", values, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotIn(List<String> values) {
addCriterion("param_key not in", values, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyBetween(String value1, String value2) {
addCriterion("param_key between", value1, value2, "paramKey");
return (Criteria) this;
}
public Criteria andParamKeyNotBetween(String value1, String value2) {
addCriterion("param_key not between", value1, value2, "paramKey");
return (Criteria) this;
}
public Criteria andParamValueIsNull() {
addCriterion("param_value is null");
return (Criteria) this;
}
public Criteria andParamValueIsNotNull() {
addCriterion("param_value is not null");
return (Criteria) this;
}
public Criteria andParamValueEqualTo(String value) {
addCriterion("param_value =", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotEqualTo(String value) {
addCriterion("param_value <>", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueGreaterThan(String value) {
addCriterion("param_value >", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueGreaterThanOrEqualTo(String value) {
addCriterion("param_value >=", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueLessThan(String value) {
addCriterion("param_value <", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueLessThanOrEqualTo(String value) {
addCriterion("param_value <=", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueLike(String value) {
addCriterion("param_value like", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotLike(String value) {
addCriterion("param_value not like", value, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueIn(List<String> values) {
addCriterion("param_value in", values, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotIn(List<String> values) {
addCriterion("param_value not in", values, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueBetween(String value1, String value2) {
addCriterion("param_value between", value1, value2, "paramValue");
return (Criteria) this;
}
public Criteria andParamValueNotBetween(String value1, String value2) {
addCriterion("param_value not between", value1, value2, "paramValue");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* <p>Description:
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public class SmartUserRelationExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SmartUserRelationExample() {
oredCriteria = new ArrayList<>();
}
public String getOrderByClause() {
return orderByClause;
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2,
String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("`name` is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("`name` is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("`name` =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("`name` <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("`name` >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("`name` >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("`name` <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("`name` <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("`name` like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("`name` not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("`name` in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("`name` not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("`name` between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("`name` not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andPhoneIsNull() {
addCriterion("phone is null");
return (Criteria) this;
}
public Criteria andPhoneIsNotNull() {
addCriterion("phone is not null");
return (Criteria) this;
}
public Criteria andPhoneEqualTo(String value) {
addCriterion("phone =", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotEqualTo(String value) {
addCriterion("phone <>", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneGreaterThan(String value) {
addCriterion("phone >", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneGreaterThanOrEqualTo(String value) {
addCriterion("phone >=", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneLessThan(String value) {
addCriterion("phone <", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneLessThanOrEqualTo(String value) {
addCriterion("phone <=", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneLike(String value) {
addCriterion("phone like", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotLike(String value) {
addCriterion("phone not like", value, "phone");
return (Criteria) this;
}
public Criteria andPhoneIn(List<String> values) {
addCriterion("phone in", values, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotIn(List<String> values) {
addCriterion("phone not in", values, "phone");
return (Criteria) this;
}
public Criteria andPhoneBetween(String value1, String value2) {
addCriterion("phone between", value1, value2, "phone");
return (Criteria) this;
}
public Criteria andPhoneNotBetween(String value1, String value2) {
addCriterion("phone not between", value1, value2, "phone");
return (Criteria) this;
}
public Criteria andPasswordIsNull() {
addCriterion("`password` is null");
return (Criteria) this;
}
public Criteria andPasswordIsNotNull() {
addCriterion("`password` is not null");
return (Criteria) this;
}
public Criteria andPasswordEqualTo(String value) {
addCriterion("`password` =", value, "password");
return (Criteria) this;
}
public Criteria andPasswordNotEqualTo(String value) {
addCriterion("`password` <>", value, "password");
return (Criteria) this;
}
public Criteria andPasswordGreaterThan(String value) {
addCriterion("`password` >", value, "password");
return (Criteria) this;
}
public Criteria andPasswordGreaterThanOrEqualTo(String value) {
addCriterion("`password` >=", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLessThan(String value) {
addCriterion("`password` <", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLessThanOrEqualTo(String value) {
addCriterion("`password` <=", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLike(String value) {
addCriterion("`password` like", value, "password");
return (Criteria) this;
}
public Criteria andPasswordNotLike(String value) {
addCriterion("`password` not like", value, "password");
return (Criteria) this;
}
public Criteria andPasswordIn(List<String> values) {
addCriterion("`password` in", values, "password");
return (Criteria) this;
}
public Criteria andPasswordNotIn(List<String> values) {
addCriterion("`password` not in", values, "password");
return (Criteria) this;
}
public Criteria andPasswordBetween(String value1, String value2) {
addCriterion("`password` between", value1, value2, "password");
return (Criteria) this;
}
public Criteria andPasswordNotBetween(String value1, String value2) {
addCriterion("`password` not between", value1, value2, "password");
return (Criteria) this;
}
public Criteria andChannelIsNull() {
addCriterion("channel is null");
return (Criteria) this;
}
public Criteria andChannelIsNotNull() {
addCriterion("channel is not null");
return (Criteria) this;
}
public Criteria andChannelEqualTo(Byte value) {
addCriterion("channel =", value, "channel");
return (Criteria) this;
}
public Criteria andChannelNotEqualTo(Byte value) {
addCriterion("channel <>", value, "channel");
return (Criteria) this;
}
public Criteria andChannelGreaterThan(Byte value) {
addCriterion("channel >", value, "channel");
return (Criteria) this;
}
public Criteria andChannelGreaterThanOrEqualTo(Byte value) {
addCriterion("channel >=", value, "channel");
return (Criteria) this;
}
public Criteria andChannelLessThan(Byte value) {
addCriterion("channel <", value, "channel");
return (Criteria) this;
}
public Criteria andChannelLessThanOrEqualTo(Byte value) {
addCriterion("channel <=", value, "channel");
return (Criteria) this;
}
public Criteria andChannelIn(List<Byte> values) {
addCriterion("channel in", values, "channel");
return (Criteria) this;
}
public Criteria andChannelNotIn(List<Byte> values) {
addCriterion("channel not in", values, "channel");
return (Criteria) this;
}
public Criteria andChannelBetween(Byte value1, Byte value2) {
addCriterion("channel between", value1, value2, "channel");
return (Criteria) this;
}
public Criteria andChannelNotBetween(Byte value1, Byte value2) {
addCriterion("channel not between", value1, value2, "channel");
return (Criteria) this;
}
public Criteria andThirdIdIsNull() {
addCriterion("third_id is null");
return (Criteria) this;
}
public Criteria andThirdIdIsNotNull() {
addCriterion("third_id is not null");
return (Criteria) this;
}
public Criteria andThirdIdEqualTo(String value) {
addCriterion("third_id =", value, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdNotEqualTo(String value) {
addCriterion("third_id <>", value, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdGreaterThan(String value) {
addCriterion("third_id >", value, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdGreaterThanOrEqualTo(String value) {
addCriterion("third_id >=", value, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdLessThan(String value) {
addCriterion("third_id <", value, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdLessThanOrEqualTo(String value) {
addCriterion("third_id <=", value, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdLike(String value) {
addCriterion("third_id like", value, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdNotLike(String value) {
addCriterion("third_id not like", value, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdIn(List<String> values) {
addCriterion("third_id in", values, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdNotIn(List<String> values) {
addCriterion("third_id not in", values, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdBetween(String value1, String value2) {
addCriterion("third_id between", value1, value2, "thirdId");
return (Criteria) this;
}
public Criteria andThirdIdNotBetween(String value1, String value2) {
addCriterion("third_id not between", value1, value2, "thirdId");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("`status` is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("`status` =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("`status` <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("`status` >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("`status` >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("`status` <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("`status` <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("`status` in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("`status` not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("`status` between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("`status` not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue,
String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
}
}
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartDevideStatusMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartDevideStatus">
<!--@mbg.generated-->
<!--@Table smart_devide_status-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="device_id" jdbcType="VARCHAR" property="deviceId"/>
<result column="uid" jdbcType="VARCHAR" property="uid"/>
<result column="device_order_code" jdbcType="VARCHAR" property="deviceOrderCode"/>
<result column="device_order_value" jdbcType="VARCHAR" property="deviceOrderValue"/>
<result column="createtime" jdbcType="TIMESTAMP" property="createtime"/>
<result column="updatetime" jdbcType="TIMESTAMP" property="updatetime"/>
<result column="product_key" jdbcType="VARCHAR" property="productKey"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, device_id, `uid`, device_order_code, device_order_value, createtime, updatetime,
product_key
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartDevideStatusExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_devide_status-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_devide_status-->
<!-- where id = #{id,jdbcType=INTEGER}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_devide_status-->
<!-- where id = #{id,jdbcType=INTEGER}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartDevideStatusExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_devide_status-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartDevideStatus" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_devide_status (device_id, `uid`, device_order_code,-->
<!-- device_order_value, createtime, updatetime,-->
<!-- product_key)-->
<!-- values (#{deviceId,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR},-->
<!-- #{deviceOrderCode,jdbcType=VARCHAR},-->
<!-- #{deviceOrderValue,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},-->
<!-- #{updatetime,jdbcType=TIMESTAMP},-->
<!-- #{productKey,jdbcType=VARCHAR})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartDevideStatus" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_devide_status-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="deviceId != null and deviceId != ''">-->
<!-- device_id,-->
<!-- </if>-->
<!-- <if test="uid != null and uid != ''">-->
<!-- `uid`,-->
<!-- </if>-->
<!-- <if test="deviceOrderCode != null and deviceOrderCode != ''">-->
<!-- device_order_code,-->
<!-- </if>-->
<!-- <if test="deviceOrderValue != null and deviceOrderValue != ''">-->
<!-- device_order_value,-->
<!-- </if>-->
<!-- <if test="createtime != null">-->
<!-- createtime,-->
<!-- </if>-->
<!-- <if test="updatetime != null">-->
<!-- updatetime,-->
<!-- </if>-->
<!-- <if test="productKey != null and productKey != ''">-->
<!-- product_key,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="deviceId != null and deviceId != ''">-->
<!-- #{deviceId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="uid != null and uid != ''">-->
<!-- #{uid,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="deviceOrderCode != null and deviceOrderCode != ''">-->
<!-- #{deviceOrderCode,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="deviceOrderValue != null and deviceOrderValue != ''">-->
<!-- #{deviceOrderValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createtime != null">-->
<!-- #{createtime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updatetime != null">-->
<!-- #{updatetime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="productKey != null and productKey != ''">-->
<!-- #{productKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartDevideStatusExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_devide_status-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_devide_status-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=INTEGER},-->
<!-- </if>-->
<!-- <if test="record.deviceId != null">-->
<!-- device_id = #{record.deviceId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.uid != null">-->
<!-- `uid` = #{record.uid,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.deviceOrderCode != null">-->
<!-- device_order_code = #{record.deviceOrderCode,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.deviceOrderValue != null">-->
<!-- device_order_value = #{record.deviceOrderValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.createtime != null">-->
<!-- createtime = #{record.createtime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.updatetime != null">-->
<!-- updatetime = #{record.updatetime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.productKey != null">-->
<!-- product_key = #{record.productKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_devide_status-->
<!-- set id = #{record.id,jdbcType=INTEGER},-->
<!-- device_id = #{record.deviceId,jdbcType=VARCHAR},-->
<!-- `uid` = #{record.uid,jdbcType=VARCHAR},-->
<!-- device_order_code = #{record.deviceOrderCode,jdbcType=VARCHAR},-->
<!-- device_order_value = #{record.deviceOrderValue,jdbcType=VARCHAR},-->
<!-- createtime = #{record.createtime,jdbcType=TIMESTAMP},-->
<!-- updatetime = #{record.updatetime,jdbcType=TIMESTAMP},-->
<!-- product_key = #{record.productKey,jdbcType=VARCHAR}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective"-->
<!-- parameterType="com.glsx.smart.entity.SmartDevideStatus">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_devide_status-->
<!-- <set>-->
<!-- <if test="deviceId != null and deviceId != ''">-->
<!-- device_id = #{deviceId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="uid != null and uid != ''">-->
<!-- `uid` = #{uid,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="deviceOrderCode != null and deviceOrderCode != ''">-->
<!-- device_order_code = #{deviceOrderCode,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="deviceOrderValue != null and deviceOrderValue != ''">-->
<!-- device_order_value = #{deviceOrderValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createtime != null">-->
<!-- createtime = #{createtime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updatetime != null">-->
<!-- updatetime = #{updatetime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="productKey != null and productKey != ''">-->
<!-- product_key = #{productKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=INTEGER}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartDevideStatus">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_devide_status-->
<!-- set device_id = #{deviceId,jdbcType=VARCHAR},-->
<!-- `uid` = #{uid,jdbcType=VARCHAR},-->
<!-- device_order_code = #{deviceOrderCode,jdbcType=VARCHAR},-->
<!-- device_order_value = #{deviceOrderValue,jdbcType=VARCHAR},-->
<!-- createtime = #{createtime,jdbcType=TIMESTAMP},-->
<!-- updatetime = #{updatetime,jdbcType=TIMESTAMP},-->
<!-- product_key = #{productKey,jdbcType=VARCHAR}-->
<!-- where id = #{id,jdbcType=INTEGER}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_devide_status
<trim prefix="set" suffixOverrides=",">
<trim prefix="device_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.deviceId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`uid` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.uid,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="device_order_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then
#{item.deviceOrderCode,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="device_order_value = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then
#{item.deviceOrderValue,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="createtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.createtime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="updatetime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.updatetime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="product_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.productKey,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_devide_status
<trim prefix="set" suffixOverrides=",">
<trim prefix="device_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deviceId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.deviceId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`uid` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.uid != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.uid,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="device_order_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deviceOrderCode != null">
when id = #{item.id,jdbcType=INTEGER} then
#{item.deviceOrderCode,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="device_order_value = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deviceOrderValue != null">
when id = #{item.id,jdbcType=INTEGER} then
#{item.deviceOrderValue,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="createtime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createtime != null">
when id = #{item.id,jdbcType=INTEGER} then
#{item.createtime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="updatetime = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updatetime != null">
when id = #{item.id,jdbcType=INTEGER} then
#{item.updatetime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="product_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.productKey != null">
when id = #{item.id,jdbcType=INTEGER} then
#{item.productKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_devide_status
(device_id, `uid`, device_order_code, device_order_value, createtime, updatetime,
product_key)
values
<foreach collection="list" item="item" separator=",">
(#{item.deviceId,jdbcType=VARCHAR}, #{item.uid,jdbcType=VARCHAR},
#{item.deviceOrderCode,jdbcType=VARCHAR},
#{item.deviceOrderValue,jdbcType=VARCHAR}, #{item.createtime,jdbcType=TIMESTAMP},
#{item.updatetime,jdbcType=TIMESTAMP}, #{item.productKey,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartDevideStatus" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_devide_status
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
device_id,
`uid`,
device_order_code,
device_order_value,
createtime,
updatetime,
product_key,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{deviceId,jdbcType=VARCHAR},
#{uid,jdbcType=VARCHAR},
#{deviceOrderCode,jdbcType=VARCHAR},
#{deviceOrderValue,jdbcType=VARCHAR},
#{createtime,jdbcType=TIMESTAMP},
#{updatetime,jdbcType=TIMESTAMP},
#{productKey,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
device_id = #{deviceId,jdbcType=VARCHAR},
`uid` = #{uid,jdbcType=VARCHAR},
device_order_code = #{deviceOrderCode,jdbcType=VARCHAR},
device_order_value = #{deviceOrderValue,jdbcType=VARCHAR},
createtime = #{createtime,jdbcType=TIMESTAMP},
updatetime = #{updatetime,jdbcType=TIMESTAMP},
product_key = #{productKey,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartDevideStatus" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_devide_status
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="deviceId != null and deviceId != ''">
device_id,
</if>
<if test="uid != null and uid != ''">
`uid`,
</if>
<if test="deviceOrderCode != null and deviceOrderCode != ''">
device_order_code,
</if>
<if test="deviceOrderValue != null and deviceOrderValue != ''">
device_order_value,
</if>
<if test="createtime != null">
createtime,
</if>
<if test="updatetime != null">
updatetime,
</if>
<if test="productKey != null and productKey != ''">
product_key,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="deviceId != null and deviceId != ''">
#{deviceId,jdbcType=VARCHAR},
</if>
<if test="uid != null and uid != ''">
#{uid,jdbcType=VARCHAR},
</if>
<if test="deviceOrderCode != null and deviceOrderCode != ''">
#{deviceOrderCode,jdbcType=VARCHAR},
</if>
<if test="deviceOrderValue != null and deviceOrderValue != ''">
#{deviceOrderValue,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
#{updatetime,jdbcType=TIMESTAMP},
</if>
<if test="productKey != null and productKey != ''">
#{productKey,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="deviceId != null and deviceId != ''">
device_id = #{deviceId,jdbcType=VARCHAR},
</if>
<if test="uid != null and uid != ''">
`uid` = #{uid,jdbcType=VARCHAR},
</if>
<if test="deviceOrderCode != null and deviceOrderCode != ''">
device_order_code = #{deviceOrderCode,jdbcType=VARCHAR},
</if>
<if test="deviceOrderValue != null and deviceOrderValue != ''">
device_order_value = #{deviceOrderValue,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
createtime = #{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
updatetime = #{updatetime,jdbcType=TIMESTAMP},
</if>
<if test="productKey != null and productKey != ''">
product_key = #{productKey,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartProductMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartProduct">
<!--@mbg.generated-->
<!--@Table smart_product-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="product_name" jdbcType="VARCHAR" property="productName"/>
<result column="icon" jdbcType="BIGINT" property="icon"/>
<result column="type_id" jdbcType="BIGINT" property="typeId"/>
<result column="shop_product_id" jdbcType="VARCHAR" property="shopProductId"/>
<result column="platform_key" jdbcType="VARCHAR" property="platformKey"/>
<result column="platform_product_id" jdbcType="VARCHAR" property="platformProductId"/>
<result column="network_key" jdbcType="VARCHAR" property="networkKey"/>
<result column="status" jdbcType="TINYINT" property="status"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="create_by" jdbcType="BIGINT" property="createBy"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="update_by" jdbcType="BIGINT" property="updateBy"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, product_name, icon, type_id, shop_product_id, platform_key, platform_product_id,
network_key, `status`, remark, create_time, create_by, update_time, update_by
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartProductExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_product-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_product-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_product-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartProductExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_product-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartProduct" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_product (product_name, icon, type_id,-->
<!-- shop_product_id, platform_key, platform_product_id,-->
<!-- network_key, `status`, remark,-->
<!-- create_time, create_by, update_time,-->
<!-- update_by)-->
<!-- values (#{productName,jdbcType=VARCHAR}, #{icon,jdbcType=BIGINT}, #{typeId,jdbcType=BIGINT},-->
<!-- #{shopProductId,jdbcType=VARCHAR}, #{platformKey,jdbcType=VARCHAR},-->
<!-- #{platformProductId,jdbcType=VARCHAR},-->
<!-- #{networkKey,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR},-->
<!-- #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=BIGINT},-->
<!-- #{updateTime,jdbcType=TIMESTAMP},-->
<!-- #{updateBy,jdbcType=BIGINT})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartProduct" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_product-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="productName != null and productName != ''">-->
<!-- product_name,-->
<!-- </if>-->
<!-- <if test="icon != null">-->
<!-- icon,-->
<!-- </if>-->
<!-- <if test="typeId != null">-->
<!-- type_id,-->
<!-- </if>-->
<!-- <if test="shopProductId != null and shopProductId != ''">-->
<!-- shop_product_id,-->
<!-- </if>-->
<!-- <if test="platformKey != null and platformKey != ''">-->
<!-- platform_key,-->
<!-- </if>-->
<!-- <if test="platformProductId != null and platformProductId != ''">-->
<!-- platform_product_id,-->
<!-- </if>-->
<!-- <if test="networkKey != null and networkKey != ''">-->
<!-- network_key,-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status`,-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark,-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time,-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- create_by,-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time,-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- update_by,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="productName != null and productName != ''">-->
<!-- #{productName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="icon != null">-->
<!-- #{icon,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="typeId != null">-->
<!-- #{typeId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="shopProductId != null and shopProductId != ''">-->
<!-- #{shopProductId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="platformKey != null and platformKey != ''">-->
<!-- #{platformKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="platformProductId != null and platformProductId != ''">-->
<!-- #{platformProductId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="networkKey != null and networkKey != ''">-->
<!-- #{networkKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- #{createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- #{updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartProductExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_product-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.productName != null">-->
<!-- product_name = #{record.productName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.icon != null">-->
<!-- icon = #{record.icon,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.typeId != null">-->
<!-- type_id = #{record.typeId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.shopProductId != null">-->
<!-- shop_product_id = #{record.shopProductId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.platformKey != null">-->
<!-- platform_key = #{record.platformKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.platformProductId != null">-->
<!-- platform_product_id = #{record.platformProductId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.networkKey != null">-->
<!-- network_key = #{record.networkKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.status != null">-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.remark != null">-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.createTime != null">-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.createBy != null">-->
<!-- create_by = #{record.createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.updateTime != null">-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.updateBy != null">-->
<!-- update_by = #{record.updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- product_name = #{record.productName,jdbcType=VARCHAR},-->
<!-- icon = #{record.icon,jdbcType=BIGINT},-->
<!-- type_id = #{record.typeId,jdbcType=BIGINT},-->
<!-- shop_product_id = #{record.shopProductId,jdbcType=VARCHAR},-->
<!-- platform_key = #{record.platformKey,jdbcType=VARCHAR},-->
<!-- platform_product_id = #{record.platformProductId,jdbcType=VARCHAR},-->
<!-- network_key = #{record.networkKey,jdbcType=VARCHAR},-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- create_by = #{record.createBy,jdbcType=BIGINT},-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
<!-- update_by = #{record.updateBy,jdbcType=BIGINT}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective" parameterType="com.glsx.smart.entity.SmartProduct">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product-->
<!-- <set>-->
<!-- <if test="productName != null and productName != ''">-->
<!-- product_name = #{productName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="icon != null">-->
<!-- icon = #{icon,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="typeId != null">-->
<!-- type_id = #{typeId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="shopProductId != null and shopProductId != ''">-->
<!-- shop_product_id = #{shopProductId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="platformKey != null and platformKey != ''">-->
<!-- platform_key = #{platformKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="platformProductId != null and platformProductId != ''">-->
<!-- platform_product_id = #{platformProductId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="networkKey != null and networkKey != ''">-->
<!-- network_key = #{networkKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- create_by = #{createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- update_by = #{updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartProduct">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product-->
<!-- set product_name = #{productName,jdbcType=VARCHAR},-->
<!-- icon = #{icon,jdbcType=BIGINT},-->
<!-- type_id = #{typeId,jdbcType=BIGINT},-->
<!-- shop_product_id = #{shopProductId,jdbcType=VARCHAR},-->
<!-- platform_key = #{platformKey,jdbcType=VARCHAR},-->
<!-- platform_product_id = #{platformProductId,jdbcType=VARCHAR},-->
<!-- network_key = #{networkKey,jdbcType=VARCHAR},-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- create_by = #{createBy,jdbcType=BIGINT},-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
<!-- update_by = #{updateBy,jdbcType=BIGINT}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_product
<trim prefix="set" suffixOverrides=",">
<trim prefix="product_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.productName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="icon = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.icon,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="type_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="shop_product_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.shopProductId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="platform_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.platformKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="platform_product_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then
#{item.platformProductId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="network_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.networkKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_product
<trim prefix="set" suffixOverrides=",">
<trim prefix="product_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.productName != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.productName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="icon = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.icon != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.icon,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="type_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.typeId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="shop_product_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.shopProductId != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.shopProductId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="platform_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.platformKey != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.platformKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="platform_product_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.platformProductId != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.platformProductId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="network_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.networkKey != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.networkKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.createBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product
(product_name, icon, type_id, shop_product_id, platform_key, platform_product_id,
network_key, `status`, remark, create_time, create_by, update_time, update_by)
values
<foreach collection="list" item="item" separator=",">
(#{item.productName,jdbcType=VARCHAR}, #{item.icon,jdbcType=BIGINT},
#{item.typeId,jdbcType=BIGINT},
#{item.shopProductId,jdbcType=VARCHAR}, #{item.platformKey,jdbcType=VARCHAR},
#{item.platformProductId,jdbcType=VARCHAR},
#{item.networkKey,jdbcType=VARCHAR}, #{item.status,jdbcType=TINYINT},
#{item.remark,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP}, #{item.createBy,jdbcType=BIGINT},
#{item.updateTime,jdbcType=TIMESTAMP},
#{item.updateBy,jdbcType=BIGINT})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProduct" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
product_name,
icon,
type_id,
shop_product_id,
platform_key,
platform_product_id,
network_key,
`status`,
remark,
create_time,
create_by,
update_time,
update_by,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{productName,jdbcType=VARCHAR},
#{icon,jdbcType=BIGINT},
#{typeId,jdbcType=BIGINT},
#{shopProductId,jdbcType=VARCHAR},
#{platformKey,jdbcType=VARCHAR},
#{platformProductId,jdbcType=VARCHAR},
#{networkKey,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT},
#{remark,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=BIGINT},
#{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=BIGINT},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
product_name = #{productName,jdbcType=VARCHAR},
icon = #{icon,jdbcType=BIGINT},
type_id = #{typeId,jdbcType=BIGINT},
shop_product_id = #{shopProductId,jdbcType=VARCHAR},
platform_key = #{platformKey,jdbcType=VARCHAR},
platform_product_id = #{platformProductId,jdbcType=VARCHAR},
network_key = #{networkKey,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=BIGINT},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProduct" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="productName != null and productName != ''">
product_name,
</if>
<if test="icon != null">
icon,
</if>
<if test="typeId != null">
type_id,
</if>
<if test="shopProductId != null and shopProductId != ''">
shop_product_id,
</if>
<if test="platformKey != null and platformKey != ''">
platform_key,
</if>
<if test="platformProductId != null and platformProductId != ''">
platform_product_id,
</if>
<if test="networkKey != null and networkKey != ''">
network_key,
</if>
<if test="status != null">
`status`,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="updateBy != null">
update_by,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="productName != null and productName != ''">
#{productName,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=BIGINT},
</if>
<if test="typeId != null">
#{typeId,jdbcType=BIGINT},
</if>
<if test="shopProductId != null and shopProductId != ''">
#{shopProductId,jdbcType=VARCHAR},
</if>
<if test="platformKey != null and platformKey != ''">
#{platformKey,jdbcType=VARCHAR},
</if>
<if test="platformProductId != null and platformProductId != ''">
#{platformProductId,jdbcType=VARCHAR},
</if>
<if test="networkKey != null and networkKey != ''">
#{networkKey,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=BIGINT},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="productName != null and productName != ''">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=BIGINT},
</if>
<if test="typeId != null">
type_id = #{typeId,jdbcType=BIGINT},
</if>
<if test="shopProductId != null and shopProductId != ''">
shop_product_id = #{shopProductId,jdbcType=VARCHAR},
</if>
<if test="platformKey != null and platformKey != ''">
platform_key = #{platformKey,jdbcType=VARCHAR},
</if>
<if test="platformProductId != null and platformProductId != ''">
platform_product_id = #{platformProductId,jdbcType=VARCHAR},
</if>
<if test="networkKey != null and networkKey != ''">
network_key = #{networkKey,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartProductTypeMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartProductType">
<!--@mbg.generated-->
<!--@Table smart_product_type-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="type_name" jdbcType="VARCHAR" property="typeName"/>
<result column="category_key" jdbcType="VARCHAR" property="categoryKey"/>
<result column="shop_tag" jdbcType="VARCHAR" property="shopTag"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="create_by" jdbcType="BIGINT" property="createBy"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="update_by" jdbcType="BIGINT" property="updateBy"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, type_name, category_key, shop_tag, remark, create_time, create_by, update_time,
update_by
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartProductTypeExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_product_type-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_product_type-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_product_type-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartProductTypeExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_product_type-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartProductType" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_product_type (type_name, category_key, shop_tag,-->
<!-- remark, create_time, create_by,-->
<!-- update_time, update_by)-->
<!-- values (#{typeName,jdbcType=VARCHAR}, #{categoryKey,jdbcType=VARCHAR},-->
<!-- #{shopTag,jdbcType=VARCHAR},-->
<!-- #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=BIGINT},-->
<!-- #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=BIGINT})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartProductType" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_product_type-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="typeName != null and typeName != ''">-->
<!-- type_name,-->
<!-- </if>-->
<!-- <if test="categoryKey != null and categoryKey != ''">-->
<!-- category_key,-->
<!-- </if>-->
<!-- <if test="shopTag != null and shopTag != ''">-->
<!-- shop_tag,-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark,-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time,-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- create_by,-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time,-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- update_by,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="typeName != null and typeName != ''">-->
<!-- #{typeName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="categoryKey != null and categoryKey != ''">-->
<!-- #{categoryKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="shopTag != null and shopTag != ''">-->
<!-- #{shopTag,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- #{createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- #{updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartProductTypeExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_product_type-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product_type-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.typeName != null">-->
<!-- type_name = #{record.typeName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.categoryKey != null">-->
<!-- category_key = #{record.categoryKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.shopTag != null">-->
<!-- shop_tag = #{record.shopTag,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.remark != null">-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.createTime != null">-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.createBy != null">-->
<!-- create_by = #{record.createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.updateTime != null">-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.updateBy != null">-->
<!-- update_by = #{record.updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product_type-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- type_name = #{record.typeName,jdbcType=VARCHAR},-->
<!-- category_key = #{record.categoryKey,jdbcType=VARCHAR},-->
<!-- shop_tag = #{record.shopTag,jdbcType=VARCHAR},-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- create_by = #{record.createBy,jdbcType=BIGINT},-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
<!-- update_by = #{record.updateBy,jdbcType=BIGINT}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective" parameterType="com.glsx.smart.entity.SmartProductType">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product_type-->
<!-- <set>-->
<!-- <if test="typeName != null and typeName != ''">-->
<!-- type_name = #{typeName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="categoryKey != null and categoryKey != ''">-->
<!-- category_key = #{categoryKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="shopTag != null and shopTag != ''">-->
<!-- shop_tag = #{shopTag,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- create_by = #{createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- update_by = #{updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartProductType">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product_type-->
<!-- set type_name = #{typeName,jdbcType=VARCHAR},-->
<!-- category_key = #{categoryKey,jdbcType=VARCHAR},-->
<!-- shop_tag = #{shopTag,jdbcType=VARCHAR},-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- create_by = #{createBy,jdbcType=BIGINT},-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
<!-- update_by = #{updateBy,jdbcType=BIGINT}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_product_type
<trim prefix="set" suffixOverrides=",">
<trim prefix="type_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="category_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.categoryKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="shop_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.shopTag,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_product_type
<trim prefix="set" suffixOverrides=",">
<trim prefix="type_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.typeName != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="category_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.categoryKey != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.categoryKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="shop_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.shopTag != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.shopTag,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.createBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type
(type_name, category_key, shop_tag, remark, create_time, create_by, update_time,
update_by)
values
<foreach collection="list" item="item" separator=",">
(#{item.typeName,jdbcType=VARCHAR}, #{item.categoryKey,jdbcType=VARCHAR},
#{item.shopTag,jdbcType=VARCHAR},
#{item.remark,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
#{item.createBy,jdbcType=BIGINT},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=BIGINT})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProductType" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
type_name,
category_key,
shop_tag,
remark,
create_time,
create_by,
update_time,
update_by,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{typeName,jdbcType=VARCHAR},
#{categoryKey,jdbcType=VARCHAR},
#{shopTag,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=BIGINT},
#{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=BIGINT},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
type_name = #{typeName,jdbcType=VARCHAR},
category_key = #{categoryKey,jdbcType=VARCHAR},
shop_tag = #{shopTag,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=BIGINT},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProductType" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="typeName != null and typeName != ''">
type_name,
</if>
<if test="categoryKey != null and categoryKey != ''">
category_key,
</if>
<if test="shopTag != null and shopTag != ''">
shop_tag,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="updateBy != null">
update_by,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="typeName != null and typeName != ''">
#{typeName,jdbcType=VARCHAR},
</if>
<if test="categoryKey != null and categoryKey != ''">
#{categoryKey,jdbcType=VARCHAR},
</if>
<if test="shopTag != null and shopTag != ''">
#{shopTag,jdbcType=VARCHAR},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=BIGINT},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="typeName != null and typeName != ''">
type_name = #{typeName,jdbcType=VARCHAR},
</if>
<if test="categoryKey != null and categoryKey != ''">
category_key = #{categoryKey,jdbcType=VARCHAR},
</if>
<if test="shopTag != null and shopTag != ''">
shop_tag = #{shopTag,jdbcType=VARCHAR},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartProductTypeParamMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartProductTypeParam">
<!--@mbg.generated-->
<!--@Table smart_product_type_param-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="type_id" jdbcType="BIGINT" property="typeId"/>
<result column="devide_order_code" jdbcType="VARCHAR" property="devideOrderCode"/>
<result column="devide_order_name" jdbcType="VARCHAR" property="devideOrderName"/>
<result column="status" jdbcType="VARCHAR" property="status"/>
<result column="devide_order_valuetype" jdbcType="VARCHAR" property="devideOrderValuetype"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, type_id, devide_order_code, devide_order_name, `status`, devide_order_valuetype
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartProductTypeParamExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_product_type_param-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_product_type_param-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_product_type_param-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartProductTypeParamExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_product_type_param-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartProductTypeParam" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_product_type_param (type_id, devide_order_code, devide_order_name,-->
<!-- `status`, devide_order_valuetype)-->
<!-- values (#{typeId,jdbcType=BIGINT}, #{devideOrderCode,jdbcType=VARCHAR},-->
<!-- #{devideOrderName,jdbcType=VARCHAR},-->
<!-- #{status,jdbcType=VARCHAR}, #{devideOrderValuetype,jdbcType=VARCHAR})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartProductTypeParam" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_product_type_param-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="typeId != null">-->
<!-- type_id,-->
<!-- </if>-->
<!-- <if test="devideOrderCode != null and devideOrderCode != ''">-->
<!-- devide_order_code,-->
<!-- </if>-->
<!-- <if test="devideOrderName != null and devideOrderName != ''">-->
<!-- devide_order_name,-->
<!-- </if>-->
<!-- <if test="status != null and status != ''">-->
<!-- `status`,-->
<!-- </if>-->
<!-- <if test="devideOrderValuetype != null and devideOrderValuetype != ''">-->
<!-- devide_order_valuetype,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="typeId != null">-->
<!-- #{typeId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="devideOrderCode != null and devideOrderCode != ''">-->
<!-- #{devideOrderCode,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="devideOrderName != null and devideOrderName != ''">-->
<!-- #{devideOrderName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="status != null and status != ''">-->
<!-- #{status,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="devideOrderValuetype != null and devideOrderValuetype != ''">-->
<!-- #{devideOrderValuetype,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartProductTypeParamExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_product_type_param-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product_type_param-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.typeId != null">-->
<!-- type_id = #{record.typeId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.devideOrderCode != null">-->
<!-- devide_order_code = #{record.devideOrderCode,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.devideOrderName != null">-->
<!-- devide_order_name = #{record.devideOrderName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.status != null">-->
<!-- `status` = #{record.status,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.devideOrderValuetype != null">-->
<!-- devide_order_valuetype = #{record.devideOrderValuetype,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product_type_param-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- type_id = #{record.typeId,jdbcType=BIGINT},-->
<!-- devide_order_code = #{record.devideOrderCode,jdbcType=VARCHAR},-->
<!-- devide_order_name = #{record.devideOrderName,jdbcType=VARCHAR},-->
<!-- `status` = #{record.status,jdbcType=VARCHAR},-->
<!-- devide_order_valuetype = #{record.devideOrderValuetype,jdbcType=VARCHAR}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective"-->
<!-- parameterType="com.glsx.smart.entity.SmartProductTypeParam">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product_type_param-->
<!-- <set>-->
<!-- <if test="typeId != null">-->
<!-- type_id = #{typeId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="devideOrderCode != null and devideOrderCode != ''">-->
<!-- devide_order_code = #{devideOrderCode,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="devideOrderName != null and devideOrderName != ''">-->
<!-- devide_order_name = #{devideOrderName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="status != null and status != ''">-->
<!-- `status` = #{status,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="devideOrderValuetype != null and devideOrderValuetype != ''">-->
<!-- devide_order_valuetype = #{devideOrderValuetype,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartProductTypeParam">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_product_type_param-->
<!-- set type_id = #{typeId,jdbcType=BIGINT},-->
<!-- devide_order_code = #{devideOrderCode,jdbcType=VARCHAR},-->
<!-- devide_order_name = #{devideOrderName,jdbcType=VARCHAR},-->
<!-- `status` = #{status,jdbcType=VARCHAR},-->
<!-- devide_order_valuetype = #{devideOrderValuetype,jdbcType=VARCHAR}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_product_type_param
<trim prefix="set" suffixOverrides=",">
<trim prefix="type_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="devide_order_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then
#{item.devideOrderCode,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="devide_order_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then
#{item.devideOrderName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="devide_order_valuetype = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then
#{item.devideOrderValuetype,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_product_type_param
<trim prefix="set" suffixOverrides=",">
<trim prefix="type_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.typeId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="devide_order_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.devideOrderCode != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.devideOrderCode,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="devide_order_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.devideOrderName != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.devideOrderName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="devide_order_valuetype = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.devideOrderValuetype != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.devideOrderValuetype,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type_param
(type_id, devide_order_code, devide_order_name, `status`, devide_order_valuetype)
values
<foreach collection="list" item="item" separator=",">
(#{item.typeId,jdbcType=BIGINT}, #{item.devideOrderCode,jdbcType=VARCHAR},
#{item.devideOrderName,jdbcType=VARCHAR},
#{item.status,jdbcType=VARCHAR}, #{item.devideOrderValuetype,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProductTypeParam" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type_param
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
type_id,
devide_order_code,
devide_order_name,
`status`,
devide_order_valuetype,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{typeId,jdbcType=BIGINT},
#{devideOrderCode,jdbcType=VARCHAR},
#{devideOrderName,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},
#{devideOrderValuetype,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
type_id = #{typeId,jdbcType=BIGINT},
devide_order_code = #{devideOrderCode,jdbcType=VARCHAR},
devide_order_name = #{devideOrderName,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
devide_order_valuetype = #{devideOrderValuetype,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartProductTypeParam" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_product_type_param
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="typeId != null">
type_id,
</if>
<if test="devideOrderCode != null and devideOrderCode != ''">
devide_order_code,
</if>
<if test="devideOrderName != null and devideOrderName != ''">
devide_order_name,
</if>
<if test="status != null and status != ''">
`status`,
</if>
<if test="devideOrderValuetype != null and devideOrderValuetype != ''">
devide_order_valuetype,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="typeId != null">
#{typeId,jdbcType=BIGINT},
</if>
<if test="devideOrderCode != null and devideOrderCode != ''">
#{devideOrderCode,jdbcType=VARCHAR},
</if>
<if test="devideOrderName != null and devideOrderName != ''">
#{devideOrderName,jdbcType=VARCHAR},
</if>
<if test="status != null and status != ''">
#{status,jdbcType=VARCHAR},
</if>
<if test="devideOrderValuetype != null and devideOrderValuetype != ''">
#{devideOrderValuetype,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="typeId != null">
type_id = #{typeId,jdbcType=BIGINT},
</if>
<if test="devideOrderCode != null and devideOrderCode != ''">
devide_order_code = #{devideOrderCode,jdbcType=VARCHAR},
</if>
<if test="devideOrderName != null and devideOrderName != ''">
devide_order_name = #{devideOrderName,jdbcType=VARCHAR},
</if>
<if test="status != null and status != ''">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="devideOrderValuetype != null and devideOrderValuetype != ''">
devide_order_valuetype = #{devideOrderValuetype,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartScenseDataMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartScenseData">
<!--@mbg.generated-->
<!--@Table smart_scense_data-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="template_id" jdbcType="BIGINT" property="templateId"/>
<result column="type" jdbcType="TINYINT" property="type"/>
<result column="sort" jdbcType="TINYINT" property="sort"/>
<result column="param_key" jdbcType="VARCHAR" property="paramKey"/>
<result column="param_value" jdbcType="VARCHAR" property="paramValue"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, template_id, `type`, sort, param_key, param_value
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartScenseDataExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_scense_data-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_scense_data-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_scense_data-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartScenseDataExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_scense_data-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartScenseData" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_scense_data (template_id, `type`, sort,-->
<!-- param_key, param_value)-->
<!-- values (#{templateId,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, #{sort,jdbcType=TINYINT},-->
<!-- #{paramKey,jdbcType=VARCHAR}, #{paramValue,jdbcType=VARCHAR})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartScenseData" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_scense_data-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="templateId != null">-->
<!-- template_id,-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- `type`,-->
<!-- </if>-->
<!-- <if test="sort != null">-->
<!-- sort,-->
<!-- </if>-->
<!-- <if test="paramKey != null and paramKey != ''">-->
<!-- param_key,-->
<!-- </if>-->
<!-- <if test="paramValue != null and paramValue != ''">-->
<!-- param_value,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="templateId != null">-->
<!-- #{templateId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- #{type,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="sort != null">-->
<!-- #{sort,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="paramKey != null and paramKey != ''">-->
<!-- #{paramKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="paramValue != null and paramValue != ''">-->
<!-- #{paramValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartScenseDataExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_scense_data-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense_data-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.templateId != null">-->
<!-- template_id = #{record.templateId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.type != null">-->
<!-- `type` = #{record.type,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.sort != null">-->
<!-- sort = #{record.sort,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.paramKey != null">-->
<!-- param_key = #{record.paramKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.paramValue != null">-->
<!-- param_value = #{record.paramValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense_data-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- template_id = #{record.templateId,jdbcType=BIGINT},-->
<!-- `type` = #{record.type,jdbcType=TINYINT},-->
<!-- sort = #{record.sort,jdbcType=TINYINT},-->
<!-- param_key = #{record.paramKey,jdbcType=VARCHAR},-->
<!-- param_value = #{record.paramValue,jdbcType=VARCHAR}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective" parameterType="com.glsx.smart.entity.SmartScenseData">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense_data-->
<!-- <set>-->
<!-- <if test="templateId != null">-->
<!-- template_id = #{templateId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- `type` = #{type,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="sort != null">-->
<!-- sort = #{sort,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="paramKey != null and paramKey != ''">-->
<!-- param_key = #{paramKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="paramValue != null and paramValue != ''">-->
<!-- param_value = #{paramValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartScenseData">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense_data-->
<!-- set template_id = #{templateId,jdbcType=BIGINT},-->
<!-- `type` = #{type,jdbcType=TINYINT},-->
<!-- sort = #{sort,jdbcType=TINYINT},-->
<!-- param_key = #{paramKey,jdbcType=VARCHAR},-->
<!-- param_value = #{paramValue,jdbcType=VARCHAR}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_scense_data
<trim prefix="set" suffixOverrides=",">
<trim prefix="template_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.templateId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.type,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="sort = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.sort,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="param_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.paramKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="param_value = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.paramValue,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_scense_data
<trim prefix="set" suffixOverrides=",">
<trim prefix="template_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.templateId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.templateId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.type != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.type,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="sort = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sort != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.sort,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="param_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.paramKey != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.paramKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="param_value = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.paramValue != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.paramValue,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scense_data
(template_id, `type`, sort, param_key, param_value)
values
<foreach collection="list" item="item" separator=",">
(#{item.templateId,jdbcType=BIGINT}, #{item.type,jdbcType=TINYINT},
#{item.sort,jdbcType=TINYINT},
#{item.paramKey,jdbcType=VARCHAR}, #{item.paramValue,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartScenseData" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scense_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
template_id,
`type`,
sort,
param_key,
param_value,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{templateId,jdbcType=BIGINT},
#{type,jdbcType=TINYINT},
#{sort,jdbcType=TINYINT},
#{paramKey,jdbcType=VARCHAR},
#{paramValue,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
template_id = #{templateId,jdbcType=BIGINT},
`type` = #{type,jdbcType=TINYINT},
sort = #{sort,jdbcType=TINYINT},
param_key = #{paramKey,jdbcType=VARCHAR},
param_value = #{paramValue,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartScenseData" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scense_data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="templateId != null">
template_id,
</if>
<if test="type != null">
`type`,
</if>
<if test="sort != null">
sort,
</if>
<if test="paramKey != null and paramKey != ''">
param_key,
</if>
<if test="paramValue != null and paramValue != ''">
param_value,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="templateId != null">
#{templateId,jdbcType=BIGINT},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="sort != null">
#{sort,jdbcType=TINYINT},
</if>
<if test="paramKey != null and paramKey != ''">
#{paramKey,jdbcType=VARCHAR},
</if>
<if test="paramValue != null and paramValue != ''">
#{paramValue,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="templateId != null">
template_id = #{templateId,jdbcType=BIGINT},
</if>
<if test="type != null">
`type` = #{type,jdbcType=TINYINT},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=TINYINT},
</if>
<if test="paramKey != null and paramKey != ''">
param_key = #{paramKey,jdbcType=VARCHAR},
</if>
<if test="paramValue != null and paramValue != ''">
param_value = #{paramValue,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartScenseMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartScense">
<!--@mbg.generated-->
<!--@Table smart_scense-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="user_id" jdbcType="BIGINT" property="userId"/>
<result column="scenes_name" jdbcType="VARCHAR" property="scenesName"/>
<result column="type_key" jdbcType="VARCHAR" property="typeKey"/>
<result column="icon" jdbcType="BIGINT" property="icon"/>
<result column="back_pic" jdbcType="BIGINT" property="backPic"/>
<result column="view_times" jdbcType="BIGINT" property="viewTimes"/>
<result column="description" jdbcType="VARCHAR" property="description"/>
<result column="condition_rule" jdbcType="TINYINT" property="conditionRule"/>
<result column="execute_cycle" jdbcType="TINYINT" property="executeCycle"/>
<result column="status" jdbcType="TINYINT" property="status"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, user_id, scenes_name, type_key, icon, back_pic, view_times, description, condition_rule,
execute_cycle, `status`, remark, create_time, update_time
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartScenseExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_scense-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_scense-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_scense-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartScenseExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_scense-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartScense" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_scense (user_id, scenes_name, type_key,-->
<!-- icon, back_pic, view_times,-->
<!-- description, condition_rule, execute_cycle,-->
<!-- `status`, remark, create_time,-->
<!-- update_time)-->
<!-- values (#{userId,jdbcType=BIGINT}, #{scenesName,jdbcType=VARCHAR},-->
<!-- #{typeKey,jdbcType=VARCHAR},-->
<!-- #{icon,jdbcType=BIGINT}, #{backPic,jdbcType=BIGINT}, #{viewTimes,jdbcType=BIGINT},-->
<!-- #{description,jdbcType=VARCHAR}, #{conditionRule,jdbcType=TINYINT},-->
<!-- #{executeCycle,jdbcType=TINYINT},-->
<!-- #{status,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},-->
<!-- #{updateTime,jdbcType=TIMESTAMP})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartScense" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_scense-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="userId != null">-->
<!-- user_id,-->
<!-- </if>-->
<!-- <if test="scenesName != null and scenesName != ''">-->
<!-- scenes_name,-->
<!-- </if>-->
<!-- <if test="typeKey != null and typeKey != ''">-->
<!-- type_key,-->
<!-- </if>-->
<!-- <if test="icon != null">-->
<!-- icon,-->
<!-- </if>-->
<!-- <if test="backPic != null">-->
<!-- back_pic,-->
<!-- </if>-->
<!-- <if test="viewTimes != null">-->
<!-- view_times,-->
<!-- </if>-->
<!-- <if test="description != null and description != ''">-->
<!-- description,-->
<!-- </if>-->
<!-- <if test="conditionRule != null">-->
<!-- condition_rule,-->
<!-- </if>-->
<!-- <if test="executeCycle != null">-->
<!-- execute_cycle,-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status`,-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark,-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time,-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="userId != null">-->
<!-- #{userId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="scenesName != null and scenesName != ''">-->
<!-- #{scenesName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="typeKey != null and typeKey != ''">-->
<!-- #{typeKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="icon != null">-->
<!-- #{icon,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="backPic != null">-->
<!-- #{backPic,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="viewTimes != null">-->
<!-- #{viewTimes,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="description != null and description != ''">-->
<!-- #{description,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="conditionRule != null">-->
<!-- #{conditionRule,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="executeCycle != null">-->
<!-- #{executeCycle,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartScenseExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_scense-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.userId != null">-->
<!-- user_id = #{record.userId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.scenesName != null">-->
<!-- scenes_name = #{record.scenesName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.typeKey != null">-->
<!-- type_key = #{record.typeKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.icon != null">-->
<!-- icon = #{record.icon,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.backPic != null">-->
<!-- back_pic = #{record.backPic,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.viewTimes != null">-->
<!-- view_times = #{record.viewTimes,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.description != null">-->
<!-- description = #{record.description,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.conditionRule != null">-->
<!-- condition_rule = #{record.conditionRule,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.executeCycle != null">-->
<!-- execute_cycle = #{record.executeCycle,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.status != null">-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.remark != null">-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.createTime != null">-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.updateTime != null">-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- user_id = #{record.userId,jdbcType=BIGINT},-->
<!-- scenes_name = #{record.scenesName,jdbcType=VARCHAR},-->
<!-- type_key = #{record.typeKey,jdbcType=VARCHAR},-->
<!-- icon = #{record.icon,jdbcType=BIGINT},-->
<!-- back_pic = #{record.backPic,jdbcType=BIGINT},-->
<!-- view_times = #{record.viewTimes,jdbcType=BIGINT},-->
<!-- description = #{record.description,jdbcType=VARCHAR},-->
<!-- condition_rule = #{record.conditionRule,jdbcType=TINYINT},-->
<!-- execute_cycle = #{record.executeCycle,jdbcType=TINYINT},-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective" parameterType="com.glsx.smart.entity.SmartScense">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense-->
<!-- <set>-->
<!-- <if test="userId != null">-->
<!-- user_id = #{userId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="scenesName != null and scenesName != ''">-->
<!-- scenes_name = #{scenesName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="typeKey != null and typeKey != ''">-->
<!-- type_key = #{typeKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="icon != null">-->
<!-- icon = #{icon,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="backPic != null">-->
<!-- back_pic = #{backPic,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="viewTimes != null">-->
<!-- view_times = #{viewTimes,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="description != null and description != ''">-->
<!-- description = #{description,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="conditionRule != null">-->
<!-- condition_rule = #{conditionRule,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="executeCycle != null">-->
<!-- execute_cycle = #{executeCycle,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartScense">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense-->
<!-- set user_id = #{userId,jdbcType=BIGINT},-->
<!-- scenes_name = #{scenesName,jdbcType=VARCHAR},-->
<!-- type_key = #{typeKey,jdbcType=VARCHAR},-->
<!-- icon = #{icon,jdbcType=BIGINT},-->
<!-- back_pic = #{backPic,jdbcType=BIGINT},-->
<!-- view_times = #{viewTimes,jdbcType=BIGINT},-->
<!-- description = #{description,jdbcType=VARCHAR},-->
<!-- condition_rule = #{conditionRule,jdbcType=TINYINT},-->
<!-- execute_cycle = #{executeCycle,jdbcType=TINYINT},-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_scense
<trim prefix="set" suffixOverrides=",">
<trim prefix="user_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.userId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="scenes_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.scenesName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="type_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="icon = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.icon,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="back_pic = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.backPic,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="view_times = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.viewTimes,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="description = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.description,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="condition_rule = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.conditionRule,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="execute_cycle = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.executeCycle,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_scense
<trim prefix="set" suffixOverrides=",">
<trim prefix="user_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.userId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.userId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="scenes_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.scenesName != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.scenesName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="type_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.typeKey != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="icon = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.icon != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.icon,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="back_pic = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.backPic != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.backPic,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="view_times = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.viewTimes != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.viewTimes,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="description = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.description != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.description,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="condition_rule = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.conditionRule != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.conditionRule,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="execute_cycle = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.executeCycle != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.executeCycle,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scense
(user_id, scenes_name, type_key, icon, back_pic, view_times, description, condition_rule,
execute_cycle, `status`, remark, create_time, update_time)
values
<foreach collection="list" item="item" separator=",">
(#{item.userId,jdbcType=BIGINT}, #{item.scenesName,jdbcType=VARCHAR},
#{item.typeKey,jdbcType=VARCHAR},
#{item.icon,jdbcType=BIGINT}, #{item.backPic,jdbcType=BIGINT},
#{item.viewTimes,jdbcType=BIGINT},
#{item.description,jdbcType=VARCHAR}, #{item.conditionRule,jdbcType=TINYINT},
#{item.executeCycle,jdbcType=TINYINT},
#{item.status,jdbcType=TINYINT}, #{item.remark,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP},
#{item.updateTime,jdbcType=TIMESTAMP})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartScense" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scense
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
user_id,
scenes_name,
type_key,
icon,
back_pic,
view_times,
description,
condition_rule,
execute_cycle,
`status`,
remark,
create_time,
update_time,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{userId,jdbcType=BIGINT},
#{scenesName,jdbcType=VARCHAR},
#{typeKey,jdbcType=VARCHAR},
#{icon,jdbcType=BIGINT},
#{backPic,jdbcType=BIGINT},
#{viewTimes,jdbcType=BIGINT},
#{description,jdbcType=VARCHAR},
#{conditionRule,jdbcType=TINYINT},
#{executeCycle,jdbcType=TINYINT},
#{status,jdbcType=TINYINT},
#{remark,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
user_id = #{userId,jdbcType=BIGINT},
scenes_name = #{scenesName,jdbcType=VARCHAR},
type_key = #{typeKey,jdbcType=VARCHAR},
icon = #{icon,jdbcType=BIGINT},
back_pic = #{backPic,jdbcType=BIGINT},
view_times = #{viewTimes,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR},
condition_rule = #{conditionRule,jdbcType=TINYINT},
execute_cycle = #{executeCycle,jdbcType=TINYINT},
`status` = #{status,jdbcType=TINYINT},
remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartScense" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scense
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="scenesName != null and scenesName != ''">
scenes_name,
</if>
<if test="typeKey != null and typeKey != ''">
type_key,
</if>
<if test="icon != null">
icon,
</if>
<if test="backPic != null">
back_pic,
</if>
<if test="viewTimes != null">
view_times,
</if>
<if test="description != null and description != ''">
description,
</if>
<if test="conditionRule != null">
condition_rule,
</if>
<if test="executeCycle != null">
execute_cycle,
</if>
<if test="status != null">
`status`,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
<if test="scenesName != null and scenesName != ''">
#{scenesName,jdbcType=VARCHAR},
</if>
<if test="typeKey != null and typeKey != ''">
#{typeKey,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=BIGINT},
</if>
<if test="backPic != null">
#{backPic,jdbcType=BIGINT},
</if>
<if test="viewTimes != null">
#{viewTimes,jdbcType=BIGINT},
</if>
<if test="description != null and description != ''">
#{description,jdbcType=VARCHAR},
</if>
<if test="conditionRule != null">
#{conditionRule,jdbcType=TINYINT},
</if>
<if test="executeCycle != null">
#{executeCycle,jdbcType=TINYINT},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
<if test="scenesName != null and scenesName != ''">
scenes_name = #{scenesName,jdbcType=VARCHAR},
</if>
<if test="typeKey != null and typeKey != ''">
type_key = #{typeKey,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=BIGINT},
</if>
<if test="backPic != null">
back_pic = #{backPic,jdbcType=BIGINT},
</if>
<if test="viewTimes != null">
view_times = #{viewTimes,jdbcType=BIGINT},
</if>
<if test="description != null and description != ''">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="conditionRule != null">
condition_rule = #{conditionRule,jdbcType=TINYINT},
</if>
<if test="executeCycle != null">
execute_cycle = #{executeCycle,jdbcType=TINYINT},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartScenseTemplateMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartScenseTemplate">
<!--@mbg.generated-->
<!--@Table smart_scense_template-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="scenes_name" jdbcType="VARCHAR" property="scenesName"/>
<result column="type_key" jdbcType="VARCHAR" property="typeKey"/>
<result column="icon" jdbcType="BIGINT" property="icon"/>
<result column="back_pic" jdbcType="BIGINT" property="backPic"/>
<result column="view_times" jdbcType="BIGINT" property="viewTimes"/>
<result column="description" jdbcType="VARCHAR" property="description"/>
<result column="condition_rule" jdbcType="TINYINT" property="conditionRule"/>
<result column="execute_cycle" jdbcType="TINYINT" property="executeCycle"/>
<result column="status" jdbcType="TINYINT" property="status"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="create_by" jdbcType="BIGINT" property="createBy"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="update_by" jdbcType="BIGINT" property="updateBy"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, scenes_name, type_key, icon, back_pic, view_times, description, condition_rule,
execute_cycle, `status`, remark, create_time, create_by, update_time, update_by
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartScenseTemplateExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_scense_template-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_scense_template-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_scense_template-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartScenseTemplateExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_scense_template-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartScenseTemplate" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_scense_template (scenes_name, type_key, icon,-->
<!-- back_pic, view_times, description,-->
<!-- condition_rule, execute_cycle, `status`,-->
<!-- remark, create_time, create_by,-->
<!-- update_time, update_by)-->
<!-- values (#{scenesName,jdbcType=VARCHAR}, #{typeKey,jdbcType=VARCHAR},-->
<!-- #{icon,jdbcType=BIGINT},-->
<!-- #{backPic,jdbcType=BIGINT}, #{viewTimes,jdbcType=BIGINT}, #{description,jdbcType=VARCHAR},-->
<!-- #{conditionRule,jdbcType=TINYINT}, #{executeCycle,jdbcType=TINYINT},-->
<!-- #{status,jdbcType=TINYINT},-->
<!-- #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=BIGINT},-->
<!-- #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=BIGINT})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartScenseTemplate" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_scense_template-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="scenesName != null and scenesName != ''">-->
<!-- scenes_name,-->
<!-- </if>-->
<!-- <if test="typeKey != null and typeKey != ''">-->
<!-- type_key,-->
<!-- </if>-->
<!-- <if test="icon != null">-->
<!-- icon,-->
<!-- </if>-->
<!-- <if test="backPic != null">-->
<!-- back_pic,-->
<!-- </if>-->
<!-- <if test="viewTimes != null">-->
<!-- view_times,-->
<!-- </if>-->
<!-- <if test="description != null and description != ''">-->
<!-- description,-->
<!-- </if>-->
<!-- <if test="conditionRule != null">-->
<!-- condition_rule,-->
<!-- </if>-->
<!-- <if test="executeCycle != null">-->
<!-- execute_cycle,-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status`,-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark,-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time,-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- create_by,-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time,-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- update_by,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="scenesName != null and scenesName != ''">-->
<!-- #{scenesName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="typeKey != null and typeKey != ''">-->
<!-- #{typeKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="icon != null">-->
<!-- #{icon,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="backPic != null">-->
<!-- #{backPic,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="viewTimes != null">-->
<!-- #{viewTimes,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="description != null and description != ''">-->
<!-- #{description,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="conditionRule != null">-->
<!-- #{conditionRule,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="executeCycle != null">-->
<!-- #{executeCycle,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- #{createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- #{updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartScenseTemplateExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_scense_template-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense_template-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.scenesName != null">-->
<!-- scenes_name = #{record.scenesName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.typeKey != null">-->
<!-- type_key = #{record.typeKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.icon != null">-->
<!-- icon = #{record.icon,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.backPic != null">-->
<!-- back_pic = #{record.backPic,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.viewTimes != null">-->
<!-- view_times = #{record.viewTimes,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.description != null">-->
<!-- description = #{record.description,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.conditionRule != null">-->
<!-- condition_rule = #{record.conditionRule,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.executeCycle != null">-->
<!-- execute_cycle = #{record.executeCycle,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.status != null">-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.remark != null">-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.createTime != null">-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.createBy != null">-->
<!-- create_by = #{record.createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.updateTime != null">-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.updateBy != null">-->
<!-- update_by = #{record.updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense_template-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- scenes_name = #{record.scenesName,jdbcType=VARCHAR},-->
<!-- type_key = #{record.typeKey,jdbcType=VARCHAR},-->
<!-- icon = #{record.icon,jdbcType=BIGINT},-->
<!-- back_pic = #{record.backPic,jdbcType=BIGINT},-->
<!-- view_times = #{record.viewTimes,jdbcType=BIGINT},-->
<!-- description = #{record.description,jdbcType=VARCHAR},-->
<!-- condition_rule = #{record.conditionRule,jdbcType=TINYINT},-->
<!-- execute_cycle = #{record.executeCycle,jdbcType=TINYINT},-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- create_by = #{record.createBy,jdbcType=BIGINT},-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
<!-- update_by = #{record.updateBy,jdbcType=BIGINT}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective"-->
<!-- parameterType="com.glsx.smart.entity.SmartScenseTemplate">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense_template-->
<!-- <set>-->
<!-- <if test="scenesName != null and scenesName != ''">-->
<!-- scenes_name = #{scenesName,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="typeKey != null and typeKey != ''">-->
<!-- type_key = #{typeKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="icon != null">-->
<!-- icon = #{icon,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="backPic != null">-->
<!-- back_pic = #{backPic,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="viewTimes != null">-->
<!-- view_times = #{viewTimes,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="description != null and description != ''">-->
<!-- description = #{description,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="conditionRule != null">-->
<!-- condition_rule = #{conditionRule,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="executeCycle != null">-->
<!-- execute_cycle = #{executeCycle,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- create_by = #{createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- update_by = #{updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartScenseTemplate">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_scense_template-->
<!-- set scenes_name = #{scenesName,jdbcType=VARCHAR},-->
<!-- type_key = #{typeKey,jdbcType=VARCHAR},-->
<!-- icon = #{icon,jdbcType=BIGINT},-->
<!-- back_pic = #{backPic,jdbcType=BIGINT},-->
<!-- view_times = #{viewTimes,jdbcType=BIGINT},-->
<!-- description = #{description,jdbcType=VARCHAR},-->
<!-- condition_rule = #{conditionRule,jdbcType=TINYINT},-->
<!-- execute_cycle = #{executeCycle,jdbcType=TINYINT},-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- create_by = #{createBy,jdbcType=BIGINT},-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
<!-- update_by = #{updateBy,jdbcType=BIGINT}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_scense_template
<trim prefix="set" suffixOverrides=",">
<trim prefix="scenes_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.scenesName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="type_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="icon = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.icon,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="back_pic = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.backPic,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="view_times = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.viewTimes,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="description = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.description,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="condition_rule = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.conditionRule,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="execute_cycle = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.executeCycle,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_scense_template
<trim prefix="set" suffixOverrides=",">
<trim prefix="scenes_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.scenesName != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.scenesName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="type_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.typeKey != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.typeKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="icon = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.icon != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.icon,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="back_pic = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.backPic != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.backPic,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="view_times = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.viewTimes != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.viewTimes,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="description = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.description != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.description,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="condition_rule = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.conditionRule != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.conditionRule,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="execute_cycle = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.executeCycle != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.executeCycle,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.createBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scense_template
(scenes_name, type_key, icon, back_pic, view_times, description, condition_rule,
execute_cycle, `status`, remark, create_time, create_by, update_time, update_by
)
values
<foreach collection="list" item="item" separator=",">
(#{item.scenesName,jdbcType=VARCHAR}, #{item.typeKey,jdbcType=VARCHAR},
#{item.icon,jdbcType=BIGINT},
#{item.backPic,jdbcType=BIGINT}, #{item.viewTimes,jdbcType=BIGINT},
#{item.description,jdbcType=VARCHAR},
#{item.conditionRule,jdbcType=TINYINT}, #{item.executeCycle,jdbcType=TINYINT},
#{item.status,jdbcType=TINYINT}, #{item.remark,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP},
#{item.createBy,jdbcType=BIGINT}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.updateBy,jdbcType=BIGINT}
)
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartScenseTemplate" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scense_template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
scenes_name,
type_key,
icon,
back_pic,
view_times,
description,
condition_rule,
execute_cycle,
`status`,
remark,
create_time,
create_by,
update_time,
update_by,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{scenesName,jdbcType=VARCHAR},
#{typeKey,jdbcType=VARCHAR},
#{icon,jdbcType=BIGINT},
#{backPic,jdbcType=BIGINT},
#{viewTimes,jdbcType=BIGINT},
#{description,jdbcType=VARCHAR},
#{conditionRule,jdbcType=TINYINT},
#{executeCycle,jdbcType=TINYINT},
#{status,jdbcType=TINYINT},
#{remark,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=BIGINT},
#{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=BIGINT},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
scenes_name = #{scenesName,jdbcType=VARCHAR},
type_key = #{typeKey,jdbcType=VARCHAR},
icon = #{icon,jdbcType=BIGINT},
back_pic = #{backPic,jdbcType=BIGINT},
view_times = #{viewTimes,jdbcType=BIGINT},
description = #{description,jdbcType=VARCHAR},
condition_rule = #{conditionRule,jdbcType=TINYINT},
execute_cycle = #{executeCycle,jdbcType=TINYINT},
`status` = #{status,jdbcType=TINYINT},
remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=BIGINT},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartScenseTemplate" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scense_template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="scenesName != null and scenesName != ''">
scenes_name,
</if>
<if test="typeKey != null and typeKey != ''">
type_key,
</if>
<if test="icon != null">
icon,
</if>
<if test="backPic != null">
back_pic,
</if>
<if test="viewTimes != null">
view_times,
</if>
<if test="description != null and description != ''">
description,
</if>
<if test="conditionRule != null">
condition_rule,
</if>
<if test="executeCycle != null">
execute_cycle,
</if>
<if test="status != null">
`status`,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="updateBy != null">
update_by,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="scenesName != null and scenesName != ''">
#{scenesName,jdbcType=VARCHAR},
</if>
<if test="typeKey != null and typeKey != ''">
#{typeKey,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=BIGINT},
</if>
<if test="backPic != null">
#{backPic,jdbcType=BIGINT},
</if>
<if test="viewTimes != null">
#{viewTimes,jdbcType=BIGINT},
</if>
<if test="description != null and description != ''">
#{description,jdbcType=VARCHAR},
</if>
<if test="conditionRule != null">
#{conditionRule,jdbcType=TINYINT},
</if>
<if test="executeCycle != null">
#{executeCycle,jdbcType=TINYINT},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=BIGINT},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="scenesName != null and scenesName != ''">
scenes_name = #{scenesName,jdbcType=VARCHAR},
</if>
<if test="typeKey != null and typeKey != ''">
type_key = #{typeKey,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=BIGINT},
</if>
<if test="backPic != null">
back_pic = #{backPic,jdbcType=BIGINT},
</if>
<if test="viewTimes != null">
view_times = #{viewTimes,jdbcType=BIGINT},
</if>
<if test="description != null and description != ''">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="conditionRule != null">
condition_rule = #{conditionRule,jdbcType=TINYINT},
</if>
<if test="executeCycle != null">
execute_cycle = #{executeCycle,jdbcType=TINYINT},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartSysCodeMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartSysCode">
<!--@mbg.generated-->
<!--@Table smart_sys_code-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="dict_type" jdbcType="VARCHAR" property="dictType"/>
<result column="dict_key" jdbcType="VARCHAR" property="dictKey"/>
<result column="dict_value" jdbcType="VARCHAR" property="dictValue"/>
<result column="parent_key" jdbcType="VARCHAR" property="parentKey"/>
<result column="sort" jdbcType="TINYINT" property="sort"/>
<result column="status" jdbcType="TINYINT" property="status"/>
<result column="level" jdbcType="TINYINT" property="level"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="create_by" jdbcType="BIGINT" property="createBy"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="update_by" jdbcType="BIGINT" property="updateBy"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, dict_type, dict_key, dict_value, parent_key, sort, `status`, `level`, remark,
create_time, create_by, update_time, update_by
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartSysCodeExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_sys_code-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_sys_code-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_sys_code-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartSysCodeExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_sys_code-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartSysCode" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_sys_code (dict_type, dict_key, dict_value,-->
<!-- parent_key, sort, `status`,-->
<!-- `level`, remark, create_time,-->
<!-- create_by, update_time, update_by-->
<!-- )-->
<!-- values (#{dictType,jdbcType=VARCHAR}, #{dictKey,jdbcType=VARCHAR},-->
<!-- #{dictValue,jdbcType=VARCHAR},-->
<!-- #{parentKey,jdbcType=VARCHAR}, #{sort,jdbcType=TINYINT}, #{status,jdbcType=TINYINT},-->
<!-- #{level,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},-->
<!-- #{createBy,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=BIGINT}-->
<!-- )-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartSysCode" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_sys_code-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="dictType != null and dictType != ''">-->
<!-- dict_type,-->
<!-- </if>-->
<!-- <if test="dictKey != null and dictKey != ''">-->
<!-- dict_key,-->
<!-- </if>-->
<!-- <if test="dictValue != null and dictValue != ''">-->
<!-- dict_value,-->
<!-- </if>-->
<!-- <if test="parentKey != null and parentKey != ''">-->
<!-- parent_key,-->
<!-- </if>-->
<!-- <if test="sort != null">-->
<!-- sort,-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status`,-->
<!-- </if>-->
<!-- <if test="level != null">-->
<!-- `level`,-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark,-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time,-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- create_by,-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time,-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- update_by,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="dictType != null and dictType != ''">-->
<!-- #{dictType,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="dictKey != null and dictKey != ''">-->
<!-- #{dictKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="dictValue != null and dictValue != ''">-->
<!-- #{dictValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="parentKey != null and parentKey != ''">-->
<!-- #{parentKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="sort != null">-->
<!-- #{sort,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="level != null">-->
<!-- #{level,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- #{createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- #{updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartSysCodeExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_sys_code-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_sys_code-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.dictType != null">-->
<!-- dict_type = #{record.dictType,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.dictKey != null">-->
<!-- dict_key = #{record.dictKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.dictValue != null">-->
<!-- dict_value = #{record.dictValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.parentKey != null">-->
<!-- parent_key = #{record.parentKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.sort != null">-->
<!-- sort = #{record.sort,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.status != null">-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.level != null">-->
<!-- `level` = #{record.level,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.remark != null">-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.createTime != null">-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.createBy != null">-->
<!-- create_by = #{record.createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.updateTime != null">-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="record.updateBy != null">-->
<!-- update_by = #{record.updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_sys_code-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- dict_type = #{record.dictType,jdbcType=VARCHAR},-->
<!-- dict_key = #{record.dictKey,jdbcType=VARCHAR},-->
<!-- dict_value = #{record.dictValue,jdbcType=VARCHAR},-->
<!-- parent_key = #{record.parentKey,jdbcType=VARCHAR},-->
<!-- sort = #{record.sort,jdbcType=TINYINT},-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- `level` = #{record.level,jdbcType=TINYINT},-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- create_by = #{record.createBy,jdbcType=BIGINT},-->
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
<!-- update_by = #{record.updateBy,jdbcType=BIGINT}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective" parameterType="com.glsx.smart.entity.SmartSysCode">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_sys_code-->
<!-- <set>-->
<!-- <if test="dictType != null and dictType != ''">-->
<!-- dict_type = #{dictType,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="dictKey != null and dictKey != ''">-->
<!-- dict_key = #{dictKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="dictValue != null and dictValue != ''">-->
<!-- dict_value = #{dictValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="parentKey != null and parentKey != ''">-->
<!-- parent_key = #{parentKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="sort != null">-->
<!-- sort = #{sort,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="level != null">-->
<!-- `level` = #{level,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="createBy != null">-->
<!-- create_by = #{createBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="updateTime != null">-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- <if test="updateBy != null">-->
<!-- update_by = #{updateBy,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartSysCode">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_sys_code-->
<!-- set dict_type = #{dictType,jdbcType=VARCHAR},-->
<!-- dict_key = #{dictKey,jdbcType=VARCHAR},-->
<!-- dict_value = #{dictValue,jdbcType=VARCHAR},-->
<!-- parent_key = #{parentKey,jdbcType=VARCHAR},-->
<!-- sort = #{sort,jdbcType=TINYINT},-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- `level` = #{level,jdbcType=TINYINT},-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- create_by = #{createBy,jdbcType=BIGINT},-->
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
<!-- update_by = #{updateBy,jdbcType=BIGINT}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_sys_code
<trim prefix="set" suffixOverrides=",">
<trim prefix="dict_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.dictType,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="dict_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.dictKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="dict_value = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.dictValue,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="parent_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.parentKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="sort = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.sort,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="`level` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.level,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_sys_code
<trim prefix="set" suffixOverrides=",">
<trim prefix="dict_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.dictType != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.dictType,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="dict_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.dictKey != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.dictKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="dict_value = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.dictValue != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.dictValue,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="parent_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.parentKey != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.parentKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="sort = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sort != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.sort,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="`level` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.level != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.level,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.createBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.updateBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_code
(dict_type, dict_key, dict_value, parent_key, sort, `status`, `level`, remark, create_time,
create_by, update_time, update_by)
values
<foreach collection="list" item="item" separator=",">
(#{item.dictType,jdbcType=VARCHAR}, #{item.dictKey,jdbcType=VARCHAR},
#{item.dictValue,jdbcType=VARCHAR},
#{item.parentKey,jdbcType=VARCHAR}, #{item.sort,jdbcType=TINYINT},
#{item.status,jdbcType=TINYINT},
#{item.level,jdbcType=TINYINT}, #{item.remark,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP},
#{item.createBy,jdbcType=BIGINT}, #{item.updateTime,jdbcType=TIMESTAMP},
#{item.updateBy,jdbcType=BIGINT}
)
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSysCode" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
dict_type,
dict_key,
dict_value,
parent_key,
sort,
`status`,
`level`,
remark,
create_time,
create_by,
update_time,
update_by,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{dictType,jdbcType=VARCHAR},
#{dictKey,jdbcType=VARCHAR},
#{dictValue,jdbcType=VARCHAR},
#{parentKey,jdbcType=VARCHAR},
#{sort,jdbcType=TINYINT},
#{status,jdbcType=TINYINT},
#{level,jdbcType=TINYINT},
#{remark,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{createBy,jdbcType=BIGINT},
#{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=BIGINT},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
dict_type = #{dictType,jdbcType=VARCHAR},
dict_key = #{dictKey,jdbcType=VARCHAR},
dict_value = #{dictValue,jdbcType=VARCHAR},
parent_key = #{parentKey,jdbcType=VARCHAR},
sort = #{sort,jdbcType=TINYINT},
`status` = #{status,jdbcType=TINYINT},
`level` = #{level,jdbcType=TINYINT},
remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_by = #{createBy,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=BIGINT},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSysCode" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="dictType != null and dictType != ''">
dict_type,
</if>
<if test="dictKey != null and dictKey != ''">
dict_key,
</if>
<if test="dictValue != null and dictValue != ''">
dict_value,
</if>
<if test="parentKey != null and parentKey != ''">
parent_key,
</if>
<if test="sort != null">
sort,
</if>
<if test="status != null">
`status`,
</if>
<if test="level != null">
`level`,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="updateBy != null">
update_by,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="dictType != null and dictType != ''">
#{dictType,jdbcType=VARCHAR},
</if>
<if test="dictKey != null and dictKey != ''">
#{dictKey,jdbcType=VARCHAR},
</if>
<if test="dictValue != null and dictValue != ''">
#{dictValue,jdbcType=VARCHAR},
</if>
<if test="parentKey != null and parentKey != ''">
#{parentKey,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=TINYINT},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="level != null">
#{level,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
#{createBy,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=BIGINT},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="dictType != null and dictType != ''">
dict_type = #{dictType,jdbcType=VARCHAR},
</if>
<if test="dictKey != null and dictKey != ''">
dict_key = #{dictKey,jdbcType=VARCHAR},
</if>
<if test="dictValue != null and dictValue != ''">
dict_value = #{dictValue,jdbcType=VARCHAR},
</if>
<if test="parentKey != null and parentKey != ''">
parent_key = #{parentKey,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=TINYINT},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="level != null">
`level` = #{level,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=BIGINT},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartSysFileMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartSysFile">
<!--@mbg.generated-->
<!--@Table smart_sys_file-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="url" jdbcType="VARCHAR" property="url"/>
<result column="type" jdbcType="TINYINT" property="type"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, `name`, url, `type`, create_time
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartSysFileExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_sys_file-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_sys_file-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_sys_file-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartSysFileExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_sys_file-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartSysFile" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_sys_file (`name`, url, `type`,-->
<!-- create_time)-->
<!-- values (#{name,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT},-->
<!-- #{createTime,jdbcType=TIMESTAMP})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartSysFile" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_sys_file-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="name != null and name != ''">-->
<!-- `name`,-->
<!-- </if>-->
<!-- <if test="url != null and url != ''">-->
<!-- url,-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- `type`,-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="name != null and name != ''">-->
<!-- #{name,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="url != null and url != ''">-->
<!-- #{url,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- #{type,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartSysFileExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_sys_file-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_sys_file-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.name != null">-->
<!-- `name` = #{record.name,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.url != null">-->
<!-- url = #{record.url,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.type != null">-->
<!-- `type` = #{record.type,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.createTime != null">-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_sys_file-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- `name` = #{record.name,jdbcType=VARCHAR},-->
<!-- url = #{record.url,jdbcType=VARCHAR},-->
<!-- `type` = #{record.type,jdbcType=TINYINT},-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective" parameterType="com.glsx.smart.entity.SmartSysFile">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_sys_file-->
<!-- <set>-->
<!-- <if test="name != null and name != ''">-->
<!-- `name` = #{name,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="url != null and url != ''">-->
<!-- url = #{url,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- `type` = #{type,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartSysFile">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_sys_file-->
<!-- set `name` = #{name,jdbcType=VARCHAR},-->
<!-- url = #{url,jdbcType=VARCHAR},-->
<!-- `type` = #{type,jdbcType=TINYINT},-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_sys_file
<trim prefix="set" suffixOverrides=",">
<trim prefix="`name` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.name,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="url = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.url,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.type,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_sys_file
<trim prefix="set" suffixOverrides=",">
<trim prefix="`name` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.name != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.name,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="url = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.url != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.url,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.type != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.type,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_file
(`name`, url, `type`, create_time)
values
<foreach collection="list" item="item" separator=",">
(#{item.name,jdbcType=VARCHAR}, #{item.url,jdbcType=VARCHAR},
#{item.type,jdbcType=TINYINT},
#{item.createTime,jdbcType=TIMESTAMP})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSysFile" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_file
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
`name`,
url,
`type`,
create_time,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{name,jdbcType=VARCHAR},
#{url,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
`name` = #{name,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
`type` = #{type,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartSysFile" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_sys_file
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null and name != ''">
`name`,
</if>
<if test="url != null and url != ''">
url,
</if>
<if test="type != null">
`type`,
</if>
<if test="createTime != null">
create_time,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null and name != ''">
#{name,jdbcType=VARCHAR},
</if>
<if test="url != null and url != ''">
#{url,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="name != null and name != ''">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="url != null and url != ''">
url = #{url,jdbcType=VARCHAR},
</if>
<if test="type != null">
`type` = #{type,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartTemplateParamMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartTemplateParam">
<!--@mbg.generated-->
<!--@Table smart_template_param-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="template_id" jdbcType="BIGINT" property="templateId"/>
<result column="type" jdbcType="TINYINT" property="type"/>
<result column="sort" jdbcType="TINYINT" property="sort"/>
<result column="param_key" jdbcType="VARCHAR" property="paramKey"/>
<result column="param_value" jdbcType="VARCHAR" property="paramValue"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, template_id, `type`, sort, param_key, param_value
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartTemplateParamExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_template_param-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_template_param-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_template_param-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartTemplateParamExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_template_param-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartTemplateParam" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_template_param (template_id, `type`, sort,-->
<!-- param_key, param_value)-->
<!-- values (#{templateId,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, #{sort,jdbcType=TINYINT},-->
<!-- #{paramKey,jdbcType=VARCHAR}, #{paramValue,jdbcType=VARCHAR})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartTemplateParam" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_template_param-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="templateId != null">-->
<!-- template_id,-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- `type`,-->
<!-- </if>-->
<!-- <if test="sort != null">-->
<!-- sort,-->
<!-- </if>-->
<!-- <if test="paramKey != null and paramKey != ''">-->
<!-- param_key,-->
<!-- </if>-->
<!-- <if test="paramValue != null and paramValue != ''">-->
<!-- param_value,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="templateId != null">-->
<!-- #{templateId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- #{type,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="sort != null">-->
<!-- #{sort,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="paramKey != null and paramKey != ''">-->
<!-- #{paramKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="paramValue != null and paramValue != ''">-->
<!-- #{paramValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartTemplateParamExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_template_param-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_template_param-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.templateId != null">-->
<!-- template_id = #{record.templateId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.type != null">-->
<!-- `type` = #{record.type,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.sort != null">-->
<!-- sort = #{record.sort,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.paramKey != null">-->
<!-- param_key = #{record.paramKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.paramValue != null">-->
<!-- param_value = #{record.paramValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_template_param-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- template_id = #{record.templateId,jdbcType=BIGINT},-->
<!-- `type` = #{record.type,jdbcType=TINYINT},-->
<!-- sort = #{record.sort,jdbcType=TINYINT},-->
<!-- param_key = #{record.paramKey,jdbcType=VARCHAR},-->
<!-- param_value = #{record.paramValue,jdbcType=VARCHAR}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective"-->
<!-- parameterType="com.glsx.smart.entity.SmartTemplateParam">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_template_param-->
<!-- <set>-->
<!-- <if test="templateId != null">-->
<!-- template_id = #{templateId,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="type != null">-->
<!-- `type` = #{type,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="sort != null">-->
<!-- sort = #{sort,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="paramKey != null and paramKey != ''">-->
<!-- param_key = #{paramKey,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="paramValue != null and paramValue != ''">-->
<!-- param_value = #{paramValue,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartTemplateParam">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_template_param-->
<!-- set template_id = #{templateId,jdbcType=BIGINT},-->
<!-- `type` = #{type,jdbcType=TINYINT},-->
<!-- sort = #{sort,jdbcType=TINYINT},-->
<!-- param_key = #{paramKey,jdbcType=VARCHAR},-->
<!-- param_value = #{paramValue,jdbcType=VARCHAR}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_template_param
<trim prefix="set" suffixOverrides=",">
<trim prefix="template_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.templateId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.type,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="sort = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.sort,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="param_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.paramKey,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="param_value = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.paramValue,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_template_param
<trim prefix="set" suffixOverrides=",">
<trim prefix="template_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.templateId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.templateId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.type != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.type,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="sort = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.sort != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.sort,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="param_key = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.paramKey != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.paramKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="param_value = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.paramValue != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.paramValue,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_template_param
(template_id, `type`, sort, param_key, param_value)
values
<foreach collection="list" item="item" separator=",">
(#{item.templateId,jdbcType=BIGINT}, #{item.type,jdbcType=TINYINT},
#{item.sort,jdbcType=TINYINT},
#{item.paramKey,jdbcType=VARCHAR}, #{item.paramValue,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartTemplateParam" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_template_param
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
template_id,
`type`,
sort,
param_key,
param_value,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{templateId,jdbcType=BIGINT},
#{type,jdbcType=TINYINT},
#{sort,jdbcType=TINYINT},
#{paramKey,jdbcType=VARCHAR},
#{paramValue,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
template_id = #{templateId,jdbcType=BIGINT},
`type` = #{type,jdbcType=TINYINT},
sort = #{sort,jdbcType=TINYINT},
param_key = #{paramKey,jdbcType=VARCHAR},
param_value = #{paramValue,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartTemplateParam" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_template_param
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="templateId != null">
template_id,
</if>
<if test="type != null">
`type`,
</if>
<if test="sort != null">
sort,
</if>
<if test="paramKey != null and paramKey != ''">
param_key,
</if>
<if test="paramValue != null and paramValue != ''">
param_value,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="templateId != null">
#{templateId,jdbcType=BIGINT},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="sort != null">
#{sort,jdbcType=TINYINT},
</if>
<if test="paramKey != null and paramKey != ''">
#{paramKey,jdbcType=VARCHAR},
</if>
<if test="paramValue != null and paramValue != ''">
#{paramValue,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="templateId != null">
template_id = #{templateId,jdbcType=BIGINT},
</if>
<if test="type != null">
`type` = #{type,jdbcType=TINYINT},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=TINYINT},
</if>
<if test="paramKey != null and paramKey != ''">
param_key = #{paramKey,jdbcType=VARCHAR},
</if>
<if test="paramValue != null and paramValue != ''">
param_value = #{paramValue,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.smart.mapper.SmartUserRelationMapper">
<resultMap id="BaseResultMap" type="com.glsx.smart.entity.SmartUserRelation">
<!--@mbg.generated-->
<!--@Table smart_user_relation-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="phone" jdbcType="VARCHAR" property="phone"/>
<result column="password" jdbcType="VARCHAR" property="password"/>
<result column="channel" jdbcType="TINYINT" property="channel"/>
<result column="third_id" jdbcType="VARCHAR" property="thirdId"/>
<result column="status" jdbcType="TINYINT" property="status"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
</resultMap>
<!--<sql id="Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<!--<sql id="Update_By_Example_Where_Clause">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- <where>-->
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
<!-- <if test="criteria.valid">-->
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
<!-- <foreach collection="criteria.criteria" item="criterion">-->
<!-- <choose>-->
<!-- <when test="criterion.noValue">-->
<!-- and ${criterion.condition}-->
<!-- </when>-->
<!-- <when test="criterion.singleValue">-->
<!-- and ${criterion.condition} #{criterion.value}-->
<!-- </when>-->
<!-- <when test="criterion.betweenValue">-->
<!-- and ${criterion.condition} #{criterion.value} and-->
<!-- #{criterion.secondValue}-->
<!-- </when>-->
<!-- <when test="criterion.listValue">-->
<!-- and ${criterion.condition}-->
<!-- <foreach close=")" collection="criterion.value" item="listItem"-->
<!-- open="(" separator=",">-->
<!-- #{listItem}-->
<!-- </foreach>-->
<!-- </when>-->
<!-- </choose>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </if>-->
<!-- </foreach>-->
<!-- </where>-->
<!--</sql>-->
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, `name`, phone, `password`, channel, third_id, `status`, remark, create_time
</sql>
<!--<select id="selectByExample" parameterType="com.glsx.smart.entity.SmartUserRelationExample"-->
<!-- resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <if test="distinct">-->
<!-- distinct-->
<!-- </if>-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_user_relation-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!-- <if test="orderByClause != null">-->
<!-- order by ${orderByClause}-->
<!-- </if>-->
<!--</select>-->
<!--<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select-->
<!-- <include refid="Base_Column_List"/>-->
<!-- from smart_user_relation-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</select>-->
<!--<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_user_relation-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</delete>-->
<!--<delete id="deleteByExample" parameterType="com.glsx.smart.entity.SmartUserRelationExample">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- delete from smart_user_relation-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</delete>-->
<!--<insert id="insert" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartUserRelation" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_user_relation (`name`, phone, `password`,-->
<!-- channel, third_id, `status`,-->
<!-- remark, create_time)-->
<!-- values (#{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},-->
<!-- #{channel,jdbcType=TINYINT}, #{thirdId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},-->
<!-- #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})-->
<!--</insert>-->
<!--<insert id="insertSelective" keyColumn="id" keyProperty="id"-->
<!-- parameterType="com.glsx.smart.entity.SmartUserRelation" useGeneratedKeys="true">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- insert into smart_user_relation-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="name != null and name != ''">-->
<!-- `name`,-->
<!-- </if>-->
<!-- <if test="phone != null and phone != ''">-->
<!-- phone,-->
<!-- </if>-->
<!-- <if test="password != null and password != ''">-->
<!-- `password`,-->
<!-- </if>-->
<!-- <if test="channel != null">-->
<!-- channel,-->
<!-- </if>-->
<!-- <if test="thirdId != null and thirdId != ''">-->
<!-- third_id,-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status`,-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark,-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time,-->
<!-- </if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="name != null and name != ''">-->
<!-- #{name,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="phone != null and phone != ''">-->
<!-- #{phone,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="password != null and password != ''">-->
<!-- #{password,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="channel != null">-->
<!-- #{channel,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="thirdId != null and thirdId != ''">-->
<!-- #{thirdId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- </trim>-->
<!--</insert>-->
<!--<select id="countByExample" parameterType="com.glsx.smart.entity.SmartUserRelationExample"-->
<!-- resultType="java.lang.Long">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- select count(*) from smart_user_relation-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Example_Where_Clause"/>-->
<!-- </if>-->
<!--</select>-->
<!--<update id="updateByExampleSelective" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_user_relation-->
<!-- <set>-->
<!-- <if test="record.id != null">-->
<!-- id = #{record.id,jdbcType=BIGINT},-->
<!-- </if>-->
<!-- <if test="record.name != null">-->
<!-- `name` = #{record.name,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.phone != null">-->
<!-- phone = #{record.phone,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.password != null">-->
<!-- `password` = #{record.password,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.channel != null">-->
<!-- channel = #{record.channel,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.thirdId != null">-->
<!-- third_id = #{record.thirdId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.status != null">-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="record.remark != null">-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="record.createTime != null">-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- </set>-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByExample" parameterType="map">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_user_relation-->
<!-- set id = #{record.id,jdbcType=BIGINT},-->
<!-- `name` = #{record.name,jdbcType=VARCHAR},-->
<!-- phone = #{record.phone,jdbcType=VARCHAR},-->
<!-- `password` = #{record.password,jdbcType=VARCHAR},-->
<!-- channel = #{record.channel,jdbcType=TINYINT},-->
<!-- third_id = #{record.thirdId,jdbcType=VARCHAR},-->
<!-- `status` = #{record.status,jdbcType=TINYINT},-->
<!-- remark = #{record.remark,jdbcType=VARCHAR},-->
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP}-->
<!-- <if test="_parameter != null">-->
<!-- <include refid="Update_By_Example_Where_Clause"/>-->
<!-- </if>-->
<!--</update>-->
<!--<update id="updateByPrimaryKeySelective"-->
<!-- parameterType="com.glsx.smart.entity.SmartUserRelation">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_user_relation-->
<!-- <set>-->
<!-- <if test="name != null and name != ''">-->
<!-- `name` = #{name,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="phone != null and phone != ''">-->
<!-- phone = #{phone,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="password != null and password != ''">-->
<!-- `password` = #{password,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="channel != null">-->
<!-- channel = #{channel,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="thirdId != null and thirdId != ''">-->
<!-- third_id = #{thirdId,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="status != null">-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- </if>-->
<!-- <if test="remark != null and remark != ''">-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- </if>-->
<!-- <if test="createTime != null">-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
<!-- </if>-->
<!-- </set>-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<!--<update id="updateByPrimaryKey" parameterType="com.glsx.smart.entity.SmartUserRelation">-->
<!-- &lt;!&ndash;@mbg.generated&ndash;&gt;-->
<!-- update smart_user_relation-->
<!-- set `name` = #{name,jdbcType=VARCHAR},-->
<!-- phone = #{phone,jdbcType=VARCHAR},-->
<!-- `password` = #{password,jdbcType=VARCHAR},-->
<!-- channel = #{channel,jdbcType=TINYINT},-->
<!-- third_id = #{thirdId,jdbcType=VARCHAR},-->
<!-- `status` = #{status,jdbcType=TINYINT},-->
<!-- remark = #{remark,jdbcType=VARCHAR},-->
<!-- create_time = #{createTime,jdbcType=TIMESTAMP}-->
<!-- where id = #{id,jdbcType=BIGINT}-->
<!--</update>-->
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_user_relation
<trim prefix="set" suffixOverrides=",">
<trim prefix="`name` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.name,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="phone = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.phone,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`password` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.password,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="channel = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.channel,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="third_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.thirdId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update smart_user_relation
<trim prefix="set" suffixOverrides=",">
<trim prefix="`name` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.name != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.name,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="phone = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.phone != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.phone,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`password` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.password != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.password,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="channel = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.channel != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.channel,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="third_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.thirdId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.thirdId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="remark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=BIGINT} then
#{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_user_relation
(`name`, phone, `password`, channel, third_id, `status`, remark, create_time)
values
<foreach collection="list" item="item" separator=",">
(#{item.name,jdbcType=VARCHAR}, #{item.phone,jdbcType=VARCHAR},
#{item.password,jdbcType=VARCHAR},
#{item.channel,jdbcType=TINYINT}, #{item.thirdId,jdbcType=VARCHAR},
#{item.status,jdbcType=TINYINT},
#{item.remark,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartUserRelation" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_user_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
`name`,
phone,
`password`,
channel,
third_id,
`status`,
remark,
create_time,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
#{name,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR},
#{channel,jdbcType=TINYINT},
#{thirdId,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT},
#{remark,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
`name` = #{name,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
`password` = #{password,jdbcType=VARCHAR},
channel = #{channel,jdbcType=TINYINT},
third_id = #{thirdId,jdbcType=VARCHAR},
`status` = #{status,jdbcType=TINYINT},
remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
parameterType="com.glsx.smart.entity.SmartUserRelation" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_user_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null and name != ''">
`name`,
</if>
<if test="phone != null and phone != ''">
phone,
</if>
<if test="password != null and password != ''">
`password`,
</if>
<if test="channel != null">
channel,
</if>
<if test="thirdId != null and thirdId != ''">
third_id,
</if>
<if test="status != null">
`status`,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
<if test="createTime != null">
create_time,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="name != null and name != ''">
#{name,jdbcType=VARCHAR},
</if>
<if test="phone != null and phone != ''">
#{phone,jdbcType=VARCHAR},
</if>
<if test="password != null and password != ''">
#{password,jdbcType=VARCHAR},
</if>
<if test="channel != null">
#{channel,jdbcType=TINYINT},
</if>
<if test="thirdId != null and thirdId != ''">
#{thirdId,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
#{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=BIGINT},
</if>
<if test="name != null and name != ''">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="phone != null and phone != ''">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="password != null and password != ''">
`password` = #{password,jdbcType=VARCHAR},
</if>
<if test="channel != null">
channel = #{channel,jdbcType=TINYINT},
</if>
<if test="thirdId != null and thirdId != ''">
third_id = #{thirdId,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=TINYINT},
</if>
<if test="remark != null and remark != ''">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
</mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!