|
|
@@ -1,44 +1,44 @@
|
|
|
-<?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.dao.mapper.CmsArticleMapper" >
|
|
|
- <resultMap id="BaseResultMap" type="com.zheng.cms.dao.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="readnumber" property="readnumber" jdbcType="INTEGER" />
|
|
|
- <result column="ctime" property="ctime" jdbcType="BIGINT" />
|
|
|
- <result column="orders" property="orders" jdbcType="BIGINT" />
|
|
|
+<?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.dao.mapper.CmsArticleMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.zheng.cms.dao.model.CmsArticle">
|
|
|
+ <id column="article_id" jdbcType="INTEGER" property="articleId" />
|
|
|
+ <result column="title" jdbcType="VARCHAR" property="title" />
|
|
|
+ <result column="author" jdbcType="VARCHAR" property="author" />
|
|
|
+ <result column="fromurl" jdbcType="VARCHAR" property="fromurl" />
|
|
|
+ <result column="image" jdbcType="VARCHAR" property="image" />
|
|
|
+ <result column="keywords" jdbcType="VARCHAR" property="keywords" />
|
|
|
+ <result column="description" jdbcType="VARCHAR" property="description" />
|
|
|
+ <result column="type" jdbcType="TINYINT" property="type" />
|
|
|
+ <result column="allowcomments" jdbcType="TINYINT" property="allowcomments" />
|
|
|
+ <result column="status" jdbcType="TINYINT" property="status" />
|
|
|
+ <result column="user_id" jdbcType="INTEGER" property="userId" />
|
|
|
+ <result column="readnumber" jdbcType="INTEGER" property="readnumber" />
|
|
|
+ <result column="ctime" jdbcType="BIGINT" property="ctime" />
|
|
|
+ <result column="orders" jdbcType="BIGINT" property="orders" />
|
|
|
</resultMap>
|
|
|
- <resultMap id="ResultMapWithBLOBs" type="com.zheng.cms.dao.model.CmsArticle" extends="BaseResultMap" >
|
|
|
- <result column="content" property="content" jdbcType="LONGVARCHAR" />
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.zheng.cms.dao.model.CmsArticle">
|
|
|
+ <result column="content" jdbcType="LONGVARCHAR" property="content" />
|
|
|
</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" >
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
and ${criterion.condition}
|
|
|
</when>
|
|
|
- <when test="criterion.singleValue" >
|
|
|
+ <when test="criterion.singleValue">
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
</when>
|
|
|
- <when test="criterion.betweenValue" >
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
</when>
|
|
|
- <when test="criterion.listValue" >
|
|
|
+ <when test="criterion.listValue">
|
|
|
and ${criterion.condition}
|
|
|
- <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
#{listItem}
|
|
|
</foreach>
|
|
|
</when>
|
|
|
@@ -49,25 +49,25 @@
|
|
|
</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" >
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
and ${criterion.condition}
|
|
|
</when>
|
|
|
- <when test="criterion.singleValue" >
|
|
|
+ <when test="criterion.singleValue">
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
</when>
|
|
|
- <when test="criterion.betweenValue" >
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
</when>
|
|
|
- <when test="criterion.listValue" >
|
|
|
+ <when test="criterion.listValue">
|
|
|
and ${criterion.condition}
|
|
|
- <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
#{listItem}
|
|
|
</foreach>
|
|
|
</when>
|
|
|
@@ -78,52 +78,52 @@
|
|
|
</foreach>
|
|
|
</where>
|
|
|
</sql>
|
|
|
- <sql id="Base_Column_List" >
|
|
|
+ <sql id="Base_Column_List">
|
|
|
article_id, title, author, fromurl, image, keywords, description, type, allowcomments,
|
|
|
status, user_id, readnumber, ctime, orders
|
|
|
</sql>
|
|
|
- <sql id="Blob_Column_List" >
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
content
|
|
|
</sql>
|
|
|
- <select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.zheng.cms.dao.model.CmsArticleExample" >
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.zheng.cms.dao.model.CmsArticleExample" resultMap="ResultMapWithBLOBs">
|
|
|
select
|
|
|
- <if test="distinct" >
|
|
|
+ <if test="distinct">
|
|
|
distinct
|
|
|
</if>
|
|
|
<include refid="Base_Column_List" />
|
|
|
,
|
|
|
<include refid="Blob_Column_List" />
|
|
|
from cms_article
|
|
|
- <if test="_parameter != null" >
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
</if>
|
|
|
- <if test="orderByClause != null" >
|
|
|
+ <if test="orderByClause != null">
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.cms.dao.model.CmsArticleExample" >
|
|
|
+ <select id="selectByExample" parameterType="com.zheng.cms.dao.model.CmsArticleExample" resultMap="BaseResultMap">
|
|
|
select
|
|
|
- <if test="distinct" >
|
|
|
+ <if test="distinct">
|
|
|
distinct
|
|
|
</if>
|
|
|
<include refid="Base_Column_List" />
|
|
|
from cms_article
|
|
|
- <if test="_parameter != null" >
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
</if>
|
|
|
- <if test="orderByClause != null" >
|
|
|
+ <if test="orderByClause != null">
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
- <if test="limit != null" >
|
|
|
- <if test="offset != null" >
|
|
|
+ <if test="limit != null">
|
|
|
+ <if test="offset != null">
|
|
|
limit ${offset}, ${limit}
|
|
|
</if>
|
|
|
- <if test="offset == null" >
|
|
|
+ <if test="offset == null">
|
|
|
limit ${limit}
|
|
|
</if>
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
,
|
|
|
@@ -131,17 +131,17 @@
|
|
|
from cms_article
|
|
|
where article_id = #{articleId,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
delete from cms_article
|
|
|
where article_id = #{articleId,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.zheng.cms.dao.model.CmsArticleExample" >
|
|
|
+ <delete id="deleteByExample" parameterType="com.zheng.cms.dao.model.CmsArticleExample">
|
|
|
delete from cms_article
|
|
|
- <if test="_parameter != null" >
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
</if>
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="com.zheng.cms.dao.model.CmsArticle" >
|
|
|
+ <insert id="insert" parameterType="com.zheng.cms.dao.model.CmsArticle">
|
|
|
insert into cms_article (article_id, title, author,
|
|
|
fromurl, image, keywords,
|
|
|
description, type, allowcomments,
|
|
|
@@ -155,163 +155,163 @@
|
|
|
#{ctime,jdbcType=BIGINT}, #{orders,jdbcType=BIGINT}, #{content,jdbcType=LONGVARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="com.zheng.cms.dao.model.CmsArticle" >
|
|
|
+ <insert id="insertSelective" parameterType="com.zheng.cms.dao.model.CmsArticle">
|
|
|
insert into cms_article
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
- <if test="articleId != null" >
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="articleId != null">
|
|
|
article_id,
|
|
|
</if>
|
|
|
- <if test="title != null" >
|
|
|
+ <if test="title != null">
|
|
|
title,
|
|
|
</if>
|
|
|
- <if test="author != null" >
|
|
|
+ <if test="author != null">
|
|
|
author,
|
|
|
</if>
|
|
|
- <if test="fromurl != null" >
|
|
|
+ <if test="fromurl != null">
|
|
|
fromurl,
|
|
|
</if>
|
|
|
- <if test="image != null" >
|
|
|
+ <if test="image != null">
|
|
|
image,
|
|
|
</if>
|
|
|
- <if test="keywords != null" >
|
|
|
+ <if test="keywords != null">
|
|
|
keywords,
|
|
|
</if>
|
|
|
- <if test="description != null" >
|
|
|
+ <if test="description != null">
|
|
|
description,
|
|
|
</if>
|
|
|
- <if test="type != null" >
|
|
|
+ <if test="type != null">
|
|
|
type,
|
|
|
</if>
|
|
|
- <if test="allowcomments != null" >
|
|
|
+ <if test="allowcomments != null">
|
|
|
allowcomments,
|
|
|
</if>
|
|
|
- <if test="status != null" >
|
|
|
+ <if test="status != null">
|
|
|
status,
|
|
|
</if>
|
|
|
- <if test="userId != null" >
|
|
|
+ <if test="userId != null">
|
|
|
user_id,
|
|
|
</if>
|
|
|
- <if test="readnumber != null" >
|
|
|
+ <if test="readnumber != null">
|
|
|
readnumber,
|
|
|
</if>
|
|
|
- <if test="ctime != null" >
|
|
|
+ <if test="ctime != null">
|
|
|
ctime,
|
|
|
</if>
|
|
|
- <if test="orders != null" >
|
|
|
+ <if test="orders != null">
|
|
|
orders,
|
|
|
</if>
|
|
|
- <if test="content != null" >
|
|
|
+ <if test="content != null">
|
|
|
content,
|
|
|
</if>
|
|
|
</trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="articleId != null" >
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="articleId != null">
|
|
|
#{articleId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="title != null" >
|
|
|
+ <if test="title != null">
|
|
|
#{title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="author != null" >
|
|
|
+ <if test="author != null">
|
|
|
#{author,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="fromurl != null" >
|
|
|
+ <if test="fromurl != null">
|
|
|
#{fromurl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="image != null" >
|
|
|
+ <if test="image != null">
|
|
|
#{image,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="keywords != null" >
|
|
|
+ <if test="keywords != null">
|
|
|
#{keywords,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="description != null" >
|
|
|
+ <if test="description != null">
|
|
|
#{description,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="type != null" >
|
|
|
+ <if test="type != null">
|
|
|
#{type,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
- <if test="allowcomments != null" >
|
|
|
+ <if test="allowcomments != null">
|
|
|
#{allowcomments,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
- <if test="status != null" >
|
|
|
+ <if test="status != null">
|
|
|
#{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
- <if test="userId != null" >
|
|
|
+ <if test="userId != null">
|
|
|
#{userId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="readnumber != null" >
|
|
|
+ <if test="readnumber != null">
|
|
|
#{readnumber,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="ctime != null" >
|
|
|
+ <if test="ctime != null">
|
|
|
#{ctime,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="orders != null" >
|
|
|
+ <if test="orders != null">
|
|
|
#{orders,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="content != null" >
|
|
|
+ <if test="content != null">
|
|
|
#{content,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <select id="countByExample" parameterType="com.zheng.cms.dao.model.CmsArticleExample" resultType="java.lang.Integer" >
|
|
|
+ <select id="countByExample" parameterType="com.zheng.cms.dao.model.CmsArticleExample" resultType="java.lang.Long">
|
|
|
select count(*) from cms_article
|
|
|
- <if test="_parameter != null" >
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
</if>
|
|
|
</select>
|
|
|
- <update id="updateByExampleSelective" parameterType="map" >
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
update cms_article
|
|
|
- <set >
|
|
|
- <if test="record.articleId != null" >
|
|
|
+ <set>
|
|
|
+ <if test="record.articleId != null">
|
|
|
article_id = #{record.articleId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="record.title != null" >
|
|
|
+ <if test="record.title != null">
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.author != null" >
|
|
|
+ <if test="record.author != null">
|
|
|
author = #{record.author,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.fromurl != null" >
|
|
|
+ <if test="record.fromurl != null">
|
|
|
fromurl = #{record.fromurl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.image != null" >
|
|
|
+ <if test="record.image != null">
|
|
|
image = #{record.image,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.keywords != null" >
|
|
|
+ <if test="record.keywords != null">
|
|
|
keywords = #{record.keywords,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.description != null" >
|
|
|
+ <if test="record.description != null">
|
|
|
description = #{record.description,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.type != null" >
|
|
|
+ <if test="record.type != null">
|
|
|
type = #{record.type,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
- <if test="record.allowcomments != null" >
|
|
|
+ <if test="record.allowcomments != null">
|
|
|
allowcomments = #{record.allowcomments,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
- <if test="record.status != null" >
|
|
|
+ <if test="record.status != null">
|
|
|
status = #{record.status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
- <if test="record.userId != null" >
|
|
|
+ <if test="record.userId != null">
|
|
|
user_id = #{record.userId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="record.readnumber != null" >
|
|
|
+ <if test="record.readnumber != null">
|
|
|
readnumber = #{record.readnumber,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="record.ctime != null" >
|
|
|
+ <if test="record.ctime != null">
|
|
|
ctime = #{record.ctime,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="record.orders != null" >
|
|
|
+ <if test="record.orders != null">
|
|
|
orders = #{record.orders,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="record.content != null" >
|
|
|
+ <if test="record.content != null">
|
|
|
content = #{record.content,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
- <if test="_parameter != null" >
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
- <update id="updateByExampleWithBLOBs" parameterType="map" >
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
update cms_article
|
|
|
set article_id = #{record.articleId,jdbcType=INTEGER},
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
@@ -328,11 +328,11 @@
|
|
|
ctime = #{record.ctime,jdbcType=BIGINT},
|
|
|
orders = #{record.orders,jdbcType=BIGINT},
|
|
|
content = #{record.content,jdbcType=LONGVARCHAR}
|
|
|
- <if test="_parameter != null" >
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
- <update id="updateByExample" parameterType="map" >
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
update cms_article
|
|
|
set article_id = #{record.articleId,jdbcType=INTEGER},
|
|
|
title = #{record.title,jdbcType=VARCHAR},
|
|
|
@@ -348,59 +348,59 @@
|
|
|
readnumber = #{record.readnumber,jdbcType=INTEGER},
|
|
|
ctime = #{record.ctime,jdbcType=BIGINT},
|
|
|
orders = #{record.orders,jdbcType=BIGINT}
|
|
|
- <if test="_parameter != null" >
|
|
|
+ <if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.zheng.cms.dao.model.CmsArticle" >
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.zheng.cms.dao.model.CmsArticle">
|
|
|
update cms_article
|
|
|
- <set >
|
|
|
- <if test="title != null" >
|
|
|
+ <set>
|
|
|
+ <if test="title != null">
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="author != null" >
|
|
|
+ <if test="author != null">
|
|
|
author = #{author,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="fromurl != null" >
|
|
|
+ <if test="fromurl != null">
|
|
|
fromurl = #{fromurl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="image != null" >
|
|
|
+ <if test="image != null">
|
|
|
image = #{image,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="keywords != null" >
|
|
|
+ <if test="keywords != null">
|
|
|
keywords = #{keywords,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="description != null" >
|
|
|
+ <if test="description != null">
|
|
|
description = #{description,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="type != null" >
|
|
|
+ <if test="type != null">
|
|
|
type = #{type,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
- <if test="allowcomments != null" >
|
|
|
+ <if test="allowcomments != null">
|
|
|
allowcomments = #{allowcomments,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
- <if test="status != null" >
|
|
|
+ <if test="status != null">
|
|
|
status = #{status,jdbcType=TINYINT},
|
|
|
</if>
|
|
|
- <if test="userId != null" >
|
|
|
+ <if test="userId != null">
|
|
|
user_id = #{userId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="readnumber != null" >
|
|
|
+ <if test="readnumber != null">
|
|
|
readnumber = #{readnumber,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="ctime != null" >
|
|
|
+ <if test="ctime != null">
|
|
|
ctime = #{ctime,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="orders != null" >
|
|
|
+ <if test="orders != null">
|
|
|
orders = #{orders,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
- <if test="content != null" >
|
|
|
+ <if test="content != null">
|
|
|
content = #{content,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where article_id = #{articleId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.zheng.cms.dao.model.CmsArticle" >
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.zheng.cms.dao.model.CmsArticle">
|
|
|
update cms_article
|
|
|
set title = #{title,jdbcType=VARCHAR},
|
|
|
author = #{author,jdbcType=VARCHAR},
|
|
|
@@ -418,7 +418,7 @@
|
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
|
where article_id = #{articleId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.zheng.cms.dao.model.CmsArticle" >
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.zheng.cms.dao.model.CmsArticle">
|
|
|
update cms_article
|
|
|
set title = #{title,jdbcType=VARCHAR},
|
|
|
author = #{author,jdbcType=VARCHAR},
|