update cms-dao

This commit is contained in:
shuzheng 2016-10-16 20:48:29 +08:00
parent d4a36c57b0
commit 560a34e4d8
18 changed files with 4188 additions and 18 deletions

View File

@ -16,9 +16,21 @@ public interface CmsArticleMapper {
int insertSelective(CmsArticle record);
List<CmsArticle> selectByExampleWithBLOBs(CmsArticleExample example);
List<CmsArticle> selectByExample(CmsArticleExample example);
CmsArticle selectByPrimaryKey(Integer articleId);
int updateByExampleSelective(@Param("record") CmsArticle record, @Param("example") CmsArticleExample example);
int updateByExampleWithBLOBs(@Param("record") CmsArticle record, @Param("example") CmsArticleExample example);
int updateByExample(@Param("record") CmsArticle record, @Param("example") CmsArticleExample example);
int updateByPrimaryKeySelective(CmsArticle record);
int updateByPrimaryKeyWithBLOBs(CmsArticle record);
int updateByPrimaryKey(CmsArticle record);
}

View File

@ -3,6 +3,24 @@
<mapper namespace="com.zheng.cms.mapper.CmsArticleMapper" >
<resultMap id="BaseResultMap" type="com.zheng.cms.model.CmsArticle" >
<id column="article_id" property="articleId" jdbcType="INTEGER" />
<result column="title" property="title" jdbcType="VARCHAR" />
<result column="author" property="author" jdbcType="VARCHAR" />
<result column="fromurl" property="fromurl" jdbcType="VARCHAR" />
<result column="image" property="image" jdbcType="VARCHAR" />
<result column="keywords" property="keywords" jdbcType="VARCHAR" />
<result column="description" property="description" jdbcType="VARCHAR" />
<result column="type" property="type" jdbcType="TINYINT" />
<result column="allowcomments" property="allowcomments" jdbcType="TINYINT" />
<result column="status" property="status" jdbcType="TINYINT" />
<result column="user_id" property="userId" jdbcType="INTEGER" />
<result column="up" property="up" jdbcType="INTEGER" />
<result column="down" property="down" jdbcType="INTEGER" />
<result column="readnumber" property="readnumber" jdbcType="INTEGER" />
<result column="ctime" property="ctime" jdbcType="BIGINT" />
<result column="orders" property="orders" jdbcType="BIGINT" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.zheng.cms.model.CmsArticle" extends="BaseResultMap" >
<result column="content" property="content" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
@ -63,8 +81,28 @@
</where>
</sql>
<sql id="Base_Column_List" >
article_id
article_id, title, author, fromurl, image, keywords, description, type, allowcomments,
status, user_id, up, down, readnumber, ctime, orders
</sql>
<sql id="Blob_Column_List" >
content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.zheng.cms.model.CmsArticleExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_article
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.cms.model.CmsArticleExample" >
select
<if test="distinct" >
@ -79,6 +117,14 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_article
where article_id = #{articleId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from cms_article
where article_id = #{articleId,jdbcType=INTEGER}
@ -90,8 +136,18 @@
</if>
</delete>
<insert id="insert" parameterType="com.zheng.cms.model.CmsArticle" >
insert into cms_article (article_id)
values (#{articleId,jdbcType=INTEGER})
insert into cms_article (article_id, title, author,
fromurl, image, keywords,
description, type, allowcomments,
status, user_id, up,
down, readnumber, ctime,
orders, content)
values (#{articleId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
#{fromurl,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{keywords,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{allowcomments,jdbcType=TINYINT},
#{status,jdbcType=TINYINT}, #{userId,jdbcType=INTEGER}, #{up,jdbcType=INTEGER},
#{down,jdbcType=INTEGER}, #{readnumber,jdbcType=INTEGER}, #{ctime,jdbcType=BIGINT},
#{orders,jdbcType=BIGINT}, #{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.zheng.cms.model.CmsArticle" >
insert into cms_article
@ -99,11 +155,107 @@
<if test="articleId != null" >
article_id,
</if>
<if test="title != null" >
title,
</if>
<if test="author != null" >
author,
</if>
<if test="fromurl != null" >
fromurl,
</if>
<if test="image != null" >
image,
</if>
<if test="keywords != null" >
keywords,
</if>
<if test="description != null" >
description,
</if>
<if test="type != null" >
type,
</if>
<if test="allowcomments != null" >
allowcomments,
</if>
<if test="status != null" >
status,
</if>
<if test="userId != null" >
user_id,
</if>
<if test="up != null" >
up,
</if>
<if test="down != null" >
down,
</if>
<if test="readnumber != null" >
readnumber,
</if>
<if test="ctime != null" >
ctime,
</if>
<if test="orders != null" >
orders,
</if>
<if test="content != null" >
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="articleId != null" >
#{articleId,jdbcType=INTEGER},
</if>
<if test="title != null" >
#{title,jdbcType=VARCHAR},
</if>
<if test="author != null" >
#{author,jdbcType=VARCHAR},
</if>
<if test="fromurl != null" >
#{fromurl,jdbcType=VARCHAR},
</if>
<if test="image != null" >
#{image,jdbcType=VARCHAR},
</if>
<if test="keywords != null" >
#{keywords,jdbcType=VARCHAR},
</if>
<if test="description != null" >
#{description,jdbcType=VARCHAR},
</if>
<if test="type != null" >
#{type,jdbcType=TINYINT},
</if>
<if test="allowcomments != null" >
#{allowcomments,jdbcType=TINYINT},
</if>
<if test="status != null" >
#{status,jdbcType=TINYINT},
</if>
<if test="userId != null" >
#{userId,jdbcType=INTEGER},
</if>
<if test="up != null" >
#{up,jdbcType=INTEGER},
</if>
<if test="down != null" >
#{down,jdbcType=INTEGER},
</if>
<if test="readnumber != null" >
#{readnumber,jdbcType=INTEGER},
</if>
<if test="ctime != null" >
#{ctime,jdbcType=BIGINT},
</if>
<if test="orders != null" >
#{orders,jdbcType=BIGINT},
</if>
<if test="content != null" >
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zheng.cms.model.CmsArticleExample" resultType="java.lang.Integer" >
@ -118,16 +270,195 @@
<if test="record.articleId != null" >
article_id = #{record.articleId,jdbcType=INTEGER},
</if>
<if test="record.title != null" >
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.author != null" >
author = #{record.author,jdbcType=VARCHAR},
</if>
<if test="record.fromurl != null" >
fromurl = #{record.fromurl,jdbcType=VARCHAR},
</if>
<if test="record.image != null" >
image = #{record.image,jdbcType=VARCHAR},
</if>
<if test="record.keywords != null" >
keywords = #{record.keywords,jdbcType=VARCHAR},
</if>
<if test="record.description != null" >
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.type != null" >
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.allowcomments != null" >
allowcomments = #{record.allowcomments,jdbcType=TINYINT},
</if>
<if test="record.status != null" >
status = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.userId != null" >
user_id = #{record.userId,jdbcType=INTEGER},
</if>
<if test="record.up != null" >
up = #{record.up,jdbcType=INTEGER},
</if>
<if test="record.down != null" >
down = #{record.down,jdbcType=INTEGER},
</if>
<if test="record.readnumber != null" >
readnumber = #{record.readnumber,jdbcType=INTEGER},
</if>
<if test="record.ctime != null" >
ctime = #{record.ctime,jdbcType=BIGINT},
</if>
<if test="record.orders != null" >
orders = #{record.orders,jdbcType=BIGINT},
</if>
<if test="record.content != null" >
content = #{record.content,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update cms_article
set article_id = #{record.articleId,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
author = #{record.author,jdbcType=VARCHAR},
fromurl = #{record.fromurl,jdbcType=VARCHAR},
image = #{record.image,jdbcType=VARCHAR},
keywords = #{record.keywords,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
type = #{record.type,jdbcType=TINYINT},
allowcomments = #{record.allowcomments,jdbcType=TINYINT},
status = #{record.status,jdbcType=TINYINT},
user_id = #{record.userId,jdbcType=INTEGER},
up = #{record.up,jdbcType=INTEGER},
down = #{record.down,jdbcType=INTEGER},
readnumber = #{record.readnumber,jdbcType=INTEGER},
ctime = #{record.ctime,jdbcType=BIGINT},
orders = #{record.orders,jdbcType=BIGINT},
content = #{record.content,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update cms_article
set article_id = #{record.articleId,jdbcType=INTEGER}
set article_id = #{record.articleId,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
author = #{record.author,jdbcType=VARCHAR},
fromurl = #{record.fromurl,jdbcType=VARCHAR},
image = #{record.image,jdbcType=VARCHAR},
keywords = #{record.keywords,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
type = #{record.type,jdbcType=TINYINT},
allowcomments = #{record.allowcomments,jdbcType=TINYINT},
status = #{record.status,jdbcType=TINYINT},
user_id = #{record.userId,jdbcType=INTEGER},
up = #{record.up,jdbcType=INTEGER},
down = #{record.down,jdbcType=INTEGER},
readnumber = #{record.readnumber,jdbcType=INTEGER},
ctime = #{record.ctime,jdbcType=BIGINT},
orders = #{record.orders,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.cms.model.CmsArticle" >
update cms_article
<set >
<if test="title != null" >
title = #{title,jdbcType=VARCHAR},
</if>
<if test="author != null" >
author = #{author,jdbcType=VARCHAR},
</if>
<if test="fromurl != null" >
fromurl = #{fromurl,jdbcType=VARCHAR},
</if>
<if test="image != null" >
image = #{image,jdbcType=VARCHAR},
</if>
<if test="keywords != null" >
keywords = #{keywords,jdbcType=VARCHAR},
</if>
<if test="description != null" >
description = #{description,jdbcType=VARCHAR},
</if>
<if test="type != null" >
type = #{type,jdbcType=TINYINT},
</if>
<if test="allowcomments != null" >
allowcomments = #{allowcomments,jdbcType=TINYINT},
</if>
<if test="status != null" >
status = #{status,jdbcType=TINYINT},
</if>
<if test="userId != null" >
user_id = #{userId,jdbcType=INTEGER},
</if>
<if test="up != null" >
up = #{up,jdbcType=INTEGER},
</if>
<if test="down != null" >
down = #{down,jdbcType=INTEGER},
</if>
<if test="readnumber != null" >
readnumber = #{readnumber,jdbcType=INTEGER},
</if>
<if test="ctime != null" >
ctime = #{ctime,jdbcType=BIGINT},
</if>
<if test="orders != null" >
orders = #{orders,jdbcType=BIGINT},
</if>
<if test="content != null" >
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where article_id = #{articleId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.zheng.cms.model.CmsArticle" >
update cms_article
set title = #{title,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
fromurl = #{fromurl,jdbcType=VARCHAR},
image = #{image,jdbcType=VARCHAR},
keywords = #{keywords,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
allowcomments = #{allowcomments,jdbcType=TINYINT},
status = #{status,jdbcType=TINYINT},
user_id = #{userId,jdbcType=INTEGER},
up = #{up,jdbcType=INTEGER},
down = #{down,jdbcType=INTEGER},
readnumber = #{readnumber,jdbcType=INTEGER},
ctime = #{ctime,jdbcType=BIGINT},
orders = #{orders,jdbcType=BIGINT},
content = #{content,jdbcType=LONGVARCHAR}
where article_id = #{articleId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.zheng.cms.model.CmsArticle" >
update cms_article
set title = #{title,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
fromurl = #{fromurl,jdbcType=VARCHAR},
image = #{image,jdbcType=VARCHAR},
keywords = #{keywords,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
allowcomments = #{allowcomments,jdbcType=TINYINT},
status = #{status,jdbcType=TINYINT},
user_id = #{userId,jdbcType=INTEGER},
up = #{up,jdbcType=INTEGER},
down = #{down,jdbcType=INTEGER},
readnumber = #{readnumber,jdbcType=INTEGER},
ctime = #{ctime,jdbcType=BIGINT},
orders = #{orders,jdbcType=BIGINT}
where article_id = #{articleId,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -18,7 +18,13 @@ public interface CmsCategoryMapper {
List<CmsCategory> selectByExample(CmsCategoryExample example);
CmsCategory selectByPrimaryKey(Integer categoryId);
int updateByExampleSelective(@Param("record") CmsCategory record, @Param("example") CmsCategoryExample example);
int updateByExample(@Param("record") CmsCategory record, @Param("example") CmsCategoryExample example);
int updateByPrimaryKeySelective(CmsCategory record);
int updateByPrimaryKey(CmsCategory record);
}

View File

@ -3,6 +3,15 @@
<mapper namespace="com.zheng.cms.mapper.CmsCategoryMapper" >
<resultMap id="BaseResultMap" type="com.zheng.cms.model.CmsCategory" >
<id column="category_id" property="categoryId" jdbcType="INTEGER" />
<result column="pid" property="pid" jdbcType="INTEGER" />
<result column="level" property="level" jdbcType="TINYINT" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="description" property="description" jdbcType="VARCHAR" />
<result column="icon" property="icon" jdbcType="VARCHAR" />
<result column="type" property="type" jdbcType="TINYINT" />
<result column="alias" property="alias" jdbcType="VARCHAR" />
<result column="ctime" property="ctime" jdbcType="BIGINT" />
<result column="orders" property="orders" jdbcType="BIGINT" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
@ -63,7 +72,7 @@
</where>
</sql>
<sql id="Base_Column_List" >
category_id
category_id, pid, level, name, description, icon, type, alias, ctime, orders
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.cms.model.CmsCategoryExample" >
select
@ -79,6 +88,12 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from cms_category
where category_id = #{categoryId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from cms_category
where category_id = #{categoryId,jdbcType=INTEGER}
@ -90,8 +105,14 @@
</if>
</delete>
<insert id="insert" parameterType="com.zheng.cms.model.CmsCategory" >
insert into cms_category (category_id)
values (#{categoryId,jdbcType=INTEGER})
insert into cms_category (category_id, pid, level,
name, description, icon,
type, alias, ctime,
orders)
values (#{categoryId,jdbcType=INTEGER}, #{pid,jdbcType=INTEGER}, #{level,jdbcType=TINYINT},
#{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT}, #{alias,jdbcType=VARCHAR}, #{ctime,jdbcType=BIGINT},
#{orders,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.zheng.cms.model.CmsCategory" >
insert into cms_category
@ -99,11 +120,65 @@
<if test="categoryId != null" >
category_id,
</if>
<if test="pid != null" >
pid,
</if>
<if test="level != null" >
level,
</if>
<if test="name != null" >
name,
</if>
<if test="description != null" >
description,
</if>
<if test="icon != null" >
icon,
</if>
<if test="type != null" >
type,
</if>
<if test="alias != null" >
alias,
</if>
<if test="ctime != null" >
ctime,
</if>
<if test="orders != null" >
orders,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="categoryId != null" >
#{categoryId,jdbcType=INTEGER},
</if>
<if test="pid != null" >
#{pid,jdbcType=INTEGER},
</if>
<if test="level != null" >
#{level,jdbcType=TINYINT},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="description != null" >
#{description,jdbcType=VARCHAR},
</if>
<if test="icon != null" >
#{icon,jdbcType=VARCHAR},
</if>
<if test="type != null" >
#{type,jdbcType=TINYINT},
</if>
<if test="alias != null" >
#{alias,jdbcType=VARCHAR},
</if>
<if test="ctime != null" >
#{ctime,jdbcType=BIGINT},
</if>
<if test="orders != null" >
#{orders,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zheng.cms.model.CmsCategoryExample" resultType="java.lang.Integer" >
@ -118,6 +193,33 @@
<if test="record.categoryId != null" >
category_id = #{record.categoryId,jdbcType=INTEGER},
</if>
<if test="record.pid != null" >
pid = #{record.pid,jdbcType=INTEGER},
</if>
<if test="record.level != null" >
level = #{record.level,jdbcType=TINYINT},
</if>
<if test="record.name != null" >
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.description != null" >
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.icon != null" >
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.type != null" >
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.alias != null" >
alias = #{record.alias,jdbcType=VARCHAR},
</if>
<if test="record.ctime != null" >
ctime = #{record.ctime,jdbcType=BIGINT},
</if>
<if test="record.orders != null" >
orders = #{record.orders,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
@ -125,9 +227,64 @@
</update>
<update id="updateByExample" parameterType="map" >
update cms_category
set category_id = #{record.categoryId,jdbcType=INTEGER}
set category_id = #{record.categoryId,jdbcType=INTEGER},
pid = #{record.pid,jdbcType=INTEGER},
level = #{record.level,jdbcType=TINYINT},
name = #{record.name,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
type = #{record.type,jdbcType=TINYINT},
alias = #{record.alias,jdbcType=VARCHAR},
ctime = #{record.ctime,jdbcType=BIGINT},
orders = #{record.orders,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.cms.model.CmsCategory" >
update cms_category
<set >
<if test="pid != null" >
pid = #{pid,jdbcType=INTEGER},
</if>
<if test="level != null" >
level = #{level,jdbcType=TINYINT},
</if>
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="description != null" >
description = #{description,jdbcType=VARCHAR},
</if>
<if test="icon != null" >
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="type != null" >
type = #{type,jdbcType=TINYINT},
</if>
<if test="alias != null" >
alias = #{alias,jdbcType=VARCHAR},
</if>
<if test="ctime != null" >
ctime = #{ctime,jdbcType=BIGINT},
</if>
<if test="orders != null" >
orders = #{orders,jdbcType=BIGINT},
</if>
</set>
where category_id = #{categoryId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.zheng.cms.model.CmsCategory" >
update cms_category
set pid = #{pid,jdbcType=INTEGER},
level = #{level,jdbcType=TINYINT},
name = #{name,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
alias = #{alias,jdbcType=VARCHAR},
ctime = #{ctime,jdbcType=BIGINT},
orders = #{orders,jdbcType=BIGINT}
where category_id = #{categoryId,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -0,0 +1,36 @@
package com.zheng.cms.mapper;
import com.zheng.cms.model.CmsComment;
import com.zheng.cms.model.CmsCommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CmsCommentMapper {
int countByExample(CmsCommentExample example);
int deleteByExample(CmsCommentExample example);
int deleteByPrimaryKey(Integer commentId);
int insert(CmsComment record);
int insertSelective(CmsComment record);
List<CmsComment> selectByExampleWithBLOBs(CmsCommentExample example);
List<CmsComment> selectByExample(CmsCommentExample example);
CmsComment selectByPrimaryKey(Integer commentId);
int updateByExampleSelective(@Param("record") CmsComment record, @Param("example") CmsCommentExample example);
int updateByExampleWithBLOBs(@Param("record") CmsComment record, @Param("example") CmsCommentExample example);
int updateByExample(@Param("record") CmsComment record, @Param("example") CmsCommentExample example);
int updateByPrimaryKeySelective(CmsComment record);
int updateByPrimaryKeyWithBLOBs(CmsComment record);
int updateByPrimaryKey(CmsComment record);
}

View File

@ -0,0 +1,323 @@
<?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.zheng.cms.mapper.CmsCommentMapper" >
<resultMap id="BaseResultMap" type="com.zheng.cms.model.CmsComment" >
<id column="comment_id" property="commentId" jdbcType="INTEGER" />
<result column="pid" property="pid" jdbcType="INTEGER" />
<result column="article_id" property="articleId" jdbcType="INTEGER" />
<result column="user_id" property="userId" jdbcType="INTEGER" />
<result column="status" property="status" jdbcType="TINYINT" />
<result column="ip" property="ip" jdbcType="VARCHAR" />
<result column="agent" property="agent" jdbcType="VARCHAR" />
<result column="ctime" property="ctime" jdbcType="BIGINT" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.zheng.cms.model.CmsComment" extends="BaseResultMap" >
<result column="content" property="content" jdbcType="LONGVARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<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 collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
comment_id, pid, article_id, user_id, status, ip, agent, ctime
</sql>
<sql id="Blob_Column_List" >
content
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.zheng.cms.model.CmsCommentExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_comment
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.cms.model.CmsCommentExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from cms_comment
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_comment
where comment_id = #{commentId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from cms_comment
where comment_id = #{commentId,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.zheng.cms.model.CmsCommentExample" >
delete from cms_comment
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zheng.cms.model.CmsComment" >
insert into cms_comment (comment_id, pid, article_id,
user_id, status, ip,
agent, ctime, content
)
values (#{commentId,jdbcType=INTEGER}, #{pid,jdbcType=INTEGER}, #{articleId,jdbcType=INTEGER},
#{userId,jdbcType=INTEGER}, #{status,jdbcType=TINYINT}, #{ip,jdbcType=VARCHAR},
#{agent,jdbcType=VARCHAR}, #{ctime,jdbcType=BIGINT}, #{content,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.zheng.cms.model.CmsComment" >
insert into cms_comment
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="commentId != null" >
comment_id,
</if>
<if test="pid != null" >
pid,
</if>
<if test="articleId != null" >
article_id,
</if>
<if test="userId != null" >
user_id,
</if>
<if test="status != null" >
status,
</if>
<if test="ip != null" >
ip,
</if>
<if test="agent != null" >
agent,
</if>
<if test="ctime != null" >
ctime,
</if>
<if test="content != null" >
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="commentId != null" >
#{commentId,jdbcType=INTEGER},
</if>
<if test="pid != null" >
#{pid,jdbcType=INTEGER},
</if>
<if test="articleId != null" >
#{articleId,jdbcType=INTEGER},
</if>
<if test="userId != null" >
#{userId,jdbcType=INTEGER},
</if>
<if test="status != null" >
#{status,jdbcType=TINYINT},
</if>
<if test="ip != null" >
#{ip,jdbcType=VARCHAR},
</if>
<if test="agent != null" >
#{agent,jdbcType=VARCHAR},
</if>
<if test="ctime != null" >
#{ctime,jdbcType=BIGINT},
</if>
<if test="content != null" >
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zheng.cms.model.CmsCommentExample" resultType="java.lang.Integer" >
select count(*) from cms_comment
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update cms_comment
<set >
<if test="record.commentId != null" >
comment_id = #{record.commentId,jdbcType=INTEGER},
</if>
<if test="record.pid != null" >
pid = #{record.pid,jdbcType=INTEGER},
</if>
<if test="record.articleId != null" >
article_id = #{record.articleId,jdbcType=INTEGER},
</if>
<if test="record.userId != null" >
user_id = #{record.userId,jdbcType=INTEGER},
</if>
<if test="record.status != null" >
status = #{record.status,jdbcType=TINYINT},
</if>
<if test="record.ip != null" >
ip = #{record.ip,jdbcType=VARCHAR},
</if>
<if test="record.agent != null" >
agent = #{record.agent,jdbcType=VARCHAR},
</if>
<if test="record.ctime != null" >
ctime = #{record.ctime,jdbcType=BIGINT},
</if>
<if test="record.content != null" >
content = #{record.content,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
update cms_comment
set comment_id = #{record.commentId,jdbcType=INTEGER},
pid = #{record.pid,jdbcType=INTEGER},
article_id = #{record.articleId,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=INTEGER},
status = #{record.status,jdbcType=TINYINT},
ip = #{record.ip,jdbcType=VARCHAR},
agent = #{record.agent,jdbcType=VARCHAR},
ctime = #{record.ctime,jdbcType=BIGINT},
content = #{record.content,jdbcType=LONGVARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update cms_comment
set comment_id = #{record.commentId,jdbcType=INTEGER},
pid = #{record.pid,jdbcType=INTEGER},
article_id = #{record.articleId,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=INTEGER},
status = #{record.status,jdbcType=TINYINT},
ip = #{record.ip,jdbcType=VARCHAR},
agent = #{record.agent,jdbcType=VARCHAR},
ctime = #{record.ctime,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.cms.model.CmsComment" >
update cms_comment
<set >
<if test="pid != null" >
pid = #{pid,jdbcType=INTEGER},
</if>
<if test="articleId != null" >
article_id = #{articleId,jdbcType=INTEGER},
</if>
<if test="userId != null" >
user_id = #{userId,jdbcType=INTEGER},
</if>
<if test="status != null" >
status = #{status,jdbcType=TINYINT},
</if>
<if test="ip != null" >
ip = #{ip,jdbcType=VARCHAR},
</if>
<if test="agent != null" >
agent = #{agent,jdbcType=VARCHAR},
</if>
<if test="ctime != null" >
ctime = #{ctime,jdbcType=BIGINT},
</if>
<if test="content != null" >
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where comment_id = #{commentId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.zheng.cms.model.CmsComment" >
update cms_comment
set pid = #{pid,jdbcType=INTEGER},
article_id = #{articleId,jdbcType=INTEGER},
user_id = #{userId,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT},
ip = #{ip,jdbcType=VARCHAR},
agent = #{agent,jdbcType=VARCHAR},
ctime = #{ctime,jdbcType=BIGINT},
content = #{content,jdbcType=LONGVARCHAR}
where comment_id = #{commentId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.zheng.cms.model.CmsComment" >
update cms_comment
set pid = #{pid,jdbcType=INTEGER},
article_id = #{articleId,jdbcType=INTEGER},
user_id = #{userId,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT},
ip = #{ip,jdbcType=VARCHAR},
agent = #{agent,jdbcType=VARCHAR},
ctime = #{ctime,jdbcType=BIGINT}
where comment_id = #{commentId,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -18,7 +18,13 @@ public interface CmsTagMapper {
List<CmsTag> selectByExample(CmsTagExample example);
CmsTag selectByPrimaryKey(Integer tagId);
int updateByExampleSelective(@Param("record") CmsTag record, @Param("example") CmsTagExample example);
int updateByExample(@Param("record") CmsTag record, @Param("example") CmsTagExample example);
int updateByPrimaryKeySelective(CmsTag record);
int updateByPrimaryKey(CmsTag record);
}

View File

@ -3,6 +3,13 @@
<mapper namespace="com.zheng.cms.mapper.CmsTagMapper" >
<resultMap id="BaseResultMap" type="com.zheng.cms.model.CmsTag" >
<id column="tag_id" property="tagId" jdbcType="INTEGER" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="description" property="description" jdbcType="VARCHAR" />
<result column="icon" property="icon" jdbcType="VARCHAR" />
<result column="type" property="type" jdbcType="TINYINT" />
<result column="alias" property="alias" jdbcType="VARCHAR" />
<result column="ctime" property="ctime" jdbcType="BIGINT" />
<result column="orders" property="orders" jdbcType="BIGINT" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
@ -63,7 +70,7 @@
</where>
</sql>
<sql id="Base_Column_List" >
tag_id
tag_id, name, description, icon, type, alias, ctime, orders
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.cms.model.CmsTagExample" >
select
@ -79,6 +86,12 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from cms_tag
where tag_id = #{tagId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from cms_tag
where tag_id = #{tagId,jdbcType=INTEGER}
@ -90,8 +103,12 @@
</if>
</delete>
<insert id="insert" parameterType="com.zheng.cms.model.CmsTag" >
insert into cms_tag (tag_id)
values (#{tagId,jdbcType=INTEGER})
insert into cms_tag (tag_id, name, description,
icon, type, alias,
ctime, orders)
values (#{tagId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
#{icon,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{alias,jdbcType=VARCHAR},
#{ctime,jdbcType=BIGINT}, #{orders,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.zheng.cms.model.CmsTag" >
insert into cms_tag
@ -99,11 +116,53 @@
<if test="tagId != null" >
tag_id,
</if>
<if test="name != null" >
name,
</if>
<if test="description != null" >
description,
</if>
<if test="icon != null" >
icon,
</if>
<if test="type != null" >
type,
</if>
<if test="alias != null" >
alias,
</if>
<if test="ctime != null" >
ctime,
</if>
<if test="orders != null" >
orders,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="tagId != null" >
#{tagId,jdbcType=INTEGER},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="description != null" >
#{description,jdbcType=VARCHAR},
</if>
<if test="icon != null" >
#{icon,jdbcType=VARCHAR},
</if>
<if test="type != null" >
#{type,jdbcType=TINYINT},
</if>
<if test="alias != null" >
#{alias,jdbcType=VARCHAR},
</if>
<if test="ctime != null" >
#{ctime,jdbcType=BIGINT},
</if>
<if test="orders != null" >
#{orders,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zheng.cms.model.CmsTagExample" resultType="java.lang.Integer" >
@ -118,6 +177,27 @@
<if test="record.tagId != null" >
tag_id = #{record.tagId,jdbcType=INTEGER},
</if>
<if test="record.name != null" >
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.description != null" >
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.icon != null" >
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.type != null" >
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.alias != null" >
alias = #{record.alias,jdbcType=VARCHAR},
</if>
<if test="record.ctime != null" >
ctime = #{record.ctime,jdbcType=BIGINT},
</if>
<if test="record.orders != null" >
orders = #{record.orders,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
@ -125,9 +205,54 @@
</update>
<update id="updateByExample" parameterType="map" >
update cms_tag
set tag_id = #{record.tagId,jdbcType=INTEGER}
set tag_id = #{record.tagId,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
type = #{record.type,jdbcType=TINYINT},
alias = #{record.alias,jdbcType=VARCHAR},
ctime = #{record.ctime,jdbcType=BIGINT},
orders = #{record.orders,jdbcType=BIGINT}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.cms.model.CmsTag" >
update cms_tag
<set >
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="description != null" >
description = #{description,jdbcType=VARCHAR},
</if>
<if test="icon != null" >
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="type != null" >
type = #{type,jdbcType=TINYINT},
</if>
<if test="alias != null" >
alias = #{alias,jdbcType=VARCHAR},
</if>
<if test="ctime != null" >
ctime = #{ctime,jdbcType=BIGINT},
</if>
<if test="orders != null" >
orders = #{orders,jdbcType=BIGINT},
</if>
</set>
where tag_id = #{tagId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.zheng.cms.model.CmsTag" >
update cms_tag
set name = #{name,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
alias = #{alias,jdbcType=VARCHAR},
ctime = #{ctime,jdbcType=BIGINT},
orders = #{orders,jdbcType=BIGINT}
where tag_id = #{tagId,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -3,6 +3,38 @@ package com.zheng.cms.model;
public class CmsArticle {
private Integer articleId;
private String title;
private String author;
private String fromurl;
private String image;
private String keywords;
private String description;
private Byte type;
private Byte allowcomments;
private Byte status;
private Integer userId;
private Integer up;
private Integer down;
private Integer readnumber;
private Long ctime;
private Long orders;
private String content;
public Integer getArticleId() {
return articleId;
}
@ -10,4 +42,132 @@ public class CmsArticle {
public void setArticleId(Integer articleId) {
this.articleId = articleId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getFromurl() {
return fromurl;
}
public void setFromurl(String fromurl) {
this.fromurl = fromurl;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public String getKeywords() {
return keywords;
}
public void setKeywords(String keywords) {
this.keywords = keywords;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Byte getAllowcomments() {
return allowcomments;
}
public void setAllowcomments(Byte allowcomments) {
this.allowcomments = allowcomments;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getUp() {
return up;
}
public void setUp(Integer up) {
this.up = up;
}
public Integer getDown() {
return down;
}
public void setDown(Integer down) {
this.down = down;
}
public Integer getReadnumber() {
return readnumber;
}
public void setReadnumber(Integer readnumber) {
this.readnumber = readnumber;
}
public Long getCtime() {
return ctime;
}
public void setCtime(Long ctime) {
this.ctime = ctime;
}
public Long getOrders() {
return orders;
}
public void setOrders(Long orders) {
this.orders = orders;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}

View File

@ -163,6 +163,966 @@ public class CmsArticleExample {
addCriterion("article_id not between", value1, value2, "articleId");
return (Criteria) this;
}
public Criteria andTitleIsNull() {
addCriterion("title is null");
return (Criteria) this;
}
public Criteria andTitleIsNotNull() {
addCriterion("title is not null");
return (Criteria) this;
}
public Criteria andTitleEqualTo(String value) {
addCriterion("title =", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotEqualTo(String value) {
addCriterion("title <>", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThan(String value) {
addCriterion("title >", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThanOrEqualTo(String value) {
addCriterion("title >=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThan(String value) {
addCriterion("title <", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThanOrEqualTo(String value) {
addCriterion("title <=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLike(String value) {
addCriterion("title like", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotLike(String value) {
addCriterion("title not like", value, "title");
return (Criteria) this;
}
public Criteria andTitleIn(List<String> values) {
addCriterion("title in", values, "title");
return (Criteria) this;
}
public Criteria andTitleNotIn(List<String> values) {
addCriterion("title not in", values, "title");
return (Criteria) this;
}
public Criteria andTitleBetween(String value1, String value2) {
addCriterion("title between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andTitleNotBetween(String value1, String value2) {
addCriterion("title not between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andAuthorIsNull() {
addCriterion("author is null");
return (Criteria) this;
}
public Criteria andAuthorIsNotNull() {
addCriterion("author is not null");
return (Criteria) this;
}
public Criteria andAuthorEqualTo(String value) {
addCriterion("author =", value, "author");
return (Criteria) this;
}
public Criteria andAuthorNotEqualTo(String value) {
addCriterion("author <>", value, "author");
return (Criteria) this;
}
public Criteria andAuthorGreaterThan(String value) {
addCriterion("author >", value, "author");
return (Criteria) this;
}
public Criteria andAuthorGreaterThanOrEqualTo(String value) {
addCriterion("author >=", value, "author");
return (Criteria) this;
}
public Criteria andAuthorLessThan(String value) {
addCriterion("author <", value, "author");
return (Criteria) this;
}
public Criteria andAuthorLessThanOrEqualTo(String value) {
addCriterion("author <=", value, "author");
return (Criteria) this;
}
public Criteria andAuthorLike(String value) {
addCriterion("author like", value, "author");
return (Criteria) this;
}
public Criteria andAuthorNotLike(String value) {
addCriterion("author not like", value, "author");
return (Criteria) this;
}
public Criteria andAuthorIn(List<String> values) {
addCriterion("author in", values, "author");
return (Criteria) this;
}
public Criteria andAuthorNotIn(List<String> values) {
addCriterion("author not in", values, "author");
return (Criteria) this;
}
public Criteria andAuthorBetween(String value1, String value2) {
addCriterion("author between", value1, value2, "author");
return (Criteria) this;
}
public Criteria andAuthorNotBetween(String value1, String value2) {
addCriterion("author not between", value1, value2, "author");
return (Criteria) this;
}
public Criteria andFromurlIsNull() {
addCriterion("fromurl is null");
return (Criteria) this;
}
public Criteria andFromurlIsNotNull() {
addCriterion("fromurl is not null");
return (Criteria) this;
}
public Criteria andFromurlEqualTo(String value) {
addCriterion("fromurl =", value, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlNotEqualTo(String value) {
addCriterion("fromurl <>", value, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlGreaterThan(String value) {
addCriterion("fromurl >", value, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlGreaterThanOrEqualTo(String value) {
addCriterion("fromurl >=", value, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlLessThan(String value) {
addCriterion("fromurl <", value, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlLessThanOrEqualTo(String value) {
addCriterion("fromurl <=", value, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlLike(String value) {
addCriterion("fromurl like", value, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlNotLike(String value) {
addCriterion("fromurl not like", value, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlIn(List<String> values) {
addCriterion("fromurl in", values, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlNotIn(List<String> values) {
addCriterion("fromurl not in", values, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlBetween(String value1, String value2) {
addCriterion("fromurl between", value1, value2, "fromurl");
return (Criteria) this;
}
public Criteria andFromurlNotBetween(String value1, String value2) {
addCriterion("fromurl not between", value1, value2, "fromurl");
return (Criteria) this;
}
public Criteria andImageIsNull() {
addCriterion("image is null");
return (Criteria) this;
}
public Criteria andImageIsNotNull() {
addCriterion("image is not null");
return (Criteria) this;
}
public Criteria andImageEqualTo(String value) {
addCriterion("image =", value, "image");
return (Criteria) this;
}
public Criteria andImageNotEqualTo(String value) {
addCriterion("image <>", value, "image");
return (Criteria) this;
}
public Criteria andImageGreaterThan(String value) {
addCriterion("image >", value, "image");
return (Criteria) this;
}
public Criteria andImageGreaterThanOrEqualTo(String value) {
addCriterion("image >=", value, "image");
return (Criteria) this;
}
public Criteria andImageLessThan(String value) {
addCriterion("image <", value, "image");
return (Criteria) this;
}
public Criteria andImageLessThanOrEqualTo(String value) {
addCriterion("image <=", value, "image");
return (Criteria) this;
}
public Criteria andImageLike(String value) {
addCriterion("image like", value, "image");
return (Criteria) this;
}
public Criteria andImageNotLike(String value) {
addCriterion("image not like", value, "image");
return (Criteria) this;
}
public Criteria andImageIn(List<String> values) {
addCriterion("image in", values, "image");
return (Criteria) this;
}
public Criteria andImageNotIn(List<String> values) {
addCriterion("image not in", values, "image");
return (Criteria) this;
}
public Criteria andImageBetween(String value1, String value2) {
addCriterion("image between", value1, value2, "image");
return (Criteria) this;
}
public Criteria andImageNotBetween(String value1, String value2) {
addCriterion("image not between", value1, value2, "image");
return (Criteria) this;
}
public Criteria andKeywordsIsNull() {
addCriterion("keywords is null");
return (Criteria) this;
}
public Criteria andKeywordsIsNotNull() {
addCriterion("keywords is not null");
return (Criteria) this;
}
public Criteria andKeywordsEqualTo(String value) {
addCriterion("keywords =", value, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsNotEqualTo(String value) {
addCriterion("keywords <>", value, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsGreaterThan(String value) {
addCriterion("keywords >", value, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsGreaterThanOrEqualTo(String value) {
addCriterion("keywords >=", value, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsLessThan(String value) {
addCriterion("keywords <", value, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsLessThanOrEqualTo(String value) {
addCriterion("keywords <=", value, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsLike(String value) {
addCriterion("keywords like", value, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsNotLike(String value) {
addCriterion("keywords not like", value, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsIn(List<String> values) {
addCriterion("keywords in", values, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsNotIn(List<String> values) {
addCriterion("keywords not in", values, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsBetween(String value1, String value2) {
addCriterion("keywords between", value1, value2, "keywords");
return (Criteria) this;
}
public Criteria andKeywordsNotBetween(String value1, String value2) {
addCriterion("keywords not between", value1, value2, "keywords");
return (Criteria) this;
}
public Criteria andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andAllowcommentsIsNull() {
addCriterion("allowcomments is null");
return (Criteria) this;
}
public Criteria andAllowcommentsIsNotNull() {
addCriterion("allowcomments is not null");
return (Criteria) this;
}
public Criteria andAllowcommentsEqualTo(Byte value) {
addCriterion("allowcomments =", value, "allowcomments");
return (Criteria) this;
}
public Criteria andAllowcommentsNotEqualTo(Byte value) {
addCriterion("allowcomments <>", value, "allowcomments");
return (Criteria) this;
}
public Criteria andAllowcommentsGreaterThan(Byte value) {
addCriterion("allowcomments >", value, "allowcomments");
return (Criteria) this;
}
public Criteria andAllowcommentsGreaterThanOrEqualTo(Byte value) {
addCriterion("allowcomments >=", value, "allowcomments");
return (Criteria) this;
}
public Criteria andAllowcommentsLessThan(Byte value) {
addCriterion("allowcomments <", value, "allowcomments");
return (Criteria) this;
}
public Criteria andAllowcommentsLessThanOrEqualTo(Byte value) {
addCriterion("allowcomments <=", value, "allowcomments");
return (Criteria) this;
}
public Criteria andAllowcommentsIn(List<Byte> values) {
addCriterion("allowcomments in", values, "allowcomments");
return (Criteria) this;
}
public Criteria andAllowcommentsNotIn(List<Byte> values) {
addCriterion("allowcomments not in", values, "allowcomments");
return (Criteria) this;
}
public Criteria andAllowcommentsBetween(Byte value1, Byte value2) {
addCriterion("allowcomments between", value1, value2, "allowcomments");
return (Criteria) this;
}
public Criteria andAllowcommentsNotBetween(Byte value1, Byte value2) {
addCriterion("allowcomments not between", value1, value2, "allowcomments");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Integer value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Integer value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Integer value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Integer value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Integer value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Integer> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Integer> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Integer value1, Integer value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUpIsNull() {
addCriterion("up is null");
return (Criteria) this;
}
public Criteria andUpIsNotNull() {
addCriterion("up is not null");
return (Criteria) this;
}
public Criteria andUpEqualTo(Integer value) {
addCriterion("up =", value, "up");
return (Criteria) this;
}
public Criteria andUpNotEqualTo(Integer value) {
addCriterion("up <>", value, "up");
return (Criteria) this;
}
public Criteria andUpGreaterThan(Integer value) {
addCriterion("up >", value, "up");
return (Criteria) this;
}
public Criteria andUpGreaterThanOrEqualTo(Integer value) {
addCriterion("up >=", value, "up");
return (Criteria) this;
}
public Criteria andUpLessThan(Integer value) {
addCriterion("up <", value, "up");
return (Criteria) this;
}
public Criteria andUpLessThanOrEqualTo(Integer value) {
addCriterion("up <=", value, "up");
return (Criteria) this;
}
public Criteria andUpIn(List<Integer> values) {
addCriterion("up in", values, "up");
return (Criteria) this;
}
public Criteria andUpNotIn(List<Integer> values) {
addCriterion("up not in", values, "up");
return (Criteria) this;
}
public Criteria andUpBetween(Integer value1, Integer value2) {
addCriterion("up between", value1, value2, "up");
return (Criteria) this;
}
public Criteria andUpNotBetween(Integer value1, Integer value2) {
addCriterion("up not between", value1, value2, "up");
return (Criteria) this;
}
public Criteria andDownIsNull() {
addCriterion("down is null");
return (Criteria) this;
}
public Criteria andDownIsNotNull() {
addCriterion("down is not null");
return (Criteria) this;
}
public Criteria andDownEqualTo(Integer value) {
addCriterion("down =", value, "down");
return (Criteria) this;
}
public Criteria andDownNotEqualTo(Integer value) {
addCriterion("down <>", value, "down");
return (Criteria) this;
}
public Criteria andDownGreaterThan(Integer value) {
addCriterion("down >", value, "down");
return (Criteria) this;
}
public Criteria andDownGreaterThanOrEqualTo(Integer value) {
addCriterion("down >=", value, "down");
return (Criteria) this;
}
public Criteria andDownLessThan(Integer value) {
addCriterion("down <", value, "down");
return (Criteria) this;
}
public Criteria andDownLessThanOrEqualTo(Integer value) {
addCriterion("down <=", value, "down");
return (Criteria) this;
}
public Criteria andDownIn(List<Integer> values) {
addCriterion("down in", values, "down");
return (Criteria) this;
}
public Criteria andDownNotIn(List<Integer> values) {
addCriterion("down not in", values, "down");
return (Criteria) this;
}
public Criteria andDownBetween(Integer value1, Integer value2) {
addCriterion("down between", value1, value2, "down");
return (Criteria) this;
}
public Criteria andDownNotBetween(Integer value1, Integer value2) {
addCriterion("down not between", value1, value2, "down");
return (Criteria) this;
}
public Criteria andReadnumberIsNull() {
addCriterion("readnumber is null");
return (Criteria) this;
}
public Criteria andReadnumberIsNotNull() {
addCriterion("readnumber is not null");
return (Criteria) this;
}
public Criteria andReadnumberEqualTo(Integer value) {
addCriterion("readnumber =", value, "readnumber");
return (Criteria) this;
}
public Criteria andReadnumberNotEqualTo(Integer value) {
addCriterion("readnumber <>", value, "readnumber");
return (Criteria) this;
}
public Criteria andReadnumberGreaterThan(Integer value) {
addCriterion("readnumber >", value, "readnumber");
return (Criteria) this;
}
public Criteria andReadnumberGreaterThanOrEqualTo(Integer value) {
addCriterion("readnumber >=", value, "readnumber");
return (Criteria) this;
}
public Criteria andReadnumberLessThan(Integer value) {
addCriterion("readnumber <", value, "readnumber");
return (Criteria) this;
}
public Criteria andReadnumberLessThanOrEqualTo(Integer value) {
addCriterion("readnumber <=", value, "readnumber");
return (Criteria) this;
}
public Criteria andReadnumberIn(List<Integer> values) {
addCriterion("readnumber in", values, "readnumber");
return (Criteria) this;
}
public Criteria andReadnumberNotIn(List<Integer> values) {
addCriterion("readnumber not in", values, "readnumber");
return (Criteria) this;
}
public Criteria andReadnumberBetween(Integer value1, Integer value2) {
addCriterion("readnumber between", value1, value2, "readnumber");
return (Criteria) this;
}
public Criteria andReadnumberNotBetween(Integer value1, Integer value2) {
addCriterion("readnumber not between", value1, value2, "readnumber");
return (Criteria) this;
}
public Criteria andCtimeIsNull() {
addCriterion("ctime is null");
return (Criteria) this;
}
public Criteria andCtimeIsNotNull() {
addCriterion("ctime is not null");
return (Criteria) this;
}
public Criteria andCtimeEqualTo(Long value) {
addCriterion("ctime =", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotEqualTo(Long value) {
addCriterion("ctime <>", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeGreaterThan(Long value) {
addCriterion("ctime >", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeGreaterThanOrEqualTo(Long value) {
addCriterion("ctime >=", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeLessThan(Long value) {
addCriterion("ctime <", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeLessThanOrEqualTo(Long value) {
addCriterion("ctime <=", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeIn(List<Long> values) {
addCriterion("ctime in", values, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotIn(List<Long> values) {
addCriterion("ctime not in", values, "ctime");
return (Criteria) this;
}
public Criteria andCtimeBetween(Long value1, Long value2) {
addCriterion("ctime between", value1, value2, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotBetween(Long value1, Long value2) {
addCriterion("ctime not between", value1, value2, "ctime");
return (Criteria) this;
}
public Criteria andOrdersIsNull() {
addCriterion("orders is null");
return (Criteria) this;
}
public Criteria andOrdersIsNotNull() {
addCriterion("orders is not null");
return (Criteria) this;
}
public Criteria andOrdersEqualTo(Long value) {
addCriterion("orders =", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersNotEqualTo(Long value) {
addCriterion("orders <>", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersGreaterThan(Long value) {
addCriterion("orders >", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersGreaterThanOrEqualTo(Long value) {
addCriterion("orders >=", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersLessThan(Long value) {
addCriterion("orders <", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersLessThanOrEqualTo(Long value) {
addCriterion("orders <=", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersIn(List<Long> values) {
addCriterion("orders in", values, "orders");
return (Criteria) this;
}
public Criteria andOrdersNotIn(List<Long> values) {
addCriterion("orders not in", values, "orders");
return (Criteria) this;
}
public Criteria andOrdersBetween(Long value1, Long value2) {
addCriterion("orders between", value1, value2, "orders");
return (Criteria) this;
}
public Criteria andOrdersNotBetween(Long value1, Long value2) {
addCriterion("orders not between", value1, value2, "orders");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

View File

@ -3,6 +3,24 @@ package com.zheng.cms.model;
public class CmsCategory {
private Integer categoryId;
private Integer pid;
private Byte level;
private String name;
private String description;
private String icon;
private Byte type;
private String alias;
private Long ctime;
private Long orders;
public Integer getCategoryId() {
return categoryId;
}
@ -10,4 +28,76 @@ public class CmsCategory {
public void setCategoryId(Integer categoryId) {
this.categoryId = categoryId;
}
public Integer getPid() {
return pid;
}
public void setPid(Integer pid) {
this.pid = pid;
}
public Byte getLevel() {
return level;
}
public void setLevel(Byte level) {
this.level = level;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public String getAlias() {
return alias;
}
public void setAlias(String alias) {
this.alias = alias;
}
public Long getCtime() {
return ctime;
}
public void setCtime(Long ctime) {
this.ctime = ctime;
}
public Long getOrders() {
return orders;
}
public void setOrders(Long orders) {
this.orders = orders;
}
}

View File

@ -163,6 +163,586 @@ public class CmsCategoryExample {
addCriterion("category_id not between", value1, value2, "categoryId");
return (Criteria) this;
}
public Criteria andPidIsNull() {
addCriterion("pid is null");
return (Criteria) this;
}
public Criteria andPidIsNotNull() {
addCriterion("pid is not null");
return (Criteria) this;
}
public Criteria andPidEqualTo(Integer value) {
addCriterion("pid =", value, "pid");
return (Criteria) this;
}
public Criteria andPidNotEqualTo(Integer value) {
addCriterion("pid <>", value, "pid");
return (Criteria) this;
}
public Criteria andPidGreaterThan(Integer value) {
addCriterion("pid >", value, "pid");
return (Criteria) this;
}
public Criteria andPidGreaterThanOrEqualTo(Integer value) {
addCriterion("pid >=", value, "pid");
return (Criteria) this;
}
public Criteria andPidLessThan(Integer value) {
addCriterion("pid <", value, "pid");
return (Criteria) this;
}
public Criteria andPidLessThanOrEqualTo(Integer value) {
addCriterion("pid <=", value, "pid");
return (Criteria) this;
}
public Criteria andPidIn(List<Integer> values) {
addCriterion("pid in", values, "pid");
return (Criteria) this;
}
public Criteria andPidNotIn(List<Integer> values) {
addCriterion("pid not in", values, "pid");
return (Criteria) this;
}
public Criteria andPidBetween(Integer value1, Integer value2) {
addCriterion("pid between", value1, value2, "pid");
return (Criteria) this;
}
public Criteria andPidNotBetween(Integer value1, Integer value2) {
addCriterion("pid not between", value1, value2, "pid");
return (Criteria) this;
}
public Criteria andLevelIsNull() {
addCriterion("level is null");
return (Criteria) this;
}
public Criteria andLevelIsNotNull() {
addCriterion("level is not null");
return (Criteria) this;
}
public Criteria andLevelEqualTo(Byte value) {
addCriterion("level =", value, "level");
return (Criteria) this;
}
public Criteria andLevelNotEqualTo(Byte value) {
addCriterion("level <>", value, "level");
return (Criteria) this;
}
public Criteria andLevelGreaterThan(Byte value) {
addCriterion("level >", value, "level");
return (Criteria) this;
}
public Criteria andLevelGreaterThanOrEqualTo(Byte value) {
addCriterion("level >=", value, "level");
return (Criteria) this;
}
public Criteria andLevelLessThan(Byte value) {
addCriterion("level <", value, "level");
return (Criteria) this;
}
public Criteria andLevelLessThanOrEqualTo(Byte value) {
addCriterion("level <=", value, "level");
return (Criteria) this;
}
public Criteria andLevelIn(List<Byte> values) {
addCriterion("level in", values, "level");
return (Criteria) this;
}
public Criteria andLevelNotIn(List<Byte> values) {
addCriterion("level not in", values, "level");
return (Criteria) this;
}
public Criteria andLevelBetween(Byte value1, Byte value2) {
addCriterion("level between", value1, value2, "level");
return (Criteria) this;
}
public Criteria andLevelNotBetween(Byte value1, Byte value2) {
addCriterion("level not between", value1, value2, "level");
return (Criteria) this;
}
public Criteria 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 andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andIconIsNull() {
addCriterion("icon is null");
return (Criteria) this;
}
public Criteria andIconIsNotNull() {
addCriterion("icon is not null");
return (Criteria) this;
}
public Criteria andIconEqualTo(String value) {
addCriterion("icon =", value, "icon");
return (Criteria) this;
}
public Criteria andIconNotEqualTo(String value) {
addCriterion("icon <>", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThan(String value) {
addCriterion("icon >", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThanOrEqualTo(String value) {
addCriterion("icon >=", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThan(String value) {
addCriterion("icon <", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThanOrEqualTo(String value) {
addCriterion("icon <=", value, "icon");
return (Criteria) this;
}
public Criteria andIconLike(String value) {
addCriterion("icon like", value, "icon");
return (Criteria) this;
}
public Criteria andIconNotLike(String value) {
addCriterion("icon not like", value, "icon");
return (Criteria) this;
}
public Criteria andIconIn(List<String> values) {
addCriterion("icon in", values, "icon");
return (Criteria) this;
}
public Criteria andIconNotIn(List<String> values) {
addCriterion("icon not in", values, "icon");
return (Criteria) this;
}
public Criteria andIconBetween(String value1, String value2) {
addCriterion("icon between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andIconNotBetween(String value1, String value2) {
addCriterion("icon not between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andAliasIsNull() {
addCriterion("alias is null");
return (Criteria) this;
}
public Criteria andAliasIsNotNull() {
addCriterion("alias is not null");
return (Criteria) this;
}
public Criteria andAliasEqualTo(String value) {
addCriterion("alias =", value, "alias");
return (Criteria) this;
}
public Criteria andAliasNotEqualTo(String value) {
addCriterion("alias <>", value, "alias");
return (Criteria) this;
}
public Criteria andAliasGreaterThan(String value) {
addCriterion("alias >", value, "alias");
return (Criteria) this;
}
public Criteria andAliasGreaterThanOrEqualTo(String value) {
addCriterion("alias >=", value, "alias");
return (Criteria) this;
}
public Criteria andAliasLessThan(String value) {
addCriterion("alias <", value, "alias");
return (Criteria) this;
}
public Criteria andAliasLessThanOrEqualTo(String value) {
addCriterion("alias <=", value, "alias");
return (Criteria) this;
}
public Criteria andAliasLike(String value) {
addCriterion("alias like", value, "alias");
return (Criteria) this;
}
public Criteria andAliasNotLike(String value) {
addCriterion("alias not like", value, "alias");
return (Criteria) this;
}
public Criteria andAliasIn(List<String> values) {
addCriterion("alias in", values, "alias");
return (Criteria) this;
}
public Criteria andAliasNotIn(List<String> values) {
addCriterion("alias not in", values, "alias");
return (Criteria) this;
}
public Criteria andAliasBetween(String value1, String value2) {
addCriterion("alias between", value1, value2, "alias");
return (Criteria) this;
}
public Criteria andAliasNotBetween(String value1, String value2) {
addCriterion("alias not between", value1, value2, "alias");
return (Criteria) this;
}
public Criteria andCtimeIsNull() {
addCriterion("ctime is null");
return (Criteria) this;
}
public Criteria andCtimeIsNotNull() {
addCriterion("ctime is not null");
return (Criteria) this;
}
public Criteria andCtimeEqualTo(Long value) {
addCriterion("ctime =", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotEqualTo(Long value) {
addCriterion("ctime <>", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeGreaterThan(Long value) {
addCriterion("ctime >", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeGreaterThanOrEqualTo(Long value) {
addCriterion("ctime >=", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeLessThan(Long value) {
addCriterion("ctime <", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeLessThanOrEqualTo(Long value) {
addCriterion("ctime <=", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeIn(List<Long> values) {
addCriterion("ctime in", values, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotIn(List<Long> values) {
addCriterion("ctime not in", values, "ctime");
return (Criteria) this;
}
public Criteria andCtimeBetween(Long value1, Long value2) {
addCriterion("ctime between", value1, value2, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotBetween(Long value1, Long value2) {
addCriterion("ctime not between", value1, value2, "ctime");
return (Criteria) this;
}
public Criteria andOrdersIsNull() {
addCriterion("orders is null");
return (Criteria) this;
}
public Criteria andOrdersIsNotNull() {
addCriterion("orders is not null");
return (Criteria) this;
}
public Criteria andOrdersEqualTo(Long value) {
addCriterion("orders =", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersNotEqualTo(Long value) {
addCriterion("orders <>", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersGreaterThan(Long value) {
addCriterion("orders >", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersGreaterThanOrEqualTo(Long value) {
addCriterion("orders >=", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersLessThan(Long value) {
addCriterion("orders <", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersLessThanOrEqualTo(Long value) {
addCriterion("orders <=", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersIn(List<Long> values) {
addCriterion("orders in", values, "orders");
return (Criteria) this;
}
public Criteria andOrdersNotIn(List<Long> values) {
addCriterion("orders not in", values, "orders");
return (Criteria) this;
}
public Criteria andOrdersBetween(Long value1, Long value2) {
addCriterion("orders between", value1, value2, "orders");
return (Criteria) this;
}
public Criteria andOrdersNotBetween(Long value1, Long value2) {
addCriterion("orders not between", value1, value2, "orders");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

View File

@ -0,0 +1,93 @@
package com.zheng.cms.model;
public class CmsComment {
private Integer commentId;
private Integer pid;
private Integer articleId;
private Integer userId;
private Byte status;
private String ip;
private String agent;
private Long ctime;
private String content;
public Integer getCommentId() {
return commentId;
}
public void setCommentId(Integer commentId) {
this.commentId = commentId;
}
public Integer getPid() {
return pid;
}
public void setPid(Integer pid) {
this.pid = pid;
}
public Integer getArticleId() {
return articleId;
}
public void setArticleId(Integer articleId) {
this.articleId = articleId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getAgent() {
return agent;
}
public void setAgent(String agent) {
this.agent = agent;
}
public Long getCtime() {
return ctime;
}
public void setCtime(Long ctime) {
this.ctime = ctime;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}

View File

@ -0,0 +1,700 @@
package com.zheng.cms.model;
import java.util.ArrayList;
import java.util.List;
public class CmsCommentExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CmsCommentExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<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 andCommentIdIsNull() {
addCriterion("comment_id is null");
return (Criteria) this;
}
public Criteria andCommentIdIsNotNull() {
addCriterion("comment_id is not null");
return (Criteria) this;
}
public Criteria andCommentIdEqualTo(Integer value) {
addCriterion("comment_id =", value, "commentId");
return (Criteria) this;
}
public Criteria andCommentIdNotEqualTo(Integer value) {
addCriterion("comment_id <>", value, "commentId");
return (Criteria) this;
}
public Criteria andCommentIdGreaterThan(Integer value) {
addCriterion("comment_id >", value, "commentId");
return (Criteria) this;
}
public Criteria andCommentIdGreaterThanOrEqualTo(Integer value) {
addCriterion("comment_id >=", value, "commentId");
return (Criteria) this;
}
public Criteria andCommentIdLessThan(Integer value) {
addCriterion("comment_id <", value, "commentId");
return (Criteria) this;
}
public Criteria andCommentIdLessThanOrEqualTo(Integer value) {
addCriterion("comment_id <=", value, "commentId");
return (Criteria) this;
}
public Criteria andCommentIdIn(List<Integer> values) {
addCriterion("comment_id in", values, "commentId");
return (Criteria) this;
}
public Criteria andCommentIdNotIn(List<Integer> values) {
addCriterion("comment_id not in", values, "commentId");
return (Criteria) this;
}
public Criteria andCommentIdBetween(Integer value1, Integer value2) {
addCriterion("comment_id between", value1, value2, "commentId");
return (Criteria) this;
}
public Criteria andCommentIdNotBetween(Integer value1, Integer value2) {
addCriterion("comment_id not between", value1, value2, "commentId");
return (Criteria) this;
}
public Criteria andPidIsNull() {
addCriterion("pid is null");
return (Criteria) this;
}
public Criteria andPidIsNotNull() {
addCriterion("pid is not null");
return (Criteria) this;
}
public Criteria andPidEqualTo(Integer value) {
addCriterion("pid =", value, "pid");
return (Criteria) this;
}
public Criteria andPidNotEqualTo(Integer value) {
addCriterion("pid <>", value, "pid");
return (Criteria) this;
}
public Criteria andPidGreaterThan(Integer value) {
addCriterion("pid >", value, "pid");
return (Criteria) this;
}
public Criteria andPidGreaterThanOrEqualTo(Integer value) {
addCriterion("pid >=", value, "pid");
return (Criteria) this;
}
public Criteria andPidLessThan(Integer value) {
addCriterion("pid <", value, "pid");
return (Criteria) this;
}
public Criteria andPidLessThanOrEqualTo(Integer value) {
addCriterion("pid <=", value, "pid");
return (Criteria) this;
}
public Criteria andPidIn(List<Integer> values) {
addCriterion("pid in", values, "pid");
return (Criteria) this;
}
public Criteria andPidNotIn(List<Integer> values) {
addCriterion("pid not in", values, "pid");
return (Criteria) this;
}
public Criteria andPidBetween(Integer value1, Integer value2) {
addCriterion("pid between", value1, value2, "pid");
return (Criteria) this;
}
public Criteria andPidNotBetween(Integer value1, Integer value2) {
addCriterion("pid not between", value1, value2, "pid");
return (Criteria) this;
}
public Criteria andArticleIdIsNull() {
addCriterion("article_id is null");
return (Criteria) this;
}
public Criteria andArticleIdIsNotNull() {
addCriterion("article_id is not null");
return (Criteria) this;
}
public Criteria andArticleIdEqualTo(Integer value) {
addCriterion("article_id =", value, "articleId");
return (Criteria) this;
}
public Criteria andArticleIdNotEqualTo(Integer value) {
addCriterion("article_id <>", value, "articleId");
return (Criteria) this;
}
public Criteria andArticleIdGreaterThan(Integer value) {
addCriterion("article_id >", value, "articleId");
return (Criteria) this;
}
public Criteria andArticleIdGreaterThanOrEqualTo(Integer value) {
addCriterion("article_id >=", value, "articleId");
return (Criteria) this;
}
public Criteria andArticleIdLessThan(Integer value) {
addCriterion("article_id <", value, "articleId");
return (Criteria) this;
}
public Criteria andArticleIdLessThanOrEqualTo(Integer value) {
addCriterion("article_id <=", value, "articleId");
return (Criteria) this;
}
public Criteria andArticleIdIn(List<Integer> values) {
addCriterion("article_id in", values, "articleId");
return (Criteria) this;
}
public Criteria andArticleIdNotIn(List<Integer> values) {
addCriterion("article_id not in", values, "articleId");
return (Criteria) this;
}
public Criteria andArticleIdBetween(Integer value1, Integer value2) {
addCriterion("article_id between", value1, value2, "articleId");
return (Criteria) this;
}
public Criteria andArticleIdNotBetween(Integer value1, Integer value2) {
addCriterion("article_id not between", value1, value2, "articleId");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Integer value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Integer value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Integer value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Integer value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Integer value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Integer> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Integer> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Integer value1, Integer value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andIpIsNull() {
addCriterion("ip is null");
return (Criteria) this;
}
public Criteria andIpIsNotNull() {
addCriterion("ip is not null");
return (Criteria) this;
}
public Criteria andIpEqualTo(String value) {
addCriterion("ip =", value, "ip");
return (Criteria) this;
}
public Criteria andIpNotEqualTo(String value) {
addCriterion("ip <>", value, "ip");
return (Criteria) this;
}
public Criteria andIpGreaterThan(String value) {
addCriterion("ip >", value, "ip");
return (Criteria) this;
}
public Criteria andIpGreaterThanOrEqualTo(String value) {
addCriterion("ip >=", value, "ip");
return (Criteria) this;
}
public Criteria andIpLessThan(String value) {
addCriterion("ip <", value, "ip");
return (Criteria) this;
}
public Criteria andIpLessThanOrEqualTo(String value) {
addCriterion("ip <=", value, "ip");
return (Criteria) this;
}
public Criteria andIpLike(String value) {
addCriterion("ip like", value, "ip");
return (Criteria) this;
}
public Criteria andIpNotLike(String value) {
addCriterion("ip not like", value, "ip");
return (Criteria) this;
}
public Criteria andIpIn(List<String> values) {
addCriterion("ip in", values, "ip");
return (Criteria) this;
}
public Criteria andIpNotIn(List<String> values) {
addCriterion("ip not in", values, "ip");
return (Criteria) this;
}
public Criteria andIpBetween(String value1, String value2) {
addCriterion("ip between", value1, value2, "ip");
return (Criteria) this;
}
public Criteria andIpNotBetween(String value1, String value2) {
addCriterion("ip not between", value1, value2, "ip");
return (Criteria) this;
}
public Criteria andAgentIsNull() {
addCriterion("agent is null");
return (Criteria) this;
}
public Criteria andAgentIsNotNull() {
addCriterion("agent is not null");
return (Criteria) this;
}
public Criteria andAgentEqualTo(String value) {
addCriterion("agent =", value, "agent");
return (Criteria) this;
}
public Criteria andAgentNotEqualTo(String value) {
addCriterion("agent <>", value, "agent");
return (Criteria) this;
}
public Criteria andAgentGreaterThan(String value) {
addCriterion("agent >", value, "agent");
return (Criteria) this;
}
public Criteria andAgentGreaterThanOrEqualTo(String value) {
addCriterion("agent >=", value, "agent");
return (Criteria) this;
}
public Criteria andAgentLessThan(String value) {
addCriterion("agent <", value, "agent");
return (Criteria) this;
}
public Criteria andAgentLessThanOrEqualTo(String value) {
addCriterion("agent <=", value, "agent");
return (Criteria) this;
}
public Criteria andAgentLike(String value) {
addCriterion("agent like", value, "agent");
return (Criteria) this;
}
public Criteria andAgentNotLike(String value) {
addCriterion("agent not like", value, "agent");
return (Criteria) this;
}
public Criteria andAgentIn(List<String> values) {
addCriterion("agent in", values, "agent");
return (Criteria) this;
}
public Criteria andAgentNotIn(List<String> values) {
addCriterion("agent not in", values, "agent");
return (Criteria) this;
}
public Criteria andAgentBetween(String value1, String value2) {
addCriterion("agent between", value1, value2, "agent");
return (Criteria) this;
}
public Criteria andAgentNotBetween(String value1, String value2) {
addCriterion("agent not between", value1, value2, "agent");
return (Criteria) this;
}
public Criteria andCtimeIsNull() {
addCriterion("ctime is null");
return (Criteria) this;
}
public Criteria andCtimeIsNotNull() {
addCriterion("ctime is not null");
return (Criteria) this;
}
public Criteria andCtimeEqualTo(Long value) {
addCriterion("ctime =", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotEqualTo(Long value) {
addCriterion("ctime <>", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeGreaterThan(Long value) {
addCriterion("ctime >", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeGreaterThanOrEqualTo(Long value) {
addCriterion("ctime >=", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeLessThan(Long value) {
addCriterion("ctime <", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeLessThanOrEqualTo(Long value) {
addCriterion("ctime <=", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeIn(List<Long> values) {
addCriterion("ctime in", values, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotIn(List<Long> values) {
addCriterion("ctime not in", values, "ctime");
return (Criteria) this;
}
public Criteria andCtimeBetween(Long value1, Long value2) {
addCriterion("ctime between", value1, value2, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotBetween(Long value1, Long value2) {
addCriterion("ctime not between", value1, value2, "ctime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
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);
}
}
}

View File

@ -3,6 +3,20 @@ package com.zheng.cms.model;
public class CmsTag {
private Integer tagId;
private String name;
private String description;
private String icon;
private Byte type;
private String alias;
private Long ctime;
private Long orders;
public Integer getTagId() {
return tagId;
}
@ -10,4 +24,60 @@ public class CmsTag {
public void setTagId(Integer tagId) {
this.tagId = tagId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public String getAlias() {
return alias;
}
public void setAlias(String alias) {
this.alias = alias;
}
public Long getCtime() {
return ctime;
}
public void setCtime(Long ctime) {
this.ctime = ctime;
}
public Long getOrders() {
return orders;
}
public void setOrders(Long orders) {
this.orders = orders;
}
}

View File

@ -163,6 +163,466 @@ public class CmsTagExample {
addCriterion("tag_id not between", value1, value2, "tagId");
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 andDescriptionIsNull() {
addCriterion("description is null");
return (Criteria) this;
}
public Criteria andDescriptionIsNotNull() {
addCriterion("description is not null");
return (Criteria) this;
}
public Criteria andDescriptionEqualTo(String value) {
addCriterion("description =", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotEqualTo(String value) {
addCriterion("description <>", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThan(String value) {
addCriterion("description >", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
addCriterion("description >=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThan(String value) {
addCriterion("description <", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLessThanOrEqualTo(String value) {
addCriterion("description <=", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionLike(String value) {
addCriterion("description like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotLike(String value) {
addCriterion("description not like", value, "description");
return (Criteria) this;
}
public Criteria andDescriptionIn(List<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> values) {
addCriterion("description not in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionBetween(String value1, String value2) {
addCriterion("description between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotBetween(String value1, String value2) {
addCriterion("description not between", value1, value2, "description");
return (Criteria) this;
}
public Criteria andIconIsNull() {
addCriterion("icon is null");
return (Criteria) this;
}
public Criteria andIconIsNotNull() {
addCriterion("icon is not null");
return (Criteria) this;
}
public Criteria andIconEqualTo(String value) {
addCriterion("icon =", value, "icon");
return (Criteria) this;
}
public Criteria andIconNotEqualTo(String value) {
addCriterion("icon <>", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThan(String value) {
addCriterion("icon >", value, "icon");
return (Criteria) this;
}
public Criteria andIconGreaterThanOrEqualTo(String value) {
addCriterion("icon >=", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThan(String value) {
addCriterion("icon <", value, "icon");
return (Criteria) this;
}
public Criteria andIconLessThanOrEqualTo(String value) {
addCriterion("icon <=", value, "icon");
return (Criteria) this;
}
public Criteria andIconLike(String value) {
addCriterion("icon like", value, "icon");
return (Criteria) this;
}
public Criteria andIconNotLike(String value) {
addCriterion("icon not like", value, "icon");
return (Criteria) this;
}
public Criteria andIconIn(List<String> values) {
addCriterion("icon in", values, "icon");
return (Criteria) this;
}
public Criteria andIconNotIn(List<String> values) {
addCriterion("icon not in", values, "icon");
return (Criteria) this;
}
public Criteria andIconBetween(String value1, String value2) {
addCriterion("icon between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andIconNotBetween(String value1, String value2) {
addCriterion("icon not between", value1, value2, "icon");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andAliasIsNull() {
addCriterion("alias is null");
return (Criteria) this;
}
public Criteria andAliasIsNotNull() {
addCriterion("alias is not null");
return (Criteria) this;
}
public Criteria andAliasEqualTo(String value) {
addCriterion("alias =", value, "alias");
return (Criteria) this;
}
public Criteria andAliasNotEqualTo(String value) {
addCriterion("alias <>", value, "alias");
return (Criteria) this;
}
public Criteria andAliasGreaterThan(String value) {
addCriterion("alias >", value, "alias");
return (Criteria) this;
}
public Criteria andAliasGreaterThanOrEqualTo(String value) {
addCriterion("alias >=", value, "alias");
return (Criteria) this;
}
public Criteria andAliasLessThan(String value) {
addCriterion("alias <", value, "alias");
return (Criteria) this;
}
public Criteria andAliasLessThanOrEqualTo(String value) {
addCriterion("alias <=", value, "alias");
return (Criteria) this;
}
public Criteria andAliasLike(String value) {
addCriterion("alias like", value, "alias");
return (Criteria) this;
}
public Criteria andAliasNotLike(String value) {
addCriterion("alias not like", value, "alias");
return (Criteria) this;
}
public Criteria andAliasIn(List<String> values) {
addCriterion("alias in", values, "alias");
return (Criteria) this;
}
public Criteria andAliasNotIn(List<String> values) {
addCriterion("alias not in", values, "alias");
return (Criteria) this;
}
public Criteria andAliasBetween(String value1, String value2) {
addCriterion("alias between", value1, value2, "alias");
return (Criteria) this;
}
public Criteria andAliasNotBetween(String value1, String value2) {
addCriterion("alias not between", value1, value2, "alias");
return (Criteria) this;
}
public Criteria andCtimeIsNull() {
addCriterion("ctime is null");
return (Criteria) this;
}
public Criteria andCtimeIsNotNull() {
addCriterion("ctime is not null");
return (Criteria) this;
}
public Criteria andCtimeEqualTo(Long value) {
addCriterion("ctime =", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotEqualTo(Long value) {
addCriterion("ctime <>", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeGreaterThan(Long value) {
addCriterion("ctime >", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeGreaterThanOrEqualTo(Long value) {
addCriterion("ctime >=", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeLessThan(Long value) {
addCriterion("ctime <", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeLessThanOrEqualTo(Long value) {
addCriterion("ctime <=", value, "ctime");
return (Criteria) this;
}
public Criteria andCtimeIn(List<Long> values) {
addCriterion("ctime in", values, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotIn(List<Long> values) {
addCriterion("ctime not in", values, "ctime");
return (Criteria) this;
}
public Criteria andCtimeBetween(Long value1, Long value2) {
addCriterion("ctime between", value1, value2, "ctime");
return (Criteria) this;
}
public Criteria andCtimeNotBetween(Long value1, Long value2) {
addCriterion("ctime not between", value1, value2, "ctime");
return (Criteria) this;
}
public Criteria andOrdersIsNull() {
addCriterion("orders is null");
return (Criteria) this;
}
public Criteria andOrdersIsNotNull() {
addCriterion("orders is not null");
return (Criteria) this;
}
public Criteria andOrdersEqualTo(Long value) {
addCriterion("orders =", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersNotEqualTo(Long value) {
addCriterion("orders <>", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersGreaterThan(Long value) {
addCriterion("orders >", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersGreaterThanOrEqualTo(Long value) {
addCriterion("orders >=", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersLessThan(Long value) {
addCriterion("orders <", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersLessThanOrEqualTo(Long value) {
addCriterion("orders <=", value, "orders");
return (Criteria) this;
}
public Criteria andOrdersIn(List<Long> values) {
addCriterion("orders in", values, "orders");
return (Criteria) this;
}
public Criteria andOrdersNotIn(List<Long> values) {
addCriterion("orders not in", values, "orders");
return (Criteria) this;
}
public Criteria andOrdersBetween(Long value1, Long value2) {
addCriterion("orders between", value1, value2, "orders");
return (Criteria) this;
}
public Criteria andOrdersNotBetween(Long value1, Long value2) {
addCriterion("orders not between", value1, value2, "orders");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

View File

@ -40,5 +40,6 @@
<table tableName="cms_article_category" domainObjectName="CmsArticleCategory"></table>
<table tableName="cms_article_tag" domainObjectName="CmsArticleTag"></table>
<table tableName="cms_category_tag" domainObjectName="CmsCategoryTag"></table>
<table tableName="cms_comment" domainObjectName="CmsComment"></table>
</context>
</generatorConfiguration>

View File

@ -10,7 +10,7 @@ Target Server Type : MYSQL
Target Server Version : 50621
File Encoding : 65001
Date: 2016-10-05 19:31:44
Date: 2016-10-16 20:44:49
*/
SET FOREIGN_KEY_CHECKS=0;
@ -33,8 +33,25 @@ CREATE TABLE `book` (
-- ----------------------------
DROP TABLE IF EXISTS `cms_article`;
CREATE TABLE `cms_article` (
`article_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`article_id`)
`article_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章编号',
`title` varchar(200) NOT NULL COMMENT '文章标题',
`author` varchar(50) DEFAULT NULL COMMENT '文章原作者',
`fromurl` varchar(300) DEFAULT NULL COMMENT '转载来源网址',
`image` varchar(300) DEFAULT NULL COMMENT '封面图',
`keywords` varchar(100) DEFAULT NULL COMMENT '关键字',
`description` varchar(500) DEFAULT NULL COMMENT '简介',
`type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '类型(1:普通,2:热门...)',
`allowcomments` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否允许评论(0:不允许,1:允许)',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态(-1:审核不通过回收站,0:刚发布未审核,1:已审核公开,2:已审核个人)',
`content` mediumtext COMMENT '内容',
`user_id` int(10) unsigned NOT NULL COMMENT '发布人id',
`up` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '',
`down` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '',
`readnumber` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '阅读数量',
`ctime` bigint(20) unsigned NOT NULL COMMENT '创建时间',
`orders` bigint(20) unsigned NOT NULL COMMENT '排序',
PRIMARY KEY (`article_id`),
KEY `cms_article_orders` (`orders`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文章表';
-- ----------------------------
@ -73,7 +90,20 @@ CREATE TABLE `cms_article_tag` (
DROP TABLE IF EXISTS `cms_category`;
CREATE TABLE `cms_category` (
`category_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '类目编号',
PRIMARY KEY (`category_id`)
`pid` int(10) unsigned NOT NULL COMMENT '上级编号',
`level` tinyint(3) NOT NULL COMMENT '层级',
`name` varchar(20) NOT NULL COMMENT '名称',
`description` varchar(200) DEFAULT NULL COMMENT '描述',
`icon` varchar(50) DEFAULT NULL COMMENT '图标',
`type` tinyint(3) NOT NULL DEFAULT '1' COMMENT '类型(1:普通,2:热门...)',
`alias` varchar(20) DEFAULT NULL COMMENT '别名',
`ctime` bigint(20) unsigned NOT NULL COMMENT '创建时间',
`orders` bigint(255) unsigned NOT NULL COMMENT '排序',
PRIMARY KEY (`category_id`),
KEY `cms_category_orders` (`orders`),
KEY `cms_category_pid` (`pid`),
KEY `cms_category_alias` (`alias`),
CONSTRAINT `cms_category_pid` FOREIGN KEY (`pid`) REFERENCES `cms_category` (`category_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='类目表';
-- ----------------------------
@ -91,13 +121,43 @@ CREATE TABLE `cms_category_tag` (
CONSTRAINT `cms_category_tag_tag_id` FOREIGN KEY (`tag_id`) REFERENCES `cms_tag` (`tag_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT=' 分类标签表';
-- ----------------------------
-- Table structure for cms_comment
-- ----------------------------
DROP TABLE IF EXISTS `cms_comment`;
CREATE TABLE `cms_comment` (
`comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
`pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '回复楼中楼id',
`article_id` int(10) unsigned NOT NULL COMMENT '文章id',
`user_id` int(10) unsigned NOT NULL COMMENT '用户id',
`content` text NOT NULL COMMENT '评论内容',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态(-1:审核不通过,0:未审核,1:已审核通过)',
`ip` varchar(30) DEFAULT NULL COMMENT '评论人ip地址',
`agent` varchar(200) DEFAULT NULL COMMENT '评论人终端信息',
`ctime` bigint(20) NOT NULL,
PRIMARY KEY (`comment_id`),
KEY `cms_comment_article_id` (`article_id`),
KEY `cms_comment_pid` (`pid`),
CONSTRAINT `cms_comment_article_id` FOREIGN KEY (`article_id`) REFERENCES `cms_article` (`article_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `cms_comment_pid` FOREIGN KEY (`pid`) REFERENCES `cms_comment` (`comment_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for cms_tag
-- ----------------------------
DROP TABLE IF EXISTS `cms_tag`;
CREATE TABLE `cms_tag` (
`tag_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '标签编号',
PRIMARY KEY (`tag_id`)
`name` varchar(20) NOT NULL COMMENT '名称',
`description` varchar(200) DEFAULT NULL COMMENT '描述',
`icon` varchar(50) DEFAULT NULL COMMENT '图标',
`type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '类型(1:普通,2:热门...)',
`alias` varchar(20) DEFAULT NULL COMMENT '别名',
`ctime` bigint(20) unsigned NOT NULL COMMENT '创建时间',
`orders` bigint(20) unsigned NOT NULL COMMENT 'orders',
PRIMARY KEY (`tag_id`),
KEY `cms_tag_orders` (`orders`),
KEY `cms_tag_alias` (`alias`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='标签表';
-- ----------------------------
@ -113,4 +173,4 @@ CREATE TABLE `user` (
`ctime` bigint(20) DEFAULT NULL,
`content` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='用户表';
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COMMENT='用户表';