30 changed files with 2824 additions and 79 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,96 @@ |
|||
package com.techsor.datacenter.business.dao.auto; |
|||
|
|||
import com.techsor.datacenter.business.model.DeviceGroup; |
|||
import com.techsor.datacenter.business.model.DeviceGroupExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface DeviceGroupMapper { |
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
long countByExample(DeviceGroupExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int deleteByExample(DeviceGroupExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int insert(DeviceGroup record); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int insertSelective(DeviceGroup record); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
List<DeviceGroup> selectByExample(DeviceGroupExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
DeviceGroup selectByPrimaryKey(Long id); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int updateByExampleSelective(@Param("record") DeviceGroup record, @Param("example") DeviceGroupExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int updateByExample(@Param("record") DeviceGroup record, @Param("example") DeviceGroupExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int updateByPrimaryKeySelective(DeviceGroup record); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int updateByPrimaryKey(DeviceGroup record); |
|||
} |
|||
@ -0,0 +1,64 @@ |
|||
package com.techsor.datacenter.business.dao.auto; |
|||
|
|||
import com.techsor.datacenter.business.model.DeviceGroupRelation; |
|||
import com.techsor.datacenter.business.model.DeviceGroupRelationExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface DeviceGroupRelationMapper { |
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
long countByExample(DeviceGroupRelationExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int deleteByExample(DeviceGroupRelationExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int insert(DeviceGroupRelation record); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int insertSelective(DeviceGroupRelation record); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
List<DeviceGroupRelation> selectByExample(DeviceGroupRelationExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int updateByExampleSelective(@Param("record") DeviceGroupRelation record, @Param("example") DeviceGroupRelationExample example); |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
int updateByExample(@Param("record") DeviceGroupRelation record, @Param("example") DeviceGroupRelationExample example); |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
package com.techsor.datacenter.business.dao.ex; |
|||
|
|||
import java.util.List; |
|||
|
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import com.techsor.datacenter.business.dao.auto.DeviceGroupMapper; |
|||
|
|||
@Mapper |
|||
public interface DeviceGroupMapperExt extends DeviceGroupMapper { |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package com.techsor.datacenter.business.dao.ex; |
|||
|
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import com.techsor.datacenter.business.dao.auto.DeviceGroupRelationMapper; |
|||
|
|||
@Mapper |
|||
public interface DeviceGroupRelationMapperExt extends DeviceGroupRelationMapper { |
|||
|
|||
} |
|||
@ -0,0 +1,319 @@ |
|||
<?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.DeviceGroupMapper"> |
|||
<resultMap id="BaseResultMap" type="com.techsor.datacenter.business.model.DeviceGroup"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="company_id" jdbcType="BIGINT" property="companyId" /> |
|||
<result column="building_id" jdbcType="BIGINT" property="buildingId" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="flag" jdbcType="INTEGER" property="flag" /> |
|||
<result column="created_by" jdbcType="BIGINT" property="createdBy" /> |
|||
<result column="created_at" jdbcType="BIGINT" property="createdAt" /> |
|||
</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. |
|||
--> |
|||
id, company_id, building_id, `name`, remark, flag, created_by, created_at |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.techsor.datacenter.business.model.DeviceGroupExample" 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 dashboard_device_group |
|||
<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"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from dashboard_device_group |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
delete from dashboard_device_group |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.techsor.datacenter.business.model.DeviceGroupExample"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
delete from dashboard_device_group |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.techsor.datacenter.business.model.DeviceGroup"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> |
|||
SELECT LAST_INSERT_ID() |
|||
</selectKey> |
|||
insert into dashboard_device_group (company_id, building_id, `name`, |
|||
remark, flag, created_by, |
|||
created_at) |
|||
values (#{companyId,jdbcType=BIGINT}, #{buildingId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, |
|||
#{remark,jdbcType=VARCHAR}, #{flag,jdbcType=INTEGER}, #{createdBy,jdbcType=BIGINT}, |
|||
#{createdAt,jdbcType=BIGINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.DeviceGroup"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> |
|||
SELECT LAST_INSERT_ID() |
|||
</selectKey> |
|||
insert into dashboard_device_group |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="companyId != null"> |
|||
company_id, |
|||
</if> |
|||
<if test="buildingId != null"> |
|||
building_id, |
|||
</if> |
|||
<if test="name != null"> |
|||
`name`, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="flag != null"> |
|||
flag, |
|||
</if> |
|||
<if test="createdBy != null"> |
|||
created_by, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="companyId != null"> |
|||
#{companyId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="buildingId != null"> |
|||
#{buildingId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="flag != null"> |
|||
#{flag,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createdBy != null"> |
|||
#{createdBy,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.techsor.datacenter.business.model.DeviceGroupExample" resultType="java.lang.Long"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
select count(*) from dashboard_device_group |
|||
<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 dashboard_device_group |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.companyId != null"> |
|||
company_id = #{record.companyId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.buildingId != null"> |
|||
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
`name` = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.flag != null"> |
|||
flag = #{record.flag,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.createdBy != null"> |
|||
created_by = #{record.createdBy,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,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 dashboard_device_group |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
company_id = #{record.companyId,jdbcType=BIGINT}, |
|||
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|||
`name` = #{record.name,jdbcType=VARCHAR}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
flag = #{record.flag,jdbcType=INTEGER}, |
|||
created_by = #{record.createdBy,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=BIGINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.techsor.datacenter.business.model.DeviceGroup"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
update dashboard_device_group |
|||
<set> |
|||
<if test="companyId != null"> |
|||
company_id = #{companyId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="buildingId != null"> |
|||
building_id = #{buildingId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
`name` = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="flag != null"> |
|||
flag = #{flag,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createdBy != null"> |
|||
created_by = #{createdBy,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.techsor.datacenter.business.model.DeviceGroup"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
update dashboard_device_group |
|||
set company_id = #{companyId,jdbcType=BIGINT}, |
|||
building_id = #{buildingId,jdbcType=BIGINT}, |
|||
`name` = #{name,jdbcType=VARCHAR}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
flag = #{flag,jdbcType=INTEGER}, |
|||
created_by = #{createdBy,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=BIGINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
|||
@ -0,0 +1,185 @@ |
|||
<?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.DeviceGroupRelationMapper"> |
|||
<resultMap id="BaseResultMap" type="com.techsor.datacenter.business.model.DeviceGroupRelation"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
<result column="device_info_id" jdbcType="INTEGER" property="deviceInfoId" /> |
|||
<result column="device_group_id" jdbcType="BIGINT" property="deviceGroupId" /> |
|||
</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. |
|||
--> |
|||
device_info_id, device_group_id |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.techsor.datacenter.business.model.DeviceGroupRelationExample" 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 dashboard_device_group_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.DeviceGroupRelationExample"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
delete from dashboard_device_group_relation |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.techsor.datacenter.business.model.DeviceGroupRelation"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
insert into dashboard_device_group_relation (device_info_id, device_group_id) |
|||
values (#{deviceInfoId,jdbcType=INTEGER}, #{deviceGroupId,jdbcType=BIGINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.DeviceGroupRelation"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
insert into dashboard_device_group_relation |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="deviceInfoId != null"> |
|||
device_info_id, |
|||
</if> |
|||
<if test="deviceGroupId != null"> |
|||
device_group_id, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="deviceInfoId != null"> |
|||
#{deviceInfoId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="deviceGroupId != null"> |
|||
#{deviceGroupId,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.techsor.datacenter.business.model.DeviceGroupRelationExample" resultType="java.lang.Long"> |
|||
<!-- |
|||
WARNING - @mbg.generated |
|||
This element is automatically generated by MyBatis Generator, do not modify. |
|||
--> |
|||
select count(*) from dashboard_device_group_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 dashboard_device_group_relation |
|||
<set> |
|||
<if test="record.deviceInfoId != null"> |
|||
device_info_id = #{record.deviceInfoId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.deviceGroupId != null"> |
|||
device_group_id = #{record.deviceGroupId,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 dashboard_device_group_relation |
|||
set device_info_id = #{record.deviceInfoId,jdbcType=INTEGER}, |
|||
device_group_id = #{record.deviceGroupId,jdbcType=BIGINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
</mapper> |
|||
@ -0,0 +1,40 @@ |
|||
package com.techsor.datacenter.business.importexcel.deviceinfo; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
|
|||
public class AlarmLevelMapping { |
|||
|
|||
// 初始化映射关系
|
|||
public static final Map<Integer, Map<String, Integer>> statusMap = new HashMap<>(); |
|||
// 中文映射
|
|||
public static final Map<String, Integer> zhMap = new HashMap<>(); |
|||
// 英文映射
|
|||
public static final Map<String, Integer> enMap = new HashMap<>(); |
|||
// 日文映射
|
|||
public static final Map<String, Integer> jaMap = new HashMap<>(); |
|||
|
|||
static { |
|||
zhMap.put("正常", 1); |
|||
zhMap.put("紧急", 2); |
|||
zhMap.put("严重故障", 3); |
|||
zhMap.put("中等故障", 4); |
|||
zhMap.put("轻微故障", 5); |
|||
|
|||
enMap.put("Normal", 1); |
|||
enMap.put("Emergency", 2); |
|||
enMap.put("Critical Failure", 3); |
|||
enMap.put("Medium Failure", 4); |
|||
enMap.put("Minor Failure", 5); |
|||
|
|||
jaMap.put("正常", 1); |
|||
jaMap.put("緊急", 2); |
|||
jaMap.put("重大故障", 3); |
|||
jaMap.put("中程度の故障", 4); |
|||
jaMap.put("軽微な故障", 5); |
|||
|
|||
statusMap.put(0, zhMap); |
|||
statusMap.put(1, enMap); |
|||
statusMap.put(2, jaMap); |
|||
} |
|||
} |
|||
@ -0,0 +1,14 @@ |
|||
package com.techsor.datacenter.business.importexcel.deviceinfo; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class DeviceGroupRelationExcel { |
|||
|
|||
private Integer deviceInfoId; |
|||
|
|||
private Long deviceGroupId; |
|||
|
|||
private String deviceId; |
|||
|
|||
} |
|||
@ -0,0 +1,302 @@ |
|||
package com.techsor.datacenter.business.model; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class DeviceGroup implements Serializable { |
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group.id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Long id; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group.company_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Long companyId; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group.building_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Long buildingId; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group.name |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group.remark |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group.flag |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Integer flag; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group.created_by |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Long createdBy; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group.created_at |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Long createdAt; |
|||
|
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column dashboard_device_group.id |
|||
* |
|||
* @return the value of dashboard_device_group.id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group.id |
|||
* |
|||
* @param id the value for dashboard_device_group.id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column dashboard_device_group.company_id |
|||
* |
|||
* @return the value of dashboard_device_group.company_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Long getCompanyId() { |
|||
return companyId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group.company_id |
|||
* |
|||
* @param companyId the value for dashboard_device_group.company_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setCompanyId(Long companyId) { |
|||
this.companyId = companyId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column dashboard_device_group.building_id |
|||
* |
|||
* @return the value of dashboard_device_group.building_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Long getBuildingId() { |
|||
return buildingId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group.building_id |
|||
* |
|||
* @param buildingId the value for dashboard_device_group.building_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setBuildingId(Long buildingId) { |
|||
this.buildingId = buildingId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column dashboard_device_group.name |
|||
* |
|||
* @return the value of dashboard_device_group.name |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group.name |
|||
* |
|||
* @param name the value for dashboard_device_group.name |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column dashboard_device_group.remark |
|||
* |
|||
* @return the value of dashboard_device_group.remark |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group.remark |
|||
* |
|||
* @param remark the value for dashboard_device_group.remark |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column dashboard_device_group.flag |
|||
* |
|||
* @return the value of dashboard_device_group.flag |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Integer getFlag() { |
|||
return flag; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group.flag |
|||
* |
|||
* @param flag the value for dashboard_device_group.flag |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setFlag(Integer flag) { |
|||
this.flag = flag; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column dashboard_device_group.created_by |
|||
* |
|||
* @return the value of dashboard_device_group.created_by |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Long getCreatedBy() { |
|||
return createdBy; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group.created_by |
|||
* |
|||
* @param createdBy the value for dashboard_device_group.created_by |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setCreatedBy(Long createdBy) { |
|||
this.createdBy = createdBy; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column dashboard_device_group.created_at |
|||
* |
|||
* @return the value of dashboard_device_group.created_at |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Long getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group.created_at |
|||
* |
|||
* @param createdAt the value for dashboard_device_group.created_at |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setCreatedAt(Long createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
@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(", companyId=").append(companyId); |
|||
sb.append(", buildingId=").append(buildingId); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", flag=").append(flag); |
|||
sb.append(", createdBy=").append(createdBy); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", serialVersionUID=").append(serialVersionUID); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,802 @@ |
|||
package com.techsor.datacenter.business.model; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
public class DeviceGroupExample { |
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected String orderByClause; |
|||
|
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected boolean distinct; |
|||
|
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public DeviceGroupExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group |
|||
* |
|||
* @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 dashboard_device_group |
|||
* |
|||
* @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 dashboard_device_group |
|||
* |
|||
* @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 dashboard_device_group |
|||
* |
|||
* @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 dashboard_device_group |
|||
* |
|||
* @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 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 andCompanyIdIsNull() { |
|||
addCriterion("company_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdIsNotNull() { |
|||
addCriterion("company_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdEqualTo(Long value) { |
|||
addCriterion("company_id =", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdNotEqualTo(Long value) { |
|||
addCriterion("company_id <>", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdGreaterThan(Long value) { |
|||
addCriterion("company_id >", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("company_id >=", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdLessThan(Long value) { |
|||
addCriterion("company_id <", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("company_id <=", value, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdIn(List<Long> values) { |
|||
addCriterion("company_id in", values, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdNotIn(List<Long> values) { |
|||
addCriterion("company_id not in", values, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdBetween(Long value1, Long value2) { |
|||
addCriterion("company_id between", value1, value2, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("company_id not between", value1, value2, "companyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdIsNull() { |
|||
addCriterion("building_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdIsNotNull() { |
|||
addCriterion("building_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdEqualTo(Long value) { |
|||
addCriterion("building_id =", value, "buildingId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdNotEqualTo(Long value) { |
|||
addCriterion("building_id <>", value, "buildingId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdGreaterThan(Long value) { |
|||
addCriterion("building_id >", value, "buildingId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("building_id >=", value, "buildingId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdLessThan(Long value) { |
|||
addCriterion("building_id <", value, "buildingId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("building_id <=", value, "buildingId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdIn(List<Long> values) { |
|||
addCriterion("building_id in", values, "buildingId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdNotIn(List<Long> values) { |
|||
addCriterion("building_id not in", values, "buildingId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdBetween(Long value1, Long value2) { |
|||
addCriterion("building_id between", value1, value2, "buildingId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBuildingIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("building_id not between", value1, value2, "buildingId"); |
|||
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 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 andFlagIsNull() { |
|||
addCriterion("flag is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagIsNotNull() { |
|||
addCriterion("flag is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagEqualTo(Integer value) { |
|||
addCriterion("flag =", value, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagNotEqualTo(Integer value) { |
|||
addCriterion("flag <>", value, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagGreaterThan(Integer value) { |
|||
addCriterion("flag >", value, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("flag >=", value, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagLessThan(Integer value) { |
|||
addCriterion("flag <", value, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagLessThanOrEqualTo(Integer value) { |
|||
addCriterion("flag <=", value, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagIn(List<Integer> values) { |
|||
addCriterion("flag in", values, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagNotIn(List<Integer> values) { |
|||
addCriterion("flag not in", values, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagBetween(Integer value1, Integer value2) { |
|||
addCriterion("flag between", value1, value2, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFlagNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("flag not between", value1, value2, "flag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByIsNull() { |
|||
addCriterion("created_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByIsNotNull() { |
|||
addCriterion("created_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByEqualTo(Long value) { |
|||
addCriterion("created_by =", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByNotEqualTo(Long value) { |
|||
addCriterion("created_by <>", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByGreaterThan(Long value) { |
|||
addCriterion("created_by >", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("created_by >=", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByLessThan(Long value) { |
|||
addCriterion("created_by <", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByLessThanOrEqualTo(Long value) { |
|||
addCriterion("created_by <=", value, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByIn(List<Long> values) { |
|||
addCriterion("created_by in", values, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByNotIn(List<Long> values) { |
|||
addCriterion("created_by not in", values, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByBetween(Long value1, Long value2) { |
|||
addCriterion("created_by between", value1, value2, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedByNotBetween(Long value1, Long value2) { |
|||
addCriterion("created_by not between", value1, value2, "createdBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Long value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Long value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Long value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Long value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Long value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Long> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Long> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Long value1, Long value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Long value1, Long value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* This class was generated by MyBatis Generator. |
|||
* This class corresponds to the database table dashboard_device_group |
|||
* |
|||
* @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 dashboard_device_group |
|||
* |
|||
* @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,98 @@ |
|||
package com.techsor.datacenter.business.model; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class DeviceGroupRelation implements Serializable { |
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group_relation.device_info_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Integer deviceInfoId; |
|||
|
|||
/** |
|||
* |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database column dashboard_device_group_relation.device_group_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
private Long deviceGroupId; |
|||
|
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table dashboard_device_group_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 dashboard_device_group_relation.device_info_id |
|||
* |
|||
* @return the value of dashboard_device_group_relation.device_info_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Integer getDeviceInfoId() { |
|||
return deviceInfoId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group_relation.device_info_id |
|||
* |
|||
* @param deviceInfoId the value for dashboard_device_group_relation.device_info_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setDeviceInfoId(Integer deviceInfoId) { |
|||
this.deviceInfoId = deviceInfoId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method returns the value of the database column dashboard_device_group_relation.device_group_id |
|||
* |
|||
* @return the value of dashboard_device_group_relation.device_group_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public Long getDeviceGroupId() { |
|||
return deviceGroupId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method sets the value of the database column dashboard_device_group_relation.device_group_id |
|||
* |
|||
* @param deviceGroupId the value for dashboard_device_group_relation.device_group_id |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public void setDeviceGroupId(Long deviceGroupId) { |
|||
this.deviceGroupId = deviceGroupId; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", deviceInfoId=").append(deviceInfoId); |
|||
sb.append(", deviceGroupId=").append(deviceGroupId); |
|||
sb.append(", serialVersionUID=").append(serialVersionUID); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,422 @@ |
|||
package com.techsor.datacenter.business.model; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
public class DeviceGroupRelationExample { |
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected String orderByClause; |
|||
|
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected boolean distinct; |
|||
|
|||
/** |
|||
* This field was generated by MyBatis Generator. |
|||
* This field corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public DeviceGroupRelationExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_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 dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_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 dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_relation |
|||
* |
|||
* @mbg.generated |
|||
*/ |
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
/** |
|||
* This method was generated by MyBatis Generator. |
|||
* This method corresponds to the database table dashboard_device_group_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 dashboard_device_group_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 dashboard_device_group_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 dashboard_device_group_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 dashboard_device_group_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 dashboard_device_group_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 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(Integer value) { |
|||
addCriterion("device_info_id =", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdNotEqualTo(Integer value) { |
|||
addCriterion("device_info_id <>", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdGreaterThan(Integer value) { |
|||
addCriterion("device_info_id >", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("device_info_id >=", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdLessThan(Integer value) { |
|||
addCriterion("device_info_id <", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdLessThanOrEqualTo(Integer value) { |
|||
addCriterion("device_info_id <=", value, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdIn(List<Integer> values) { |
|||
addCriterion("device_info_id in", values, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdNotIn(List<Integer> values) { |
|||
addCriterion("device_info_id not in", values, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdBetween(Integer value1, Integer value2) { |
|||
addCriterion("device_info_id between", value1, value2, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceInfoIdNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("device_info_id not between", value1, value2, "deviceInfoId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdIsNull() { |
|||
addCriterion("device_group_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdIsNotNull() { |
|||
addCriterion("device_group_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdEqualTo(Long value) { |
|||
addCriterion("device_group_id =", value, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdNotEqualTo(Long value) { |
|||
addCriterion("device_group_id <>", value, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdGreaterThan(Long value) { |
|||
addCriterion("device_group_id >", value, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("device_group_id >=", value, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdLessThan(Long value) { |
|||
addCriterion("device_group_id <", value, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("device_group_id <=", value, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdIn(List<Long> values) { |
|||
addCriterion("device_group_id in", values, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdNotIn(List<Long> values) { |
|||
addCriterion("device_group_id not in", values, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdBetween(Long value1, Long value2) { |
|||
addCriterion("device_group_id between", value1, value2, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeviceGroupIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("device_group_id not between", value1, value2, "deviceGroupId"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* This class was generated by MyBatis Generator. |
|||
* This class corresponds to the database table dashboard_device_group_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 dashboard_device_group_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); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue