Przeglądaj źródła

品类管理新增接口

enderx 8 lat temu
rodzic
commit
64459d512e

+ 107 - 0
src/main/java/com/goafanti/common/dao/BusinessVarietiesMapper.java

@@ -0,0 +1,107 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.admin.bo.BusinessVarietiesBo;
+import com.goafanti.common.model.BusinessVarieties;
+import com.goafanti.common.model.BusinessVarietiesExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface BusinessVarietiesMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    long countByExample(BusinessVarietiesExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    int deleteByExample(BusinessVarietiesExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    int insert(BusinessVarieties record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    int insertSelective(BusinessVarieties record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    List<BusinessVarieties> selectByExample(BusinessVarietiesExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    BusinessVarieties selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    int updateByExampleSelective(@Param("record") BusinessVarieties record, @Param("example") BusinessVarietiesExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    int updateByExample(@Param("record") BusinessVarieties record, @Param("example") BusinessVarietiesExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    int updateByPrimaryKeySelective(BusinessVarieties record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    int updateByPrimaryKey(BusinessVarieties record);
+    
+    String getCount(String superId);
+	
+	String getCid(String superId);
+	
+	List<BusinessVarietiesBo> getSuperList();
+	
+	BusinessVarietiesBo editVarieties(@Param("id")String id);
+    
+    
+}

+ 56 - 0
src/main/java/com/goafanti/common/enums/AdminVarietiesStatus.java

@@ -0,0 +1,56 @@
+package com.goafanti.common.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang3.StringUtils;
+
+public enum AdminVarietiesStatus {
+	ONGOING(0,"正常"),
+	DISUSE(1,"停用");
+	
+	private AdminVarietiesStatus(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, AdminVarietiesStatus> status = new HashMap<Integer, AdminVarietiesStatus>();
+
+	static {
+		for (AdminVarietiesStatus value : AdminVarietiesStatus.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+
+	public static AdminVarietiesStatus getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return DISUSE;
+	}
+
+	public static AdminVarietiesStatus getStatus(String code) {
+		if (StringUtils.isNumeric(code)) {
+			return getStatus(Integer.parseInt(code));
+		}
+		return DISUSE;
+	}
+
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+
+	private Integer	code;
+	private String	desc;
+
+	public Integer getCode() {
+		return code;
+	}
+
+	public String getDesc() {
+		return desc;
+	}
+
+}
+	
+

+ 433 - 0
src/main/java/com/goafanti/common/mapper/BusinessVarietiesMapper.xml

@@ -0,0 +1,433 @@
+<?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.goafanti.common.dao.BusinessVarietiesMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.BusinessVarieties">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    <id column="id" jdbcType="VARCHAR" property="id" />
+    <result column="create_id" jdbcType="VARCHAR" property="createId" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="delete_sign" jdbcType="INTEGER" property="deleteSign" />
+    <result column="cid" jdbcType="VARCHAR" property="cid" />
+    <result column="cname" jdbcType="VARCHAR" property="cname" />
+    <result column="super_id" jdbcType="VARCHAR" property="superId" />
+    <result column="layer" jdbcType="INTEGER" property="layer" />
+    <result column="status" jdbcType="VARCHAR" property="status" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    <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.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    <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.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    id, create_id, create_time, update_time, delete_sign, cid, cname, super_id, layer, 
+    status
+  </sql>
+  <select id="selectByExample" parameterType="com.goafanti.common.model.BusinessVarietiesExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from business_varieties
+    <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.String" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from business_varieties
+    where id = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    delete from business_varieties
+    where id = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.goafanti.common.model.BusinessVarietiesExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    delete from business_varieties
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.BusinessVarieties">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    insert into business_varieties (id, create_id, create_time, 
+      update_time, delete_sign, cid, 
+      cname, super_id, layer, 
+      status)
+    values (#{id,jdbcType=VARCHAR}, #{createId,jdbcType=VARCHAR},now(), 
+      #{updateTime,jdbcType=TIMESTAMP}, #{deleteSign,jdbcType=INTEGER}, #{cid,jdbcType=VARCHAR}, 
+      #{cname,jdbcType=VARCHAR}, #{superId,jdbcType=VARCHAR}, #{layer,jdbcType=INTEGER}, 
+      #{status,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.BusinessVarieties">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    insert into business_varieties
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="createId != null">
+        create_id,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="deleteSign != null">
+        delete_sign,
+      </if>
+      <if test="cid != null">
+        cid,
+      </if>
+      <if test="cname != null">
+        cname,
+      </if>
+      <if test="superId != null">
+        super_id,
+      </if>
+      <if test="layer != null">
+        layer,
+      </if>
+      <if test="status != null">
+        status,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="createId != null">
+        #{createId,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteSign != null">
+        #{deleteSign,jdbcType=INTEGER},
+      </if>
+      <if test="cid != null">
+        #{cid,jdbcType=VARCHAR},
+      </if>
+      <if test="cname != null">
+        #{cname,jdbcType=VARCHAR},
+      </if>
+      <if test="superId != null">
+        #{superId,jdbcType=VARCHAR},
+      </if>
+      <if test="layer != null">
+        #{layer,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        #{status,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.goafanti.common.model.BusinessVarietiesExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    select count(*) from business_varieties
+    <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.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    update business_varieties
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createId != null">
+        create_id = #{record.createId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.updateTime != null">
+        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.deleteSign != null">
+        delete_sign = #{record.deleteSign,jdbcType=INTEGER},
+      </if>
+      <if test="record.cid != null">
+        cid = #{record.cid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.cname != null">
+        cname = #{record.cname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.superId != null">
+        super_id = #{record.superId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.layer != null">
+        layer = #{record.layer,jdbcType=INTEGER},
+      </if>
+      <if test="record.status != null">
+        status = #{record.status,jdbcType=VARCHAR},
+      </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.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    update business_varieties
+    set id = #{record.id,jdbcType=VARCHAR},
+      create_id = #{record.createId,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      delete_sign = #{record.deleteSign,jdbcType=INTEGER},
+      cid = #{record.cid,jdbcType=VARCHAR},
+      cname = #{record.cname,jdbcType=VARCHAR},
+      super_id = #{record.superId,jdbcType=VARCHAR},
+      layer = #{record.layer,jdbcType=INTEGER},
+      status = #{record.status,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.BusinessVarieties">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    update business_varieties
+    <set>
+      <if test="createId != null">
+        create_id = #{createId,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteSign != null">
+        delete_sign = #{deleteSign,jdbcType=INTEGER},
+      </if>
+      <if test="cid != null">
+        cid = #{cid,jdbcType=VARCHAR},
+      </if>
+      <if test="cname != null">
+        cname = #{cname,jdbcType=VARCHAR},
+      </if>
+      <if test="superId != null">
+        super_id = #{superId,jdbcType=VARCHAR},
+      </if>
+      <if test="layer != null">
+        layer = #{layer,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        status = #{status,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.BusinessVarieties">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Thu Nov 30 10:03:07 CST 2017.
+    -->
+    update business_varieties
+    set create_id = #{createId,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
+      delete_sign = #{deleteSign,jdbcType=INTEGER},
+      cid = #{cid,jdbcType=VARCHAR},
+      cname = #{cname,jdbcType=VARCHAR},
+      super_id = #{superId,jdbcType=VARCHAR},
+      layer = #{layer,jdbcType=INTEGER},
+      status = #{status,jdbcType=VARCHAR}
+    where id = #{id,jdbcType=VARCHAR}
+  </update>
+  
+  <select id="getCount" resultType="string">
+  	select count(1) from business_varieties
+  	where super_id=#{superId,jdbcType=VARCHAR} 
+  	</select>
+  	
+  	<select id="getCid" resultType="string">
+  	select cid from business_varieties
+  	where id=#{ superId,jdbcType=VARCHAR} 
+  	</select>
+  	
+  	<select id="findVarietiesListByPage" resultType="com.goafanti.admin.bo.BusinessVarietiesBo">
+ 		select b.id,b.create_id,b.create_time,b.update_time,b.delete_sign,
+  				b.cid,b.cname,b.super_id,b.layer,b.status
+  		from business_varieties b
+  		where b.delete_sign=0 
+  		<if test="cname != null">
+		and cname = #{cname,jdbcType=VARCHAR}
+		</if>
+		<if test="super_id != null">
+		and super_id = #{super_id,jdbcType=VARCHAR}
+		</if>
+		<if test="layer != null">
+		and layer = #{layer,jdbcType=INTEGER}
+		</if>
+		<if test="status != null">
+		and status = #{status,jdbcType=VARCHAR}
+		</if>
+		<if test="page_sql!=null">
+			${page_sql}
+	</if>
+  </select>
+  <select id="findVarietiesListCount" resultType="com.goafanti.admin.bo.BusinessVarietiesBo">
+ 		select 
+  			count(1)
+  		from business_varieties b
+  		where b.delete_sign=0 
+  		<if test="cname != null">
+		and b.cname = #{cname,jdbcType=VARCHAR}
+		</if>
+		<if test="super_id != null">
+		and b.super_id = #{super_id,jdbcType=VARCHAR}
+		</if>
+		<if test="layer != null">
+		and b.layer = #{layer,jdbcType=INTEGER}
+		</if>
+		<if test="status != null">
+		and b.status = #{status,jdbcType=VARCHAR}
+		</if>
+		
+  </select>
+  
+  <select id="getSuperList"  resultType="com.goafanti.admin.bo.BusinessVarietiesBo">
+  		select b.id,b.create_id,b.create_time,b.update_time,b.delete_sign,
+  				b.cid,b.cname,b.super_id,b.layer,b.status
+  		from business_varieties b
+  		where b.delete_sign=0
+  </select>
+  <select id="editVarieties" parameterType="string" resultType="com.goafanti.admin.bo.BusinessVarietiesBo">
+  		select b.id,b.create_id,b.create_time,b.update_time,b.delete_sign,
+  				b.cid,b.cname,b.super_id,b.layer,b.status
+  		from business_varieties b
+  		where b.delete_sign=0
+  		<if test="id != null">
+		and b.id = #{id,jdbcType=VARCHAR}
+	</if>
+  </select>
+</mapper>

+ 963 - 0
src/main/java/com/goafanti/common/model/BusinessVarietiesExample.java

@@ -0,0 +1,963 @@
+package com.goafanti.common.model;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class BusinessVarietiesExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    public BusinessVarietiesExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    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 business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    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 business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    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(String value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(String value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(String value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(String value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(String value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLike(String value) {
+            addCriterion("id like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotLike(String value) {
+            addCriterion("id not like", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<String> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<String> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(String value1, String value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(String value1, String value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdIsNull() {
+            addCriterion("create_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdIsNotNull() {
+            addCriterion("create_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdEqualTo(String value) {
+            addCriterion("create_id =", value, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdNotEqualTo(String value) {
+            addCriterion("create_id <>", value, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdGreaterThan(String value) {
+            addCriterion("create_id >", value, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdGreaterThanOrEqualTo(String value) {
+            addCriterion("create_id >=", value, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdLessThan(String value) {
+            addCriterion("create_id <", value, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdLessThanOrEqualTo(String value) {
+            addCriterion("create_id <=", value, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdLike(String value) {
+            addCriterion("create_id like", value, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdNotLike(String value) {
+            addCriterion("create_id not like", value, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdIn(List<String> values) {
+            addCriterion("create_id in", values, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdNotIn(List<String> values) {
+            addCriterion("create_id not in", values, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdBetween(String value1, String value2) {
+            addCriterion("create_id between", value1, value2, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateIdNotBetween(String value1, String value2) {
+            addCriterion("create_id not between", value1, value2, "createId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("create_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("create_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(Date value) {
+            addCriterion("create_time =", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<Date> values) {
+            addCriterion("create_time in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<Date> values) {
+            addCriterion("create_time not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(Date value1, Date value2) {
+            addCriterion("create_time between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("create_time not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIsNull() {
+            addCriterion("update_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIsNotNull() {
+            addCriterion("update_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeEqualTo(Date value) {
+            addCriterion("update_time =", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotEqualTo(Date value) {
+            addCriterion("update_time <>", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeGreaterThan(Date value) {
+            addCriterion("update_time >", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("update_time >=", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeLessThan(Date value) {
+            addCriterion("update_time <", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("update_time <=", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIn(List<Date> values) {
+            addCriterion("update_time in", values, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotIn(List<Date> values) {
+            addCriterion("update_time not in", values, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
+            addCriterion("update_time between", value1, value2, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("update_time not between", value1, value2, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignIsNull() {
+            addCriterion("delete_sign is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignIsNotNull() {
+            addCriterion("delete_sign is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignEqualTo(Integer value) {
+            addCriterion("delete_sign =", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignNotEqualTo(Integer value) {
+            addCriterion("delete_sign <>", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignGreaterThan(Integer value) {
+            addCriterion("delete_sign >", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignGreaterThanOrEqualTo(Integer value) {
+            addCriterion("delete_sign >=", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignLessThan(Integer value) {
+            addCriterion("delete_sign <", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignLessThanOrEqualTo(Integer value) {
+            addCriterion("delete_sign <=", value, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignIn(List<Integer> values) {
+            addCriterion("delete_sign in", values, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignNotIn(List<Integer> values) {
+            addCriterion("delete_sign not in", values, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignBetween(Integer value1, Integer value2) {
+            addCriterion("delete_sign between", value1, value2, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andDeleteSignNotBetween(Integer value1, Integer value2) {
+            addCriterion("delete_sign not between", value1, value2, "deleteSign");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidIsNull() {
+            addCriterion("cid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidIsNotNull() {
+            addCriterion("cid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidEqualTo(String value) {
+            addCriterion("cid =", value, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidNotEqualTo(String value) {
+            addCriterion("cid <>", value, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidGreaterThan(String value) {
+            addCriterion("cid >", value, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidGreaterThanOrEqualTo(String value) {
+            addCriterion("cid >=", value, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidLessThan(String value) {
+            addCriterion("cid <", value, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidLessThanOrEqualTo(String value) {
+            addCriterion("cid <=", value, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidLike(String value) {
+            addCriterion("cid like", value, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidNotLike(String value) {
+            addCriterion("cid not like", value, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidIn(List<String> values) {
+            addCriterion("cid in", values, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidNotIn(List<String> values) {
+            addCriterion("cid not in", values, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidBetween(String value1, String value2) {
+            addCriterion("cid between", value1, value2, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCidNotBetween(String value1, String value2) {
+            addCriterion("cid not between", value1, value2, "cid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameIsNull() {
+            addCriterion("cname is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameIsNotNull() {
+            addCriterion("cname is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameEqualTo(String value) {
+            addCriterion("cname =", value, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameNotEqualTo(String value) {
+            addCriterion("cname <>", value, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameGreaterThan(String value) {
+            addCriterion("cname >", value, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameGreaterThanOrEqualTo(String value) {
+            addCriterion("cname >=", value, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameLessThan(String value) {
+            addCriterion("cname <", value, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameLessThanOrEqualTo(String value) {
+            addCriterion("cname <=", value, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameLike(String value) {
+            addCriterion("cname like", value, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameNotLike(String value) {
+            addCriterion("cname not like", value, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameIn(List<String> values) {
+            addCriterion("cname in", values, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameNotIn(List<String> values) {
+            addCriterion("cname not in", values, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameBetween(String value1, String value2) {
+            addCriterion("cname between", value1, value2, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andCnameNotBetween(String value1, String value2) {
+            addCriterion("cname not between", value1, value2, "cname");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdIsNull() {
+            addCriterion("super_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdIsNotNull() {
+            addCriterion("super_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdEqualTo(String value) {
+            addCriterion("super_id =", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdNotEqualTo(String value) {
+            addCriterion("super_id <>", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdGreaterThan(String value) {
+            addCriterion("super_id >", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdGreaterThanOrEqualTo(String value) {
+            addCriterion("super_id >=", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdLessThan(String value) {
+            addCriterion("super_id <", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdLessThanOrEqualTo(String value) {
+            addCriterion("super_id <=", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdLike(String value) {
+            addCriterion("super_id like", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdNotLike(String value) {
+            addCriterion("super_id not like", value, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdIn(List<String> values) {
+            addCriterion("super_id in", values, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdNotIn(List<String> values) {
+            addCriterion("super_id not in", values, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdBetween(String value1, String value2) {
+            addCriterion("super_id between", value1, value2, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andSuperIdNotBetween(String value1, String value2) {
+            addCriterion("super_id not between", value1, value2, "superId");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerIsNull() {
+            addCriterion("layer is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerIsNotNull() {
+            addCriterion("layer is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerEqualTo(Integer value) {
+            addCriterion("layer =", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerNotEqualTo(Integer value) {
+            addCriterion("layer <>", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerGreaterThan(Integer value) {
+            addCriterion("layer >", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerGreaterThanOrEqualTo(Integer value) {
+            addCriterion("layer >=", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerLessThan(Integer value) {
+            addCriterion("layer <", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerLessThanOrEqualTo(Integer value) {
+            addCriterion("layer <=", value, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerIn(List<Integer> values) {
+            addCriterion("layer in", values, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerNotIn(List<Integer> values) {
+            addCriterion("layer not in", values, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerBetween(Integer value1, Integer value2) {
+            addCriterion("layer between", value1, value2, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andLayerNotBetween(Integer value1, Integer value2) {
+            addCriterion("layer not between", value1, value2, "layer");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIsNull() {
+            addCriterion("status is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIsNotNull() {
+            addCriterion("status is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusEqualTo(String value) {
+            addCriterion("status =", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotEqualTo(String value) {
+            addCriterion("status <>", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusGreaterThan(String value) {
+            addCriterion("status >", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusGreaterThanOrEqualTo(String value) {
+            addCriterion("status >=", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusLessThan(String value) {
+            addCriterion("status <", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusLessThanOrEqualTo(String value) {
+            addCriterion("status <=", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusLike(String value) {
+            addCriterion("status like", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotLike(String value) {
+            addCriterion("status not like", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIn(List<String> values) {
+            addCriterion("status in", values, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotIn(List<String> values) {
+            addCriterion("status not in", values, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusBetween(String value1, String value2) {
+            addCriterion("status between", value1, value2, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotBetween(String value1, String value2) {
+            addCriterion("status not between", value1, value2, "status");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table business_varieties
+     *
+     * @mbg.generated do_not_delete_during_merge Thu Nov 30 10:03:07 CST 2017
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table business_varieties
+     *
+     * @mbg.generated Thu Nov 30 10:03:07 CST 2017
+     */
+    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);
+        }
+    }
+}