18 changed files with 1109 additions and 16 deletions
@ -0,0 +1,64 @@ |
|||
package com.techsor.datacenter.business.dao.auto; |
|||
|
|||
import com.techsor.datacenter.business.model.SalesforceDeviceRelation; |
|||
import com.techsor.datacenter.business.model.SalesforceDeviceRelationExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface SalesforceDeviceRelationMapper { |
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
long countByExample(SalesforceDeviceRelationExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int deleteByExample(SalesforceDeviceRelationExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int insert(SalesforceDeviceRelation record); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int insertSelective(SalesforceDeviceRelation record); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
List<SalesforceDeviceRelation> selectByExample(SalesforceDeviceRelationExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int updateByExampleSelective(@Param("record") SalesforceDeviceRelation record, @Param("example") SalesforceDeviceRelationExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int updateByExample(@Param("record") SalesforceDeviceRelation record, @Param("example") SalesforceDeviceRelationExample example); |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package com.techsor.datacenter.business.dao.ex; |
|||
|
|||
import com.techsor.datacenter.business.dao.auto.SalesforceDeviceRelationMapper; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
@Mapper |
|||
public interface SalesforceDeviceRelationMapperExt extends SalesforceDeviceRelationMapper { |
|||
} |
|||
@ -0,0 +1,198 @@ |
|||
<?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.techsor.datacenter.business.dao.auto.SalesforceDeviceRelationMapper"> |
|||
<resultMap id="BaseResultMap" type="com.techsor.datacenter.business.model.SalesforceDeviceRelation"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
<result column="salesforce_info_id" jdbcType="BIGINT" property="salesforceInfoId" /> |
|||
<result column="device_info_id" jdbcType="BIGINT" property="deviceInfoId" /> |
|||
<result column="create_time" jdbcType="BIGINT" property="createTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
<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"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
<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"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
salesforce_info_id, device_info_id, create_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.techsor.datacenter.business.model.SalesforceDeviceRelationExample" resultMap="BaseResultMap"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
'true' as QUERYID, |
|||
<include refid="Base_Column_List" /> |
|||
from salesforce_device_relation |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<delete id="deleteByExample" parameterType="com.techsor.datacenter.business.model.SalesforceDeviceRelationExample"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
delete from salesforce_device_relation |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.techsor.datacenter.business.model.SalesforceDeviceRelation"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
insert into salesforce_device_relation (salesforce_info_id, device_info_id, create_time |
|||
) |
|||
values (#{salesforceInfoId,jdbcType=BIGINT}, #{deviceInfoId,jdbcType=BIGINT}, #{createTime,jdbcType=BIGINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.SalesforceDeviceRelation"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
insert into salesforce_device_relation |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="salesforceInfoId != null"> |
|||
salesforce_info_id, |
|||
</if> |
|||
<if test="deviceInfoId != null"> |
|||
device_info_id, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="salesforceInfoId != null"> |
|||
#{salesforceInfoId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="deviceInfoId != null"> |
|||
#{deviceInfoId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.techsor.datacenter.business.model.SalesforceDeviceRelationExample" resultType="java.lang.Long"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
select count(*) from salesforce_device_relation |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
update salesforce_device_relation |
|||
<set> |
|||
<if test="record.salesforceInfoId != null"> |
|||
salesforce_info_id = #{record.salesforceInfoId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.deviceInfoId != null"> |
|||
device_info_id = #{record.deviceInfoId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
update salesforce_device_relation |
|||
set salesforce_info_id = #{record.salesforceInfoId,jdbcType=BIGINT}, |
|||
device_info_id = #{record.deviceInfoId,jdbcType=BIGINT}, |
|||
create_time = #{record.createTime,jdbcType=BIGINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
</mapper> |
|||
@ -0,0 +1,21 @@ |
|||
package com.techsor.datacenter.business.dto.salesforce; |
|||
|
|||
import com.techsor.datacenter.business.dto.BaseSearchParams; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Mr.Jiang |
|||
* @time 2022年7月21日 下午8:50:31 |
|||
*/ |
|||
@Data |
|||
public class SalesforceBingDeviceSearchParams extends BaseSearchParams{ |
|||
|
|||
|
|||
// @Schema(description = "Salesforce primary key ID", example = "1")
|
|||
// private Long id;
|
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,132 @@ |
|||
package com.techsor.datacenter.business.model; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class SalesforceDeviceRelation implements Serializable { |
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column salesforce_device_relation.salesforce_info_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Long salesforceInfoId; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column salesforce_device_relation.device_info_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Long deviceInfoId; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column salesforce_device_relation.create_time |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Long createTime; |
|||
|
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column salesforce_device_relation.salesforce_info_id |
|||
* |
|||
* @return the value of salesforce_device_relation.salesforce_info_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Long getSalesforceInfoId() { |
|||
return salesforceInfoId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column salesforce_device_relation.salesforce_info_id |
|||
* |
|||
* @param salesforceInfoId the value for salesforce_device_relation.salesforce_info_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setSalesforceInfoId(Long salesforceInfoId) { |
|||
this.salesforceInfoId = salesforceInfoId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column salesforce_device_relation.device_info_id |
|||
* |
|||
* @return the value of salesforce_device_relation.device_info_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Long getDeviceInfoId() { |
|||
return deviceInfoId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column salesforce_device_relation.device_info_id |
|||
* |
|||
* @param deviceInfoId the value for salesforce_device_relation.device_info_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setDeviceInfoId(Long deviceInfoId) { |
|||
this.deviceInfoId = deviceInfoId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column salesforce_device_relation.create_time |
|||
* |
|||
* @return the value of salesforce_device_relation.create_time |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Long getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column salesforce_device_relation.create_time |
|||
* |
|||
* @param createTime the value for salesforce_device_relation.create_time |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setCreateTime(Long createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", salesforceInfoId=").append(salesforceInfoId); |
|||
sb.append(", deviceInfoId=").append(deviceInfoId); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", serialVersionUID=").append(serialVersionUID); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,482 @@ |
|||
package com.techsor.datacenter.business.model; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
public class SalesforceDeviceRelationExample { |
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected String orderByClause; |
|||
|
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected boolean distinct; |
|||
|
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public SalesforceDeviceRelationExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
/** |
|||
* This class was generated by MyBatis Generator. |
|||
* This class corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
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 andSalesforceInfoIdIsNull() { |
|||
addCriterion("salesforce_info_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdIsNotNull() { |
|||
addCriterion("salesforce_info_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdEqualTo(Long value) { |
|||
addCriterion("salesforce_info_id =", value, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdNotEqualTo(Long value) { |
|||
addCriterion("salesforce_info_id <>", value, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdGreaterThan(Long value) { |
|||
addCriterion("salesforce_info_id >", value, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("salesforce_info_id >=", value, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdLessThan(Long value) { |
|||
addCriterion("salesforce_info_id <", value, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("salesforce_info_id <=", value, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdIn(List<Long> values) { |
|||
addCriterion("salesforce_info_id in", values, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdNotIn(List<Long> values) { |
|||
addCriterion("salesforce_info_id not in", values, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdBetween(Long value1, Long value2) { |
|||
addCriterion("salesforce_info_id between", value1, value2, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSalesforceInfoIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("salesforce_info_id not between", value1, value2, "salesforceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdIsNull() { |
|||
addCriterion("device_info_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdIsNotNull() { |
|||
addCriterion("device_info_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdEqualTo(Long value) { |
|||
addCriterion("device_info_id =", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdNotEqualTo(Long value) { |
|||
addCriterion("device_info_id <>", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdGreaterThan(Long value) { |
|||
addCriterion("device_info_id >", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("device_info_id >=", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdLessThan(Long value) { |
|||
addCriterion("device_info_id <", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("device_info_id <=", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdIn(List<Long> values) { |
|||
addCriterion("device_info_id in", values, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdNotIn(List<Long> values) { |
|||
addCriterion("device_info_id not in", values, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdBetween(Long value1, Long value2) { |
|||
addCriterion("device_info_id between", value1, value2, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("device_info_id not between", value1, value2, "deviceInfoId"); |
|||
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(Long value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Long value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Long value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Long value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Long> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Long> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Long value1, Long value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* This class was generated by MyBatis Generator. |
|||
* This class corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated do_not_delete_during_merge |
|||
*/ |
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* This class was generated by MyBatis Generator. |
|||
* This class corresponds to the database table salesforce_device_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
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; |
|||
|
|||
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; |
|||
} |
|||
|
|||
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); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,46 @@ |
|||
package com.techsor.datacenter.business.vo.device; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/****** |
|||
* create table device_info |
|||
* ( |
|||
* id int auto_increment |
|||
* primary key, |
|||
* device_id varchar(45) not null, |
|||
* device_sn varchar(99) null comment '用于记录SN,当SN与deviceId不同时使用', |
|||
* type_id int null, |
|||
* wsclient_id int null, |
|||
* space_id bigint null comment '空间ID', |
|||
* device_name varchar(200) null comment '设备名称', |
|||
* remark varchar(500) null comment '备注信息', |
|||
* building_id bigint null comment '楼宇ID', |
|||
* assset_id bigint null comment '资产ID', |
|||
* flag int null, |
|||
* company_id bigint null comment '公司ID', |
|||
* created_by bigint null, |
|||
* created_timestamp timestamp null, |
|||
* updated_by bigint null, |
|||
* updated_timestamp bigint null, |
|||
* project_id bigint null comment '项目ID', |
|||
* floor_id bigint null comment '楼宇ID', |
|||
* constraint device_id_UNIQUE |
|||
* unique (device_id) |
|||
* ) |
|||
* comment '需要解析的zeta设备'; |
|||
* |
|||
* **/ |
|||
@Data |
|||
public class DeviceShortVO { |
|||
|
|||
private Long id; |
|||
|
|||
private String deviceId; |
|||
|
|||
private String deviceSn; |
|||
|
|||
private String deviceName; |
|||
|
|||
} |
|||
Loading…
Reference in new issue