修改readme

This commit is contained in:
zhh 2018-04-28 13:37:51 +08:00
parent f5f4b49de6
commit 49e5bf4bc0
64 changed files with 34515 additions and 1 deletions

View File

@ -15,6 +15,10 @@ Swagger-UI | 文档生产工具
Hibernator-Validator | 验证框架
Vue | 前端框架
Element | 前端模版
Elasticsearch | 搜索引擎
RabbitMq | 消息队列
Redis | 分布式缓存
MongoDb | noSql数据库
### 框架搭建
功能 | 完成
@ -89,7 +93,7 @@ JTA事务处理 | ✔
- 查询商品关联信息:商品关联专题和关联优选
- 修改商品信息商品属性分类及规格不可修改只支持单个sku的修改、删除、新增商品属性分类及规格可以修改修改后同时显示原sku库存及属性分类
###### 商品分页查询
###### 商品分页查询(完成)
- 商品的状态:全部商品、已上架、未上架、待审核、未通过 (publishStatus verifyStatus)
- 商品名称(%name%)
- 商品货号(productSn)

View File

@ -223,4 +223,448 @@
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsHelpCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="help_count" jdbcType="INTEGER" property="helpCount" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, icon, help_count, show_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsHelpCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_help_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_help_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_help_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsHelpCategoryExample">
delete from cms_help_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsHelpCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_help_category (name, icon, help_count,
show_status, sort)
values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{helpCount,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsHelpCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_help_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="icon != null">
icon,
</if>
<if test="helpCount != null">
help_count,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="helpCount != null">
#{helpCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsHelpCategoryExample" resultType="java.lang.Integer">
select count(*) from cms_help_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_help_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.helpCount != null">
help_count = #{record.helpCount,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_help_category
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
help_count = #{record.helpCount,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsHelpCategory">
update cms_help_category
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="helpCount != null">
help_count = #{helpCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsHelpCategory">
update cms_help_category
set name = #{name,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
help_count = #{helpCount,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsHelpCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="help_count" jdbcType="INTEGER" property="helpCount" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, icon, help_count, show_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsHelpCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_help_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_help_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_help_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsHelpCategoryExample">
delete from cms_help_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsHelpCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_help_category (name, icon, help_count,
show_status, sort)
values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{helpCount,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsHelpCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_help_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="icon != null">
icon,
</if>
<if test="helpCount != null">
help_count,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="helpCount != null">
#{helpCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsHelpCategoryExample" resultType="java.lang.Integer">
select count(*) from cms_help_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_help_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.helpCount != null">
help_count = #{record.helpCount,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_help_category
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
help_count = #{record.helpCount,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsHelpCategory">
update cms_help_category
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="helpCount != null">
help_count = #{helpCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsHelpCategory">
update cms_help_category
set name = #{name,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
help_count = #{helpCount,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -301,4 +301,604 @@
read_count = #{readCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsHelp">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="read_count" jdbcType="INTEGER" property="readCount" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.CmsHelp">
<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="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, category_id, icon, title, show_status, create_time, read_count
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.CmsHelpExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_help
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsHelpExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_help
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_help
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_help
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsHelpExample">
delete from cms_help
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsHelp">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_help (category_id, icon, title,
show_status, create_time, read_count,
content)
values (#{categoryId,jdbcType=BIGINT}, #{icon,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{showStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{readCount,jdbcType=INTEGER},
#{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsHelp">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_help
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
category_id,
</if>
<if test="icon != null">
icon,
</if>
<if test="title != null">
title,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="readCount != null">
read_count,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="readCount != null">
#{readCount,jdbcType=INTEGER},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsHelpExample" resultType="java.lang.Integer">
select count(*) from cms_help
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_help
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=INTEGER},
</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_help
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
icon = #{record.icon,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
show_status = #{record.showStatus,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
read_count = #{record.readCount,jdbcType=INTEGER},
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_help
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
icon = #{record.icon,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
show_status = #{record.showStatus,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
read_count = #{record.readCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsHelp">
update cms_help
<set>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="readCount != null">
read_count = #{readCount,jdbcType=INTEGER},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.CmsHelp">
update cms_help
set category_id = #{categoryId,jdbcType=BIGINT},
icon = #{icon,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
show_status = #{showStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
read_count = #{readCount,jdbcType=INTEGER},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsHelp">
update cms_help
set category_id = #{categoryId,jdbcType=BIGINT},
icon = #{icon,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
show_status = #{showStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
read_count = #{readCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsHelp">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="read_count" jdbcType="INTEGER" property="readCount" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.CmsHelp">
<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="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, category_id, icon, title, show_status, create_time, read_count
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.CmsHelpExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_help
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsHelpExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_help
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_help
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_help
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsHelpExample">
delete from cms_help
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsHelp">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_help (category_id, icon, title,
show_status, create_time, read_count,
content)
values (#{categoryId,jdbcType=BIGINT}, #{icon,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{showStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{readCount,jdbcType=INTEGER},
#{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsHelp">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_help
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
category_id,
</if>
<if test="icon != null">
icon,
</if>
<if test="title != null">
title,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="readCount != null">
read_count,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="readCount != null">
#{readCount,jdbcType=INTEGER},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsHelpExample" resultType="java.lang.Integer">
select count(*) from cms_help
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_help
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=INTEGER},
</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_help
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
icon = #{record.icon,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
show_status = #{record.showStatus,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
read_count = #{record.readCount,jdbcType=INTEGER},
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_help
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
icon = #{record.icon,jdbcType=VARCHAR},
title = #{record.title,jdbcType=VARCHAR},
show_status = #{record.showStatus,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
read_count = #{record.readCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsHelp">
update cms_help
<set>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="readCount != null">
read_count = #{readCount,jdbcType=INTEGER},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.CmsHelp">
update cms_help
set category_id = #{categoryId,jdbcType=BIGINT},
icon = #{icon,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
show_status = #{showStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
read_count = #{readCount,jdbcType=INTEGER},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsHelp">
update cms_help
set category_id = #{categoryId,jdbcType=BIGINT},
icon = #{icon,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
show_status = #{showStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
read_count = #{readCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -208,4 +208,418 @@
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsMemberReport">
<result column="id" jdbcType="BIGINT" property="id" />
<result column="report_type" jdbcType="INTEGER" property="reportType" />
<result column="report_member_name" jdbcType="VARCHAR" property="reportMemberName" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="report_object" jdbcType="VARCHAR" property="reportObject" />
<result column="report_status" jdbcType="INTEGER" property="reportStatus" />
<result column="handle_status" jdbcType="INTEGER" property="handleStatus" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, report_type, report_member_name, create_time, report_object, report_status, handle_status,
note
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsMemberReportExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_member_report
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsMemberReportExample">
delete from cms_member_report
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsMemberReport">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_member_report (report_type, report_member_name, create_time,
report_object, report_status, handle_status,
note)
values (#{reportType,jdbcType=INTEGER}, #{reportMemberName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{reportObject,jdbcType=VARCHAR}, #{reportStatus,jdbcType=INTEGER}, #{handleStatus,jdbcType=INTEGER},
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsMemberReport">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_member_report
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="reportType != null">
report_type,
</if>
<if test="reportMemberName != null">
report_member_name,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="reportObject != null">
report_object,
</if>
<if test="reportStatus != null">
report_status,
</if>
<if test="handleStatus != null">
handle_status,
</if>
<if test="note != null">
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reportType != null">
#{reportType,jdbcType=INTEGER},
</if>
<if test="reportMemberName != null">
#{reportMemberName,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="reportObject != null">
#{reportObject,jdbcType=VARCHAR},
</if>
<if test="reportStatus != null">
#{reportStatus,jdbcType=INTEGER},
</if>
<if test="handleStatus != null">
#{handleStatus,jdbcType=INTEGER},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsMemberReportExample" resultType="java.lang.Integer">
select count(*) from cms_member_report
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_member_report
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.reportType != null">
report_type = #{record.reportType,jdbcType=INTEGER},
</if>
<if test="record.reportMemberName != null">
report_member_name = #{record.reportMemberName,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.reportObject != null">
report_object = #{record.reportObject,jdbcType=VARCHAR},
</if>
<if test="record.reportStatus != null">
report_status = #{record.reportStatus,jdbcType=INTEGER},
</if>
<if test="record.handleStatus != null">
handle_status = #{record.handleStatus,jdbcType=INTEGER},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_member_report
set id = #{record.id,jdbcType=BIGINT},
report_type = #{record.reportType,jdbcType=INTEGER},
report_member_name = #{record.reportMemberName,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
report_object = #{record.reportObject,jdbcType=VARCHAR},
report_status = #{record.reportStatus,jdbcType=INTEGER},
handle_status = #{record.handleStatus,jdbcType=INTEGER},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsMemberReport">
<result column="id" jdbcType="BIGINT" property="id" />
<result column="report_type" jdbcType="INTEGER" property="reportType" />
<result column="report_member_name" jdbcType="VARCHAR" property="reportMemberName" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="report_object" jdbcType="VARCHAR" property="reportObject" />
<result column="report_status" jdbcType="INTEGER" property="reportStatus" />
<result column="handle_status" jdbcType="INTEGER" property="handleStatus" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, report_type, report_member_name, create_time, report_object, report_status, handle_status,
note
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsMemberReportExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_member_report
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsMemberReportExample">
delete from cms_member_report
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsMemberReport">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_member_report (report_type, report_member_name, create_time,
report_object, report_status, handle_status,
note)
values (#{reportType,jdbcType=INTEGER}, #{reportMemberName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{reportObject,jdbcType=VARCHAR}, #{reportStatus,jdbcType=INTEGER}, #{handleStatus,jdbcType=INTEGER},
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsMemberReport">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_member_report
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="reportType != null">
report_type,
</if>
<if test="reportMemberName != null">
report_member_name,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="reportObject != null">
report_object,
</if>
<if test="reportStatus != null">
report_status,
</if>
<if test="handleStatus != null">
handle_status,
</if>
<if test="note != null">
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reportType != null">
#{reportType,jdbcType=INTEGER},
</if>
<if test="reportMemberName != null">
#{reportMemberName,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="reportObject != null">
#{reportObject,jdbcType=VARCHAR},
</if>
<if test="reportStatus != null">
#{reportStatus,jdbcType=INTEGER},
</if>
<if test="handleStatus != null">
#{handleStatus,jdbcType=INTEGER},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsMemberReportExample" resultType="java.lang.Integer">
select count(*) from cms_member_report
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_member_report
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.reportType != null">
report_type = #{record.reportType,jdbcType=INTEGER},
</if>
<if test="record.reportMemberName != null">
report_member_name = #{record.reportMemberName,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.reportObject != null">
report_object = #{record.reportObject,jdbcType=VARCHAR},
</if>
<if test="record.reportStatus != null">
report_status = #{record.reportStatus,jdbcType=INTEGER},
</if>
<if test="record.handleStatus != null">
handle_status = #{record.handleStatus,jdbcType=INTEGER},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_member_report
set id = #{record.id,jdbcType=BIGINT},
report_type = #{record.reportType,jdbcType=INTEGER},
report_member_name = #{record.reportMemberName,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
report_object = #{record.reportObject,jdbcType=VARCHAR},
report_status = #{record.reportStatus,jdbcType=INTEGER},
handle_status = #{record.handleStatus,jdbcType=INTEGER},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>

View File

@ -265,4 +265,532 @@
show_status = #{showStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsPrefrenceArea">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="sub_title" jdbcType="VARCHAR" property="subTitle" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.CmsPrefrenceArea">
<result column="pic" jdbcType="VARBINARY" property="pic" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, sub_title, sort, show_status
</sql>
<sql id="Blob_Column_List">
pic
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.CmsPrefrenceAreaExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_prefrence_area
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_prefrence_area
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_prefrence_area
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_prefrence_area
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaExample">
delete from cms_prefrence_area
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsPrefrenceArea">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_prefrence_area (name, sub_title, sort,
show_status, pic)
values (#{name,jdbcType=VARCHAR}, #{subTitle,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{pic,jdbcType=VARBINARY})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsPrefrenceArea">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_prefrence_area
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="subTitle != null">
sub_title,
</if>
<if test="sort != null">
sort,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="pic != null">
pic,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="subTitle != null">
#{subTitle,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="pic != null">
#{pic,jdbcType=VARBINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaExample" resultType="java.lang.Integer">
select count(*) from cms_prefrence_area
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_prefrence_area
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.subTitle != null">
sub_title = #{record.subTitle,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARBINARY},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update cms_prefrence_area
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
sub_title = #{record.subTitle,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
pic = #{record.pic,jdbcType=VARBINARY}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_prefrence_area
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
sub_title = #{record.subTitle,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsPrefrenceArea">
update cms_prefrence_area
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="subTitle != null">
sub_title = #{subTitle,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARBINARY},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.CmsPrefrenceArea">
update cms_prefrence_area
set name = #{name,jdbcType=VARCHAR},
sub_title = #{subTitle,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
pic = #{pic,jdbcType=VARBINARY}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsPrefrenceArea">
update cms_prefrence_area
set name = #{name,jdbcType=VARCHAR},
sub_title = #{subTitle,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsPrefrenceArea">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="sub_title" jdbcType="VARCHAR" property="subTitle" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.CmsPrefrenceArea">
<result column="pic" jdbcType="VARBINARY" property="pic" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, sub_title, sort, show_status
</sql>
<sql id="Blob_Column_List">
pic
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.CmsPrefrenceAreaExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_prefrence_area
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_prefrence_area
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_prefrence_area
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_prefrence_area
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaExample">
delete from cms_prefrence_area
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsPrefrenceArea">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_prefrence_area (name, sub_title, sort,
show_status, pic)
values (#{name,jdbcType=VARCHAR}, #{subTitle,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{pic,jdbcType=VARBINARY})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsPrefrenceArea">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_prefrence_area
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="subTitle != null">
sub_title,
</if>
<if test="sort != null">
sort,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="pic != null">
pic,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="subTitle != null">
#{subTitle,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="pic != null">
#{pic,jdbcType=VARBINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaExample" resultType="java.lang.Integer">
select count(*) from cms_prefrence_area
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_prefrence_area
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.subTitle != null">
sub_title = #{record.subTitle,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARBINARY},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update cms_prefrence_area
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
sub_title = #{record.subTitle,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
pic = #{record.pic,jdbcType=VARBINARY}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_prefrence_area
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
sub_title = #{record.subTitle,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsPrefrenceArea">
update cms_prefrence_area
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="subTitle != null">
sub_title = #{subTitle,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARBINARY},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.CmsPrefrenceArea">
update cms_prefrence_area
set name = #{name,jdbcType=VARCHAR},
sub_title = #{subTitle,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
pic = #{pic,jdbcType=VARBINARY}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsPrefrenceArea">
update cms_prefrence_area
set name = #{name,jdbcType=VARCHAR},
sub_title = #{subTitle,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -176,4 +176,354 @@
product_id = #{productId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="prefrence_area_id" jdbcType="BIGINT" property="prefrenceAreaId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, prefrence_area_id, product_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_prefrence_area_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_prefrence_area_product_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_prefrence_area_product_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelationExample">
delete from cms_prefrence_area_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_prefrence_area_product_relation (prefrence_area_id, product_id)
values (#{prefrenceAreaId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_prefrence_area_product_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="prefrenceAreaId != null">
prefrence_area_id,
</if>
<if test="productId != null">
product_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="prefrenceAreaId != null">
#{prefrenceAreaId,jdbcType=BIGINT},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelationExample" resultType="java.lang.Integer">
select count(*) from cms_prefrence_area_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_prefrence_area_product_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.prefrenceAreaId != null">
prefrence_area_id = #{record.prefrenceAreaId,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_prefrence_area_product_relation
set id = #{record.id,jdbcType=BIGINT},
prefrence_area_id = #{record.prefrenceAreaId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
update cms_prefrence_area_product_relation
<set>
<if test="prefrenceAreaId != null">
prefrence_area_id = #{prefrenceAreaId,jdbcType=BIGINT},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
update cms_prefrence_area_product_relation
set prefrence_area_id = #{prefrenceAreaId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="prefrence_area_id" jdbcType="BIGINT" property="prefrenceAreaId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, prefrence_area_id, product_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_prefrence_area_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_prefrence_area_product_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_prefrence_area_product_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelationExample">
delete from cms_prefrence_area_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_prefrence_area_product_relation (prefrence_area_id, product_id)
values (#{prefrenceAreaId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_prefrence_area_product_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="prefrenceAreaId != null">
prefrence_area_id,
</if>
<if test="productId != null">
product_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="prefrenceAreaId != null">
#{prefrenceAreaId,jdbcType=BIGINT},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelationExample" resultType="java.lang.Integer">
select count(*) from cms_prefrence_area_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_prefrence_area_product_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.prefrenceAreaId != null">
prefrence_area_id = #{record.prefrenceAreaId,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_prefrence_area_product_relation
set id = #{record.id,jdbcType=BIGINT},
prefrence_area_id = #{record.prefrenceAreaId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
update cms_prefrence_area_product_relation
<set>
<if test="prefrenceAreaId != null">
prefrence_area_id = #{prefrenceAreaId,jdbcType=BIGINT},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsPrefrenceAreaProductRelation">
update cms_prefrence_area_product_relation
set prefrence_area_id = #{prefrenceAreaId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -223,4 +223,448 @@
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsSubjectCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="subject_count" jdbcType="INTEGER" property="subjectCount" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, icon, subject_count, show_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsSubjectCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_subject_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_subject_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_subject_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsSubjectCategoryExample">
delete from cms_subject_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsSubjectCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_category (name, icon, subject_count,
show_status, sort)
values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{subjectCount,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsSubjectCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="icon != null">
icon,
</if>
<if test="subjectCount != null">
subject_count,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="subjectCount != null">
#{subjectCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsSubjectCategoryExample" resultType="java.lang.Integer">
select count(*) from cms_subject_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_subject_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.subjectCount != null">
subject_count = #{record.subjectCount,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_subject_category
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
subject_count = #{record.subjectCount,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsSubjectCategory">
update cms_subject_category
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="subjectCount != null">
subject_count = #{subjectCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsSubjectCategory">
update cms_subject_category
set name = #{name,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
subject_count = #{subjectCount,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsSubjectCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="subject_count" jdbcType="INTEGER" property="subjectCount" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, icon, subject_count, show_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsSubjectCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_subject_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_subject_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_subject_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsSubjectCategoryExample">
delete from cms_subject_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsSubjectCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_category (name, icon, subject_count,
show_status, sort)
values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{subjectCount,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsSubjectCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="icon != null">
icon,
</if>
<if test="subjectCount != null">
subject_count,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="subjectCount != null">
#{subjectCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsSubjectCategoryExample" resultType="java.lang.Integer">
select count(*) from cms_subject_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_subject_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.subjectCount != null">
subject_count = #{record.subjectCount,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_subject_category
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
subject_count = #{record.subjectCount,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsSubjectCategory">
update cms_subject_category
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="subjectCount != null">
subject_count = #{subjectCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsSubjectCategory">
update cms_subject_category
set name = #{name,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
subject_count = #{subjectCount,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -240,4 +240,482 @@
show_status = #{showStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsSubjectComment">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="subject_id" jdbcType="BIGINT" property="subjectId" />
<result column="member_nick_name" jdbcType="VARCHAR" property="memberNickName" />
<result column="member_icon" jdbcType="VARCHAR" property="memberIcon" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, subject_id, member_nick_name, member_icon, content, create_time, show_status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsSubjectCommentExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_subject_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_subject_comment
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_subject_comment
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsSubjectCommentExample">
delete from cms_subject_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsSubjectComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_comment (subject_id, member_nick_name, member_icon,
content, create_time, show_status
)
values (#{subjectId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsSubjectComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_comment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
subject_id,
</if>
<if test="memberNickName != null">
member_nick_name,
</if>
<if test="memberIcon != null">
member_icon,
</if>
<if test="content != null">
content,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="showStatus != null">
show_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
#{subjectId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
#{memberNickName,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
#{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsSubjectCommentExample" resultType="java.lang.Integer">
select count(*) from cms_subject_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_subject_comment
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.subjectId != null">
subject_id = #{record.subjectId,jdbcType=BIGINT},
</if>
<if test="record.memberNickName != null">
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
</if>
<if test="record.memberIcon != null">
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_subject_comment
set id = #{record.id,jdbcType=BIGINT},
subject_id = #{record.subjectId,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
show_status = #{record.showStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsSubjectComment">
update cms_subject_comment
<set>
<if test="subjectId != null">
subject_id = #{subjectId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
member_icon = #{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsSubjectComment">
update cms_subject_comment
set subject_id = #{subjectId,jdbcType=BIGINT},
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
member_icon = #{memberIcon,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
show_status = #{showStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsSubjectComment">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="subject_id" jdbcType="BIGINT" property="subjectId" />
<result column="member_nick_name" jdbcType="VARCHAR" property="memberNickName" />
<result column="member_icon" jdbcType="VARCHAR" property="memberIcon" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, subject_id, member_nick_name, member_icon, content, create_time, show_status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsSubjectCommentExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_subject_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_subject_comment
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_subject_comment
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsSubjectCommentExample">
delete from cms_subject_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsSubjectComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_comment (subject_id, member_nick_name, member_icon,
content, create_time, show_status
)
values (#{subjectId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsSubjectComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_comment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
subject_id,
</if>
<if test="memberNickName != null">
member_nick_name,
</if>
<if test="memberIcon != null">
member_icon,
</if>
<if test="content != null">
content,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="showStatus != null">
show_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
#{subjectId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
#{memberNickName,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
#{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsSubjectCommentExample" resultType="java.lang.Integer">
select count(*) from cms_subject_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_subject_comment
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.subjectId != null">
subject_id = #{record.subjectId,jdbcType=BIGINT},
</if>
<if test="record.memberNickName != null">
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
</if>
<if test="record.memberIcon != null">
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_subject_comment
set id = #{record.id,jdbcType=BIGINT},
subject_id = #{record.subjectId,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
show_status = #{record.showStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsSubjectComment">
update cms_subject_comment
<set>
<if test="subjectId != null">
subject_id = #{subjectId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
member_icon = #{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsSubjectComment">
update cms_subject_comment
set subject_id = #{subjectId,jdbcType=BIGINT},
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
member_icon = #{memberIcon,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
show_status = #{showStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -425,4 +425,852 @@
forward_count = #{forwardCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsSubject">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="pic" jdbcType="VARCHAR" property="pic" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="collect_count" jdbcType="INTEGER" property="collectCount" />
<result column="read_count" jdbcType="INTEGER" property="readCount" />
<result column="comment_count" jdbcType="INTEGER" property="commentCount" />
<result column="album_pics" jdbcType="VARCHAR" property="albumPics" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="forward_count" jdbcType="INTEGER" property="forwardCount" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.CmsSubject">
<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="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, category_id, title, pic, product_count, recommend_status, create_time, collect_count,
read_count, comment_count, album_pics, description, show_status, forward_count
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.CmsSubjectExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsSubjectExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_subject
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_subject
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsSubjectExample">
delete from cms_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsSubject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject (category_id, title, pic,
product_count, recommend_status, create_time,
collect_count, read_count, comment_count,
album_pics, description, show_status,
forward_count, content)
values (#{categoryId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR},
#{productCount,jdbcType=INTEGER}, #{recommendStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{collectCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER},
#{albumPics,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{showStatus,jdbcType=INTEGER},
#{forwardCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsSubject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
category_id,
</if>
<if test="title != null">
title,
</if>
<if test="pic != null">
pic,
</if>
<if test="productCount != null">
product_count,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="collectCount != null">
collect_count,
</if>
<if test="readCount != null">
read_count,
</if>
<if test="commentCount != null">
comment_count,
</if>
<if test="albumPics != null">
album_pics,
</if>
<if test="description != null">
description,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="forwardCount != null">
forward_count,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="pic != null">
#{pic,jdbcType=VARCHAR},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="collectCount != null">
#{collectCount,jdbcType=INTEGER},
</if>
<if test="readCount != null">
#{readCount,jdbcType=INTEGER},
</if>
<if test="commentCount != null">
#{commentCount,jdbcType=INTEGER},
</if>
<if test="albumPics != null">
#{albumPics,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="forwardCount != null">
#{forwardCount,jdbcType=INTEGER},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsSubjectExample" resultType="java.lang.Integer">
select count(*) from cms_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_subject
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARCHAR},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.collectCount != null">
collect_count = #{record.collectCount,jdbcType=INTEGER},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=INTEGER},
</if>
<if test="record.commentCount != null">
comment_count = #{record.commentCount,jdbcType=INTEGER},
</if>
<if test="record.albumPics != null">
album_pics = #{record.albumPics,jdbcType=VARCHAR},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.forwardCount != null">
forward_count = #{record.forwardCount,jdbcType=INTEGER},
</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_subject
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
title = #{record.title,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
product_count = #{record.productCount,jdbcType=INTEGER},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
collect_count = #{record.collectCount,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
comment_count = #{record.commentCount,jdbcType=INTEGER},
album_pics = #{record.albumPics,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
show_status = #{record.showStatus,jdbcType=INTEGER},
forward_count = #{record.forwardCount,jdbcType=INTEGER},
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_subject
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
title = #{record.title,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
product_count = #{record.productCount,jdbcType=INTEGER},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
collect_count = #{record.collectCount,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
comment_count = #{record.commentCount,jdbcType=INTEGER},
album_pics = #{record.albumPics,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
show_status = #{record.showStatus,jdbcType=INTEGER},
forward_count = #{record.forwardCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsSubject">
update cms_subject
<set>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARCHAR},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="collectCount != null">
collect_count = #{collectCount,jdbcType=INTEGER},
</if>
<if test="readCount != null">
read_count = #{readCount,jdbcType=INTEGER},
</if>
<if test="commentCount != null">
comment_count = #{commentCount,jdbcType=INTEGER},
</if>
<if test="albumPics != null">
album_pics = #{albumPics,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="forwardCount != null">
forward_count = #{forwardCount,jdbcType=INTEGER},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.CmsSubject">
update cms_subject
set category_id = #{categoryId,jdbcType=BIGINT},
title = #{title,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
product_count = #{productCount,jdbcType=INTEGER},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
collect_count = #{collectCount,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
comment_count = #{commentCount,jdbcType=INTEGER},
album_pics = #{albumPics,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
show_status = #{showStatus,jdbcType=INTEGER},
forward_count = #{forwardCount,jdbcType=INTEGER},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsSubject">
update cms_subject
set category_id = #{categoryId,jdbcType=BIGINT},
title = #{title,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
product_count = #{productCount,jdbcType=INTEGER},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
collect_count = #{collectCount,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
comment_count = #{commentCount,jdbcType=INTEGER},
album_pics = #{albumPics,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
show_status = #{showStatus,jdbcType=INTEGER},
forward_count = #{forwardCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsSubject">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="pic" jdbcType="VARCHAR" property="pic" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="collect_count" jdbcType="INTEGER" property="collectCount" />
<result column="read_count" jdbcType="INTEGER" property="readCount" />
<result column="comment_count" jdbcType="INTEGER" property="commentCount" />
<result column="album_pics" jdbcType="VARCHAR" property="albumPics" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="forward_count" jdbcType="INTEGER" property="forwardCount" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.CmsSubject">
<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="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, category_id, title, pic, product_count, recommend_status, create_time, collect_count,
read_count, comment_count, album_pics, description, show_status, forward_count
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.CmsSubjectExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsSubjectExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_subject
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_subject
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsSubjectExample">
delete from cms_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsSubject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject (category_id, title, pic,
product_count, recommend_status, create_time,
collect_count, read_count, comment_count,
album_pics, description, show_status,
forward_count, content)
values (#{categoryId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR},
#{productCount,jdbcType=INTEGER}, #{recommendStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{collectCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER},
#{albumPics,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{showStatus,jdbcType=INTEGER},
#{forwardCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsSubject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
category_id,
</if>
<if test="title != null">
title,
</if>
<if test="pic != null">
pic,
</if>
<if test="productCount != null">
product_count,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="collectCount != null">
collect_count,
</if>
<if test="readCount != null">
read_count,
</if>
<if test="commentCount != null">
comment_count,
</if>
<if test="albumPics != null">
album_pics,
</if>
<if test="description != null">
description,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="forwardCount != null">
forward_count,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="pic != null">
#{pic,jdbcType=VARCHAR},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="collectCount != null">
#{collectCount,jdbcType=INTEGER},
</if>
<if test="readCount != null">
#{readCount,jdbcType=INTEGER},
</if>
<if test="commentCount != null">
#{commentCount,jdbcType=INTEGER},
</if>
<if test="albumPics != null">
#{albumPics,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="forwardCount != null">
#{forwardCount,jdbcType=INTEGER},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsSubjectExample" resultType="java.lang.Integer">
select count(*) from cms_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_subject
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARCHAR},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.collectCount != null">
collect_count = #{record.collectCount,jdbcType=INTEGER},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=INTEGER},
</if>
<if test="record.commentCount != null">
comment_count = #{record.commentCount,jdbcType=INTEGER},
</if>
<if test="record.albumPics != null">
album_pics = #{record.albumPics,jdbcType=VARCHAR},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.forwardCount != null">
forward_count = #{record.forwardCount,jdbcType=INTEGER},
</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_subject
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
title = #{record.title,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
product_count = #{record.productCount,jdbcType=INTEGER},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
collect_count = #{record.collectCount,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
comment_count = #{record.commentCount,jdbcType=INTEGER},
album_pics = #{record.albumPics,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
show_status = #{record.showStatus,jdbcType=INTEGER},
forward_count = #{record.forwardCount,jdbcType=INTEGER},
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_subject
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
title = #{record.title,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
product_count = #{record.productCount,jdbcType=INTEGER},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
collect_count = #{record.collectCount,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
comment_count = #{record.commentCount,jdbcType=INTEGER},
album_pics = #{record.albumPics,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR},
show_status = #{record.showStatus,jdbcType=INTEGER},
forward_count = #{record.forwardCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsSubject">
update cms_subject
<set>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARCHAR},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="collectCount != null">
collect_count = #{collectCount,jdbcType=INTEGER},
</if>
<if test="readCount != null">
read_count = #{readCount,jdbcType=INTEGER},
</if>
<if test="commentCount != null">
comment_count = #{commentCount,jdbcType=INTEGER},
</if>
<if test="albumPics != null">
album_pics = #{albumPics,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="forwardCount != null">
forward_count = #{forwardCount,jdbcType=INTEGER},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.CmsSubject">
update cms_subject
set category_id = #{categoryId,jdbcType=BIGINT},
title = #{title,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
product_count = #{productCount,jdbcType=INTEGER},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
collect_count = #{collectCount,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
comment_count = #{commentCount,jdbcType=INTEGER},
album_pics = #{albumPics,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
show_status = #{showStatus,jdbcType=INTEGER},
forward_count = #{forwardCount,jdbcType=INTEGER},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsSubject">
update cms_subject
set category_id = #{categoryId,jdbcType=BIGINT},
title = #{title,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
product_count = #{productCount,jdbcType=INTEGER},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
collect_count = #{collectCount,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
comment_count = #{commentCount,jdbcType=INTEGER},
album_pics = #{albumPics,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR},
show_status = #{showStatus,jdbcType=INTEGER},
forward_count = #{forwardCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -176,4 +176,354 @@
product_id = #{productId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsSubjectProductRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="subject_id" jdbcType="BIGINT" property="subjectId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, subject_id, product_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsSubjectProductRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_subject_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_subject_product_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_subject_product_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsSubjectProductRelationExample">
delete from cms_subject_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsSubjectProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_product_relation (subject_id, product_id)
values (#{subjectId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsSubjectProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_product_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
subject_id,
</if>
<if test="productId != null">
product_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
#{subjectId,jdbcType=BIGINT},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsSubjectProductRelationExample" resultType="java.lang.Integer">
select count(*) from cms_subject_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_subject_product_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.subjectId != null">
subject_id = #{record.subjectId,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_subject_product_relation
set id = #{record.id,jdbcType=BIGINT},
subject_id = #{record.subjectId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsSubjectProductRelation">
update cms_subject_product_relation
<set>
<if test="subjectId != null">
subject_id = #{subjectId,jdbcType=BIGINT},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsSubjectProductRelation">
update cms_subject_product_relation
set subject_id = #{subjectId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsSubjectProductRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="subject_id" jdbcType="BIGINT" property="subjectId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, subject_id, product_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsSubjectProductRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_subject_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_subject_product_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_subject_product_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsSubjectProductRelationExample">
delete from cms_subject_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsSubjectProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_product_relation (subject_id, product_id)
values (#{subjectId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsSubjectProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_subject_product_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
subject_id,
</if>
<if test="productId != null">
product_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
#{subjectId,jdbcType=BIGINT},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsSubjectProductRelationExample" resultType="java.lang.Integer">
select count(*) from cms_subject_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_subject_product_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.subjectId != null">
subject_id = #{record.subjectId,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_subject_product_relation
set id = #{record.id,jdbcType=BIGINT},
subject_id = #{record.subjectId,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsSubjectProductRelation">
update cms_subject_product_relation
<set>
<if test="subjectId != null">
subject_id = #{subjectId,jdbcType=BIGINT},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsSubjectProductRelation">
update cms_subject_product_relation
set subject_id = #{subjectId,jdbcType=BIGINT},
product_id = #{productId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -223,4 +223,448 @@
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsTopicCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="subject_count" jdbcType="INTEGER" property="subjectCount" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, icon, subject_count, show_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsTopicCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_topic_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_topic_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_topic_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsTopicCategoryExample">
delete from cms_topic_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsTopicCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic_category (name, icon, subject_count,
show_status, sort)
values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{subjectCount,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsTopicCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="icon != null">
icon,
</if>
<if test="subjectCount != null">
subject_count,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="subjectCount != null">
#{subjectCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsTopicCategoryExample" resultType="java.lang.Integer">
select count(*) from cms_topic_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_topic_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.subjectCount != null">
subject_count = #{record.subjectCount,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_topic_category
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
subject_count = #{record.subjectCount,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsTopicCategory">
update cms_topic_category
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="subjectCount != null">
subject_count = #{subjectCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsTopicCategory">
update cms_topic_category
set name = #{name,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
subject_count = #{subjectCount,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsTopicCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="subject_count" jdbcType="INTEGER" property="subjectCount" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, icon, subject_count, show_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsTopicCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_topic_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_topic_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_topic_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsTopicCategoryExample">
delete from cms_topic_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsTopicCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic_category (name, icon, subject_count,
show_status, sort)
values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{subjectCount,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsTopicCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="icon != null">
icon,
</if>
<if test="subjectCount != null">
subject_count,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="subjectCount != null">
#{subjectCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsTopicCategoryExample" resultType="java.lang.Integer">
select count(*) from cms_topic_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_topic_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.subjectCount != null">
subject_count = #{record.subjectCount,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_topic_category
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
subject_count = #{record.subjectCount,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsTopicCategory">
update cms_topic_category
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="subjectCount != null">
subject_count = #{subjectCount,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsTopicCategory">
update cms_topic_category
set name = #{name,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
subject_count = #{subjectCount,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -240,4 +240,482 @@
show_status = #{showStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsTopicComment">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_nick_name" jdbcType="VARCHAR" property="memberNickName" />
<result column="topic_id" jdbcType="BIGINT" property="topicId" />
<result column="member_icon" jdbcType="VARCHAR" property="memberIcon" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_nick_name, topic_id, member_icon, content, create_time, show_status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsTopicCommentExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_topic_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_topic_comment
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_topic_comment
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsTopicCommentExample">
delete from cms_topic_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsTopicComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic_comment (member_nick_name, topic_id, member_icon,
content, create_time, show_status
)
values (#{memberNickName,jdbcType=VARCHAR}, #{topicId,jdbcType=BIGINT}, #{memberIcon,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsTopicComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic_comment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberNickName != null">
member_nick_name,
</if>
<if test="topicId != null">
topic_id,
</if>
<if test="memberIcon != null">
member_icon,
</if>
<if test="content != null">
content,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="showStatus != null">
show_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberNickName != null">
#{memberNickName,jdbcType=VARCHAR},
</if>
<if test="topicId != null">
#{topicId,jdbcType=BIGINT},
</if>
<if test="memberIcon != null">
#{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsTopicCommentExample" resultType="java.lang.Integer">
select count(*) from cms_topic_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_topic_comment
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberNickName != null">
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
</if>
<if test="record.topicId != null">
topic_id = #{record.topicId,jdbcType=BIGINT},
</if>
<if test="record.memberIcon != null">
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_topic_comment
set id = #{record.id,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
topic_id = #{record.topicId,jdbcType=BIGINT},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
show_status = #{record.showStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsTopicComment">
update cms_topic_comment
<set>
<if test="memberNickName != null">
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
</if>
<if test="topicId != null">
topic_id = #{topicId,jdbcType=BIGINT},
</if>
<if test="memberIcon != null">
member_icon = #{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsTopicComment">
update cms_topic_comment
set member_nick_name = #{memberNickName,jdbcType=VARCHAR},
topic_id = #{topicId,jdbcType=BIGINT},
member_icon = #{memberIcon,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
show_status = #{showStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsTopicComment">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_nick_name" jdbcType="VARCHAR" property="memberNickName" />
<result column="topic_id" jdbcType="BIGINT" property="topicId" />
<result column="member_icon" jdbcType="VARCHAR" property="memberIcon" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_nick_name, topic_id, member_icon, content, create_time, show_status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsTopicCommentExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_topic_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_topic_comment
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_topic_comment
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsTopicCommentExample">
delete from cms_topic_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsTopicComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic_comment (member_nick_name, topic_id, member_icon,
content, create_time, show_status
)
values (#{memberNickName,jdbcType=VARCHAR}, #{topicId,jdbcType=BIGINT}, #{memberIcon,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsTopicComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic_comment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberNickName != null">
member_nick_name,
</if>
<if test="topicId != null">
topic_id,
</if>
<if test="memberIcon != null">
member_icon,
</if>
<if test="content != null">
content,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="showStatus != null">
show_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberNickName != null">
#{memberNickName,jdbcType=VARCHAR},
</if>
<if test="topicId != null">
#{topicId,jdbcType=BIGINT},
</if>
<if test="memberIcon != null">
#{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsTopicCommentExample" resultType="java.lang.Integer">
select count(*) from cms_topic_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_topic_comment
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberNickName != null">
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
</if>
<if test="record.topicId != null">
topic_id = #{record.topicId,jdbcType=BIGINT},
</if>
<if test="record.memberIcon != null">
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update cms_topic_comment
set id = #{record.id,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
topic_id = #{record.topicId,jdbcType=BIGINT},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
show_status = #{record.showStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsTopicComment">
update cms_topic_comment
<set>
<if test="memberNickName != null">
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
</if>
<if test="topicId != null">
topic_id = #{topicId,jdbcType=BIGINT},
</if>
<if test="memberIcon != null">
member_icon = #{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsTopicComment">
update cms_topic_comment
set member_nick_name = #{memberNickName,jdbcType=VARCHAR},
topic_id = #{topicId,jdbcType=BIGINT},
member_icon = #{memberIcon,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
show_status = #{showStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -372,4 +372,746 @@
attend_type = #{attendType,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsTopic">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="attend_count" jdbcType="INTEGER" property="attendCount" />
<result column="attention_count" jdbcType="INTEGER" property="attentionCount" />
<result column="read_count" jdbcType="INTEGER" property="readCount" />
<result column="award_name" jdbcType="VARCHAR" property="awardName" />
<result column="attend_type" jdbcType="VARCHAR" property="attendType" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.CmsTopic">
<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="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, category_id, name, create_time, start_time, end_time, attend_count, attention_count,
read_count, award_name, attend_type
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.CmsTopicExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_topic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsTopicExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_topic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_topic
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_topic
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsTopicExample">
delete from cms_topic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsTopic">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic (category_id, name, create_time,
start_time, end_time, attend_count,
attention_count, read_count, award_name,
attend_type, content)
values (#{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{attendCount,jdbcType=INTEGER},
#{attentionCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{awardName,jdbcType=VARCHAR},
#{attendType,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsTopic">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
category_id,
</if>
<if test="name != null">
name,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="attendCount != null">
attend_count,
</if>
<if test="attentionCount != null">
attention_count,
</if>
<if test="readCount != null">
read_count,
</if>
<if test="awardName != null">
award_name,
</if>
<if test="attendType != null">
attend_type,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="attendCount != null">
#{attendCount,jdbcType=INTEGER},
</if>
<if test="attentionCount != null">
#{attentionCount,jdbcType=INTEGER},
</if>
<if test="readCount != null">
#{readCount,jdbcType=INTEGER},
</if>
<if test="awardName != null">
#{awardName,jdbcType=VARCHAR},
</if>
<if test="attendType != null">
#{attendType,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsTopicExample" resultType="java.lang.Integer">
select count(*) from cms_topic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_topic
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if test="record.attendCount != null">
attend_count = #{record.attendCount,jdbcType=INTEGER},
</if>
<if test="record.attentionCount != null">
attention_count = #{record.attentionCount,jdbcType=INTEGER},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=INTEGER},
</if>
<if test="record.awardName != null">
award_name = #{record.awardName,jdbcType=VARCHAR},
</if>
<if test="record.attendType != null">
attend_type = #{record.attendType,jdbcType=VARCHAR},
</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_topic
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
attend_count = #{record.attendCount,jdbcType=INTEGER},
attention_count = #{record.attentionCount,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
award_name = #{record.awardName,jdbcType=VARCHAR},
attend_type = #{record.attendType,jdbcType=VARCHAR},
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_topic
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
attend_count = #{record.attendCount,jdbcType=INTEGER},
attention_count = #{record.attentionCount,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
award_name = #{record.awardName,jdbcType=VARCHAR},
attend_type = #{record.attendType,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsTopic">
update cms_topic
<set>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="attendCount != null">
attend_count = #{attendCount,jdbcType=INTEGER},
</if>
<if test="attentionCount != null">
attention_count = #{attentionCount,jdbcType=INTEGER},
</if>
<if test="readCount != null">
read_count = #{readCount,jdbcType=INTEGER},
</if>
<if test="awardName != null">
award_name = #{awardName,jdbcType=VARCHAR},
</if>
<if test="attendType != null">
attend_type = #{attendType,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.CmsTopic">
update cms_topic
set category_id = #{categoryId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
attend_count = #{attendCount,jdbcType=INTEGER},
attention_count = #{attentionCount,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
award_name = #{awardName,jdbcType=VARCHAR},
attend_type = #{attendType,jdbcType=VARCHAR},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsTopic">
update cms_topic
set category_id = #{categoryId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
attend_count = #{attendCount,jdbcType=INTEGER},
attention_count = #{attentionCount,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
award_name = #{awardName,jdbcType=VARCHAR},
attend_type = #{attendType,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.CmsTopic">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="attend_count" jdbcType="INTEGER" property="attendCount" />
<result column="attention_count" jdbcType="INTEGER" property="attentionCount" />
<result column="read_count" jdbcType="INTEGER" property="readCount" />
<result column="award_name" jdbcType="VARCHAR" property="awardName" />
<result column="attend_type" jdbcType="VARCHAR" property="attendType" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.CmsTopic">
<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="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, category_id, name, create_time, start_time, end_time, attend_count, attention_count,
read_count, award_name, attend_type
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.CmsTopicExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_topic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.CmsTopicExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from cms_topic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from cms_topic
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_topic
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.CmsTopicExample">
delete from cms_topic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.CmsTopic">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic (category_id, name, create_time,
start_time, end_time, attend_count,
attention_count, read_count, award_name,
attend_type, content)
values (#{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{attendCount,jdbcType=INTEGER},
#{attentionCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{awardName,jdbcType=VARCHAR},
#{attendType,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.CmsTopic">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into cms_topic
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
category_id,
</if>
<if test="name != null">
name,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="attendCount != null">
attend_count,
</if>
<if test="attentionCount != null">
attention_count,
</if>
<if test="readCount != null">
read_count,
</if>
<if test="awardName != null">
award_name,
</if>
<if test="attendType != null">
attend_type,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryId != null">
#{categoryId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="attendCount != null">
#{attendCount,jdbcType=INTEGER},
</if>
<if test="attentionCount != null">
#{attentionCount,jdbcType=INTEGER},
</if>
<if test="readCount != null">
#{readCount,jdbcType=INTEGER},
</if>
<if test="awardName != null">
#{awardName,jdbcType=VARCHAR},
</if>
<if test="attendType != null">
#{attendType,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.CmsTopicExample" resultType="java.lang.Integer">
select count(*) from cms_topic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update cms_topic
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if test="record.attendCount != null">
attend_count = #{record.attendCount,jdbcType=INTEGER},
</if>
<if test="record.attentionCount != null">
attention_count = #{record.attentionCount,jdbcType=INTEGER},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=INTEGER},
</if>
<if test="record.awardName != null">
award_name = #{record.awardName,jdbcType=VARCHAR},
</if>
<if test="record.attendType != null">
attend_type = #{record.attendType,jdbcType=VARCHAR},
</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_topic
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
attend_count = #{record.attendCount,jdbcType=INTEGER},
attention_count = #{record.attentionCount,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
award_name = #{record.awardName,jdbcType=VARCHAR},
attend_type = #{record.attendType,jdbcType=VARCHAR},
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_topic
set id = #{record.id,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
attend_count = #{record.attendCount,jdbcType=INTEGER},
attention_count = #{record.attentionCount,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
award_name = #{record.awardName,jdbcType=VARCHAR},
attend_type = #{record.attendType,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.CmsTopic">
update cms_topic
<set>
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="attendCount != null">
attend_count = #{attendCount,jdbcType=INTEGER},
</if>
<if test="attentionCount != null">
attention_count = #{attentionCount,jdbcType=INTEGER},
</if>
<if test="readCount != null">
read_count = #{readCount,jdbcType=INTEGER},
</if>
<if test="awardName != null">
award_name = #{awardName,jdbcType=VARCHAR},
</if>
<if test="attendType != null">
attend_type = #{attendType,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.CmsTopic">
update cms_topic
set category_id = #{categoryId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
attend_count = #{attendCount,jdbcType=INTEGER},
attention_count = #{attentionCount,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
award_name = #{awardName,jdbcType=VARCHAR},
attend_type = #{attendType,jdbcType=VARCHAR},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.CmsTopic">
update cms_topic
set category_id = #{categoryId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
attend_count = #{attendCount,jdbcType=INTEGER},
attention_count = #{attentionCount,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
award_name = #{awardName,jdbcType=VARCHAR},
attend_type = #{attendType,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -270,4 +270,542 @@
region = #{region,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsCompanyAddress">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="address_name" jdbcType="VARCHAR" property="addressName" />
<result column="send_status" jdbcType="INTEGER" property="sendStatus" />
<result column="receive_status" jdbcType="INTEGER" property="receiveStatus" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="province" jdbcType="VARCHAR" property="province" />
<result column="city" jdbcType="VARCHAR" property="city" />
<result column="region" jdbcType="VARCHAR" property="region" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, address_name, send_status, receive_status, name, phone, province, city, region
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsCompanyAddressExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_company_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_company_address
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_company_address
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsCompanyAddressExample">
delete from oms_company_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsCompanyAddress">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_company_address (address_name, send_status, receive_status,
name, phone, province,
city, region)
values (#{addressName,jdbcType=VARCHAR}, #{sendStatus,jdbcType=INTEGER}, #{receiveStatus,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR}, #{region,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsCompanyAddress">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_company_address
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="addressName != null">
address_name,
</if>
<if test="sendStatus != null">
send_status,
</if>
<if test="receiveStatus != null">
receive_status,
</if>
<if test="name != null">
name,
</if>
<if test="phone != null">
phone,
</if>
<if test="province != null">
province,
</if>
<if test="city != null">
city,
</if>
<if test="region != null">
region,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="addressName != null">
#{addressName,jdbcType=VARCHAR},
</if>
<if test="sendStatus != null">
#{sendStatus,jdbcType=INTEGER},
</if>
<if test="receiveStatus != null">
#{receiveStatus,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="province != null">
#{province,jdbcType=VARCHAR},
</if>
<if test="city != null">
#{city,jdbcType=VARCHAR},
</if>
<if test="region != null">
#{region,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsCompanyAddressExample" resultType="java.lang.Integer">
select count(*) from oms_company_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_company_address
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.addressName != null">
address_name = #{record.addressName,jdbcType=VARCHAR},
</if>
<if test="record.sendStatus != null">
send_status = #{record.sendStatus,jdbcType=INTEGER},
</if>
<if test="record.receiveStatus != null">
receive_status = #{record.receiveStatus,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.phone != null">
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.province != null">
province = #{record.province,jdbcType=VARCHAR},
</if>
<if test="record.city != null">
city = #{record.city,jdbcType=VARCHAR},
</if>
<if test="record.region != null">
region = #{record.region,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_company_address
set id = #{record.id,jdbcType=BIGINT},
address_name = #{record.addressName,jdbcType=VARCHAR},
send_status = #{record.sendStatus,jdbcType=INTEGER},
receive_status = #{record.receiveStatus,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
province = #{record.province,jdbcType=VARCHAR},
city = #{record.city,jdbcType=VARCHAR},
region = #{record.region,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsCompanyAddress">
update oms_company_address
<set>
<if test="addressName != null">
address_name = #{addressName,jdbcType=VARCHAR},
</if>
<if test="sendStatus != null">
send_status = #{sendStatus,jdbcType=INTEGER},
</if>
<if test="receiveStatus != null">
receive_status = #{receiveStatus,jdbcType=INTEGER},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="province != null">
province = #{province,jdbcType=VARCHAR},
</if>
<if test="city != null">
city = #{city,jdbcType=VARCHAR},
</if>
<if test="region != null">
region = #{region,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsCompanyAddress">
update oms_company_address
set address_name = #{addressName,jdbcType=VARCHAR},
send_status = #{sendStatus,jdbcType=INTEGER},
receive_status = #{receiveStatus,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
province = #{province,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
region = #{region,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsCompanyAddress">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="address_name" jdbcType="VARCHAR" property="addressName" />
<result column="send_status" jdbcType="INTEGER" property="sendStatus" />
<result column="receive_status" jdbcType="INTEGER" property="receiveStatus" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="province" jdbcType="VARCHAR" property="province" />
<result column="city" jdbcType="VARCHAR" property="city" />
<result column="region" jdbcType="VARCHAR" property="region" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, address_name, send_status, receive_status, name, phone, province, city, region
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsCompanyAddressExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_company_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_company_address
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_company_address
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsCompanyAddressExample">
delete from oms_company_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsCompanyAddress">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_company_address (address_name, send_status, receive_status,
name, phone, province,
city, region)
values (#{addressName,jdbcType=VARCHAR}, #{sendStatus,jdbcType=INTEGER}, #{receiveStatus,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR}, #{region,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsCompanyAddress">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_company_address
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="addressName != null">
address_name,
</if>
<if test="sendStatus != null">
send_status,
</if>
<if test="receiveStatus != null">
receive_status,
</if>
<if test="name != null">
name,
</if>
<if test="phone != null">
phone,
</if>
<if test="province != null">
province,
</if>
<if test="city != null">
city,
</if>
<if test="region != null">
region,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="addressName != null">
#{addressName,jdbcType=VARCHAR},
</if>
<if test="sendStatus != null">
#{sendStatus,jdbcType=INTEGER},
</if>
<if test="receiveStatus != null">
#{receiveStatus,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="province != null">
#{province,jdbcType=VARCHAR},
</if>
<if test="city != null">
#{city,jdbcType=VARCHAR},
</if>
<if test="region != null">
#{region,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsCompanyAddressExample" resultType="java.lang.Integer">
select count(*) from oms_company_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_company_address
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.addressName != null">
address_name = #{record.addressName,jdbcType=VARCHAR},
</if>
<if test="record.sendStatus != null">
send_status = #{record.sendStatus,jdbcType=INTEGER},
</if>
<if test="record.receiveStatus != null">
receive_status = #{record.receiveStatus,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.phone != null">
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.province != null">
province = #{record.province,jdbcType=VARCHAR},
</if>
<if test="record.city != null">
city = #{record.city,jdbcType=VARCHAR},
</if>
<if test="record.region != null">
region = #{record.region,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_company_address
set id = #{record.id,jdbcType=BIGINT},
address_name = #{record.addressName,jdbcType=VARCHAR},
send_status = #{record.sendStatus,jdbcType=INTEGER},
receive_status = #{record.receiveStatus,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
province = #{record.province,jdbcType=VARCHAR},
city = #{record.city,jdbcType=VARCHAR},
region = #{record.region,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsCompanyAddress">
update oms_company_address
<set>
<if test="addressName != null">
address_name = #{addressName,jdbcType=VARCHAR},
</if>
<if test="sendStatus != null">
send_status = #{sendStatus,jdbcType=INTEGER},
</if>
<if test="receiveStatus != null">
receive_status = #{receiveStatus,jdbcType=INTEGER},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="province != null">
province = #{province,jdbcType=VARCHAR},
</if>
<if test="city != null">
city = #{city,jdbcType=VARCHAR},
</if>
<if test="region != null">
region = #{region,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsCompanyAddress">
update oms_company_address
set address_name = #{addressName,jdbcType=VARCHAR},
send_status = #{sendStatus,jdbcType=INTEGER},
receive_status = #{receiveStatus,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
province = #{province,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
region = #{region,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -350,4 +350,702 @@
sp3 = #{sp3,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsOrderItem">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="order_id" jdbcType="BIGINT" property="orderId" />
<result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="proudct_pic" jdbcType="VARCHAR" property="proudctPic" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="product_brand" jdbcType="VARCHAR" property="productBrand" />
<result column="product_sn" jdbcType="VARCHAR" property="productSn" />
<result column="product_amount" jdbcType="DECIMAL" property="productAmount" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
<result column="product_real_amount" jdbcType="DECIMAL" property="productRealAmount" />
<result column="sp1" jdbcType="VARCHAR" property="sp1" />
<result column="sp2" jdbcType="VARCHAR" property="sp2" />
<result column="sp3" jdbcType="VARCHAR" property="sp3" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, order_id, order_sn, product_id, proudct_pic, product_name, product_brand, product_sn,
product_amount, product_count, product_real_amount, sp1, sp2, sp3
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsOrderItemExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_order_item
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_order_item
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_order_item
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsOrderItemExample">
delete from oms_order_item
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsOrderItem">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_item (order_id, order_sn, product_id,
proudct_pic, product_name, product_brand,
product_sn, product_amount, product_count,
product_real_amount, sp1, sp2,
sp3)
values (#{orderId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, #{productId,jdbcType=BIGINT},
#{proudctPic,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{productBrand,jdbcType=VARCHAR},
#{productSn,jdbcType=VARCHAR}, #{productAmount,jdbcType=DECIMAL}, #{productCount,jdbcType=INTEGER},
#{productRealAmount,jdbcType=DECIMAL}, #{sp1,jdbcType=VARCHAR}, #{sp2,jdbcType=VARCHAR},
#{sp3,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsOrderItem">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_item
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderId != null">
order_id,
</if>
<if test="orderSn != null">
order_sn,
</if>
<if test="productId != null">
product_id,
</if>
<if test="proudctPic != null">
proudct_pic,
</if>
<if test="productName != null">
product_name,
</if>
<if test="productBrand != null">
product_brand,
</if>
<if test="productSn != null">
product_sn,
</if>
<if test="productAmount != null">
product_amount,
</if>
<if test="productCount != null">
product_count,
</if>
<if test="productRealAmount != null">
product_real_amount,
</if>
<if test="sp1 != null">
sp1,
</if>
<if test="sp2 != null">
sp2,
</if>
<if test="sp3 != null">
sp3,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">
#{orderId,jdbcType=BIGINT},
</if>
<if test="orderSn != null">
#{orderSn,jdbcType=VARCHAR},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="proudctPic != null">
#{proudctPic,jdbcType=VARCHAR},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="productBrand != null">
#{productBrand,jdbcType=VARCHAR},
</if>
<if test="productSn != null">
#{productSn,jdbcType=VARCHAR},
</if>
<if test="productAmount != null">
#{productAmount,jdbcType=DECIMAL},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
</if>
<if test="productRealAmount != null">
#{productRealAmount,jdbcType=DECIMAL},
</if>
<if test="sp1 != null">
#{sp1,jdbcType=VARCHAR},
</if>
<if test="sp2 != null">
#{sp2,jdbcType=VARCHAR},
</if>
<if test="sp3 != null">
#{sp3,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsOrderItemExample" resultType="java.lang.Integer">
select count(*) from oms_order_item
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_order_item
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.orderId != null">
order_id = #{record.orderId,jdbcType=BIGINT},
</if>
<if test="record.orderSn != null">
order_sn = #{record.orderSn,jdbcType=VARCHAR},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.proudctPic != null">
proudct_pic = #{record.proudctPic,jdbcType=VARCHAR},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.productBrand != null">
product_brand = #{record.productBrand,jdbcType=VARCHAR},
</if>
<if test="record.productSn != null">
product_sn = #{record.productSn,jdbcType=VARCHAR},
</if>
<if test="record.productAmount != null">
product_amount = #{record.productAmount,jdbcType=DECIMAL},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
</if>
<if test="record.productRealAmount != null">
product_real_amount = #{record.productRealAmount,jdbcType=DECIMAL},
</if>
<if test="record.sp1 != null">
sp1 = #{record.sp1,jdbcType=VARCHAR},
</if>
<if test="record.sp2 != null">
sp2 = #{record.sp2,jdbcType=VARCHAR},
</if>
<if test="record.sp3 != null">
sp3 = #{record.sp3,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_order_item
set id = #{record.id,jdbcType=BIGINT},
order_id = #{record.orderId,jdbcType=BIGINT},
order_sn = #{record.orderSn,jdbcType=VARCHAR},
product_id = #{record.productId,jdbcType=BIGINT},
proudct_pic = #{record.proudctPic,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
product_brand = #{record.productBrand,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
product_amount = #{record.productAmount,jdbcType=DECIMAL},
product_count = #{record.productCount,jdbcType=INTEGER},
product_real_amount = #{record.productRealAmount,jdbcType=DECIMAL},
sp1 = #{record.sp1,jdbcType=VARCHAR},
sp2 = #{record.sp2,jdbcType=VARCHAR},
sp3 = #{record.sp3,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsOrderItem">
update oms_order_item
<set>
<if test="orderId != null">
order_id = #{orderId,jdbcType=BIGINT},
</if>
<if test="orderSn != null">
order_sn = #{orderSn,jdbcType=VARCHAR},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="proudctPic != null">
proudct_pic = #{proudctPic,jdbcType=VARCHAR},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="productBrand != null">
product_brand = #{productBrand,jdbcType=VARCHAR},
</if>
<if test="productSn != null">
product_sn = #{productSn,jdbcType=VARCHAR},
</if>
<if test="productAmount != null">
product_amount = #{productAmount,jdbcType=DECIMAL},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
</if>
<if test="productRealAmount != null">
product_real_amount = #{productRealAmount,jdbcType=DECIMAL},
</if>
<if test="sp1 != null">
sp1 = #{sp1,jdbcType=VARCHAR},
</if>
<if test="sp2 != null">
sp2 = #{sp2,jdbcType=VARCHAR},
</if>
<if test="sp3 != null">
sp3 = #{sp3,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsOrderItem">
update oms_order_item
set order_id = #{orderId,jdbcType=BIGINT},
order_sn = #{orderSn,jdbcType=VARCHAR},
product_id = #{productId,jdbcType=BIGINT},
proudct_pic = #{proudctPic,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
product_brand = #{productBrand,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
product_amount = #{productAmount,jdbcType=DECIMAL},
product_count = #{productCount,jdbcType=INTEGER},
product_real_amount = #{productRealAmount,jdbcType=DECIMAL},
sp1 = #{sp1,jdbcType=VARCHAR},
sp2 = #{sp2,jdbcType=VARCHAR},
sp3 = #{sp3,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsOrderItem">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="order_id" jdbcType="BIGINT" property="orderId" />
<result column="order_sn" jdbcType="VARCHAR" property="orderSn" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="proudct_pic" jdbcType="VARCHAR" property="proudctPic" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="product_brand" jdbcType="VARCHAR" property="productBrand" />
<result column="product_sn" jdbcType="VARCHAR" property="productSn" />
<result column="product_amount" jdbcType="DECIMAL" property="productAmount" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
<result column="product_real_amount" jdbcType="DECIMAL" property="productRealAmount" />
<result column="sp1" jdbcType="VARCHAR" property="sp1" />
<result column="sp2" jdbcType="VARCHAR" property="sp2" />
<result column="sp3" jdbcType="VARCHAR" property="sp3" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, order_id, order_sn, product_id, proudct_pic, product_name, product_brand, product_sn,
product_amount, product_count, product_real_amount, sp1, sp2, sp3
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsOrderItemExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_order_item
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_order_item
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_order_item
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsOrderItemExample">
delete from oms_order_item
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsOrderItem">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_item (order_id, order_sn, product_id,
proudct_pic, product_name, product_brand,
product_sn, product_amount, product_count,
product_real_amount, sp1, sp2,
sp3)
values (#{orderId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, #{productId,jdbcType=BIGINT},
#{proudctPic,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{productBrand,jdbcType=VARCHAR},
#{productSn,jdbcType=VARCHAR}, #{productAmount,jdbcType=DECIMAL}, #{productCount,jdbcType=INTEGER},
#{productRealAmount,jdbcType=DECIMAL}, #{sp1,jdbcType=VARCHAR}, #{sp2,jdbcType=VARCHAR},
#{sp3,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsOrderItem">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_item
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderId != null">
order_id,
</if>
<if test="orderSn != null">
order_sn,
</if>
<if test="productId != null">
product_id,
</if>
<if test="proudctPic != null">
proudct_pic,
</if>
<if test="productName != null">
product_name,
</if>
<if test="productBrand != null">
product_brand,
</if>
<if test="productSn != null">
product_sn,
</if>
<if test="productAmount != null">
product_amount,
</if>
<if test="productCount != null">
product_count,
</if>
<if test="productRealAmount != null">
product_real_amount,
</if>
<if test="sp1 != null">
sp1,
</if>
<if test="sp2 != null">
sp2,
</if>
<if test="sp3 != null">
sp3,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">
#{orderId,jdbcType=BIGINT},
</if>
<if test="orderSn != null">
#{orderSn,jdbcType=VARCHAR},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="proudctPic != null">
#{proudctPic,jdbcType=VARCHAR},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="productBrand != null">
#{productBrand,jdbcType=VARCHAR},
</if>
<if test="productSn != null">
#{productSn,jdbcType=VARCHAR},
</if>
<if test="productAmount != null">
#{productAmount,jdbcType=DECIMAL},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
</if>
<if test="productRealAmount != null">
#{productRealAmount,jdbcType=DECIMAL},
</if>
<if test="sp1 != null">
#{sp1,jdbcType=VARCHAR},
</if>
<if test="sp2 != null">
#{sp2,jdbcType=VARCHAR},
</if>
<if test="sp3 != null">
#{sp3,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsOrderItemExample" resultType="java.lang.Integer">
select count(*) from oms_order_item
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_order_item
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.orderId != null">
order_id = #{record.orderId,jdbcType=BIGINT},
</if>
<if test="record.orderSn != null">
order_sn = #{record.orderSn,jdbcType=VARCHAR},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.proudctPic != null">
proudct_pic = #{record.proudctPic,jdbcType=VARCHAR},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.productBrand != null">
product_brand = #{record.productBrand,jdbcType=VARCHAR},
</if>
<if test="record.productSn != null">
product_sn = #{record.productSn,jdbcType=VARCHAR},
</if>
<if test="record.productAmount != null">
product_amount = #{record.productAmount,jdbcType=DECIMAL},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
</if>
<if test="record.productRealAmount != null">
product_real_amount = #{record.productRealAmount,jdbcType=DECIMAL},
</if>
<if test="record.sp1 != null">
sp1 = #{record.sp1,jdbcType=VARCHAR},
</if>
<if test="record.sp2 != null">
sp2 = #{record.sp2,jdbcType=VARCHAR},
</if>
<if test="record.sp3 != null">
sp3 = #{record.sp3,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_order_item
set id = #{record.id,jdbcType=BIGINT},
order_id = #{record.orderId,jdbcType=BIGINT},
order_sn = #{record.orderSn,jdbcType=VARCHAR},
product_id = #{record.productId,jdbcType=BIGINT},
proudct_pic = #{record.proudctPic,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
product_brand = #{record.productBrand,jdbcType=VARCHAR},
product_sn = #{record.productSn,jdbcType=VARCHAR},
product_amount = #{record.productAmount,jdbcType=DECIMAL},
product_count = #{record.productCount,jdbcType=INTEGER},
product_real_amount = #{record.productRealAmount,jdbcType=DECIMAL},
sp1 = #{record.sp1,jdbcType=VARCHAR},
sp2 = #{record.sp2,jdbcType=VARCHAR},
sp3 = #{record.sp3,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsOrderItem">
update oms_order_item
<set>
<if test="orderId != null">
order_id = #{orderId,jdbcType=BIGINT},
</if>
<if test="orderSn != null">
order_sn = #{orderSn,jdbcType=VARCHAR},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="proudctPic != null">
proudct_pic = #{proudctPic,jdbcType=VARCHAR},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="productBrand != null">
product_brand = #{productBrand,jdbcType=VARCHAR},
</if>
<if test="productSn != null">
product_sn = #{productSn,jdbcType=VARCHAR},
</if>
<if test="productAmount != null">
product_amount = #{productAmount,jdbcType=DECIMAL},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
</if>
<if test="productRealAmount != null">
product_real_amount = #{productRealAmount,jdbcType=DECIMAL},
</if>
<if test="sp1 != null">
sp1 = #{sp1,jdbcType=VARCHAR},
</if>
<if test="sp2 != null">
sp2 = #{sp2,jdbcType=VARCHAR},
</if>
<if test="sp3 != null">
sp3 = #{sp3,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsOrderItem">
update oms_order_item
set order_id = #{orderId,jdbcType=BIGINT},
order_sn = #{orderSn,jdbcType=VARCHAR},
product_id = #{productId,jdbcType=BIGINT},
proudct_pic = #{proudctPic,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
product_brand = #{productBrand,jdbcType=VARCHAR},
product_sn = #{productSn,jdbcType=VARCHAR},
product_amount = #{productAmount,jdbcType=DECIMAL},
product_count = #{productCount,jdbcType=INTEGER},
product_real_amount = #{productRealAmount,jdbcType=DECIMAL},
sp1 = #{sp1,jdbcType=VARCHAR},
sp2 = #{sp2,jdbcType=VARCHAR},
sp3 = #{sp3,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -223,4 +223,448 @@
note = #{note,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsOrderOperateHistory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="order_id" jdbcType="BIGINT" property="orderId" />
<result column="operate_man" jdbcType="VARCHAR" property="operateMan" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="order_status" jdbcType="INTEGER" property="orderStatus" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, order_id, operate_man, create_time, order_status, note
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsOrderOperateHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_order_operate_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_order_operate_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_order_operate_history
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsOrderOperateHistoryExample">
delete from oms_order_operate_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsOrderOperateHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_operate_history (order_id, operate_man, create_time,
order_status, note)
values (#{orderId,jdbcType=BIGINT}, #{operateMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{orderStatus,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsOrderOperateHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_operate_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderId != null">
order_id,
</if>
<if test="operateMan != null">
operate_man,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="orderStatus != null">
order_status,
</if>
<if test="note != null">
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">
#{orderId,jdbcType=BIGINT},
</if>
<if test="operateMan != null">
#{operateMan,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="orderStatus != null">
#{orderStatus,jdbcType=INTEGER},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsOrderOperateHistoryExample" resultType="java.lang.Integer">
select count(*) from oms_order_operate_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_order_operate_history
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.orderId != null">
order_id = #{record.orderId,jdbcType=BIGINT},
</if>
<if test="record.operateMan != null">
operate_man = #{record.operateMan,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.orderStatus != null">
order_status = #{record.orderStatus,jdbcType=INTEGER},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_order_operate_history
set id = #{record.id,jdbcType=BIGINT},
order_id = #{record.orderId,jdbcType=BIGINT},
operate_man = #{record.operateMan,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
order_status = #{record.orderStatus,jdbcType=INTEGER},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsOrderOperateHistory">
update oms_order_operate_history
<set>
<if test="orderId != null">
order_id = #{orderId,jdbcType=BIGINT},
</if>
<if test="operateMan != null">
operate_man = #{operateMan,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="orderStatus != null">
order_status = #{orderStatus,jdbcType=INTEGER},
</if>
<if test="note != null">
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsOrderOperateHistory">
update oms_order_operate_history
set order_id = #{orderId,jdbcType=BIGINT},
operate_man = #{operateMan,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
order_status = #{orderStatus,jdbcType=INTEGER},
note = #{note,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsOrderOperateHistory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="order_id" jdbcType="BIGINT" property="orderId" />
<result column="operate_man" jdbcType="VARCHAR" property="operateMan" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="order_status" jdbcType="INTEGER" property="orderStatus" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, order_id, operate_man, create_time, order_status, note
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsOrderOperateHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_order_operate_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_order_operate_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_order_operate_history
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsOrderOperateHistoryExample">
delete from oms_order_operate_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsOrderOperateHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_operate_history (order_id, operate_man, create_time,
order_status, note)
values (#{orderId,jdbcType=BIGINT}, #{operateMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{orderStatus,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsOrderOperateHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_operate_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderId != null">
order_id,
</if>
<if test="operateMan != null">
operate_man,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="orderStatus != null">
order_status,
</if>
<if test="note != null">
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">
#{orderId,jdbcType=BIGINT},
</if>
<if test="operateMan != null">
#{operateMan,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="orderStatus != null">
#{orderStatus,jdbcType=INTEGER},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsOrderOperateHistoryExample" resultType="java.lang.Integer">
select count(*) from oms_order_operate_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_order_operate_history
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.orderId != null">
order_id = #{record.orderId,jdbcType=BIGINT},
</if>
<if test="record.operateMan != null">
operate_man = #{record.operateMan,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.orderStatus != null">
order_status = #{record.orderStatus,jdbcType=INTEGER},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_order_operate_history
set id = #{record.id,jdbcType=BIGINT},
order_id = #{record.orderId,jdbcType=BIGINT},
operate_man = #{record.operateMan,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
order_status = #{record.orderStatus,jdbcType=INTEGER},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsOrderOperateHistory">
update oms_order_operate_history
<set>
<if test="orderId != null">
order_id = #{orderId,jdbcType=BIGINT},
</if>
<if test="operateMan != null">
operate_man = #{operateMan,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="orderStatus != null">
order_status = #{orderStatus,jdbcType=INTEGER},
</if>
<if test="note != null">
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsOrderOperateHistory">
update oms_order_operate_history
set order_id = #{orderId,jdbcType=BIGINT},
operate_man = #{operateMan,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
order_status = #{orderStatus,jdbcType=INTEGER},
note = #{note,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -193,4 +193,388 @@
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsOrderReturnReason">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="status" jdbcType="INTEGER" property="status" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, sort, status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsOrderReturnReasonExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_order_return_reason
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_order_return_reason
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_order_return_reason
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsOrderReturnReasonExample">
delete from oms_order_return_reason
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsOrderReturnReason">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_return_reason (name, sort, status
)
values (#{name,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsOrderReturnReason">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_return_reason
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="sort != null">
sort,
</if>
<if test="status != null">
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsOrderReturnReasonExample" resultType="java.lang.Integer">
select count(*) from oms_order_return_reason
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_order_return_reason
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_order_return_reason
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
status = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsOrderReturnReason">
update oms_order_return_reason
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsOrderReturnReason">
update oms_order_return_reason
set name = #{name,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsOrderReturnReason">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="status" jdbcType="INTEGER" property="status" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, sort, status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsOrderReturnReasonExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_order_return_reason
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_order_return_reason
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_order_return_reason
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsOrderReturnReasonExample">
delete from oms_order_return_reason
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsOrderReturnReason">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_return_reason (name, sort, status
)
values (#{name,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsOrderReturnReason">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_return_reason
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="sort != null">
sort,
</if>
<if test="status != null">
status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsOrderReturnReasonExample" resultType="java.lang.Integer">
select count(*) from oms_order_return_reason
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_order_return_reason
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_order_return_reason
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
status = #{record.status,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsOrderReturnReason">
update oms_order_return_reason
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsOrderReturnReason">
update oms_order_return_reason
set name = #{name,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -226,4 +226,454 @@
comment_overtime = #{commentOvertime,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsOrderSetting">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="flash_order_overtime" jdbcType="INTEGER" property="flashOrderOvertime" />
<result column="normal_order_overtime" jdbcType="INTEGER" property="normalOrderOvertime" />
<result column="confirm_overtime" jdbcType="INTEGER" property="confirmOvertime" />
<result column="finish_overtime" jdbcType="INTEGER" property="finishOvertime" />
<result column="comment_overtime" jdbcType="INTEGER" property="commentOvertime" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, flash_order_overtime, normal_order_overtime, confirm_overtime, finish_overtime,
comment_overtime
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsOrderSettingExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_order_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_order_setting
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_order_setting
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsOrderSettingExample">
delete from oms_order_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsOrderSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_setting (flash_order_overtime, normal_order_overtime,
confirm_overtime, finish_overtime, comment_overtime
)
values (#{flashOrderOvertime,jdbcType=INTEGER}, #{normalOrderOvertime,jdbcType=INTEGER},
#{confirmOvertime,jdbcType=INTEGER}, #{finishOvertime,jdbcType=INTEGER}, #{commentOvertime,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsOrderSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_setting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="flashOrderOvertime != null">
flash_order_overtime,
</if>
<if test="normalOrderOvertime != null">
normal_order_overtime,
</if>
<if test="confirmOvertime != null">
confirm_overtime,
</if>
<if test="finishOvertime != null">
finish_overtime,
</if>
<if test="commentOvertime != null">
comment_overtime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="flashOrderOvertime != null">
#{flashOrderOvertime,jdbcType=INTEGER},
</if>
<if test="normalOrderOvertime != null">
#{normalOrderOvertime,jdbcType=INTEGER},
</if>
<if test="confirmOvertime != null">
#{confirmOvertime,jdbcType=INTEGER},
</if>
<if test="finishOvertime != null">
#{finishOvertime,jdbcType=INTEGER},
</if>
<if test="commentOvertime != null">
#{commentOvertime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsOrderSettingExample" resultType="java.lang.Integer">
select count(*) from oms_order_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_order_setting
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.flashOrderOvertime != null">
flash_order_overtime = #{record.flashOrderOvertime,jdbcType=INTEGER},
</if>
<if test="record.normalOrderOvertime != null">
normal_order_overtime = #{record.normalOrderOvertime,jdbcType=INTEGER},
</if>
<if test="record.confirmOvertime != null">
confirm_overtime = #{record.confirmOvertime,jdbcType=INTEGER},
</if>
<if test="record.finishOvertime != null">
finish_overtime = #{record.finishOvertime,jdbcType=INTEGER},
</if>
<if test="record.commentOvertime != null">
comment_overtime = #{record.commentOvertime,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_order_setting
set id = #{record.id,jdbcType=BIGINT},
flash_order_overtime = #{record.flashOrderOvertime,jdbcType=INTEGER},
normal_order_overtime = #{record.normalOrderOvertime,jdbcType=INTEGER},
confirm_overtime = #{record.confirmOvertime,jdbcType=INTEGER},
finish_overtime = #{record.finishOvertime,jdbcType=INTEGER},
comment_overtime = #{record.commentOvertime,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsOrderSetting">
update oms_order_setting
<set>
<if test="flashOrderOvertime != null">
flash_order_overtime = #{flashOrderOvertime,jdbcType=INTEGER},
</if>
<if test="normalOrderOvertime != null">
normal_order_overtime = #{normalOrderOvertime,jdbcType=INTEGER},
</if>
<if test="confirmOvertime != null">
confirm_overtime = #{confirmOvertime,jdbcType=INTEGER},
</if>
<if test="finishOvertime != null">
finish_overtime = #{finishOvertime,jdbcType=INTEGER},
</if>
<if test="commentOvertime != null">
comment_overtime = #{commentOvertime,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsOrderSetting">
update oms_order_setting
set flash_order_overtime = #{flashOrderOvertime,jdbcType=INTEGER},
normal_order_overtime = #{normalOrderOvertime,jdbcType=INTEGER},
confirm_overtime = #{confirmOvertime,jdbcType=INTEGER},
finish_overtime = #{finishOvertime,jdbcType=INTEGER},
comment_overtime = #{commentOvertime,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.OmsOrderSetting">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="flash_order_overtime" jdbcType="INTEGER" property="flashOrderOvertime" />
<result column="normal_order_overtime" jdbcType="INTEGER" property="normalOrderOvertime" />
<result column="confirm_overtime" jdbcType="INTEGER" property="confirmOvertime" />
<result column="finish_overtime" jdbcType="INTEGER" property="finishOvertime" />
<result column="comment_overtime" jdbcType="INTEGER" property="commentOvertime" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, flash_order_overtime, normal_order_overtime, confirm_overtime, finish_overtime,
comment_overtime
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.OmsOrderSettingExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from oms_order_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from oms_order_setting
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from oms_order_setting
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.OmsOrderSettingExample">
delete from oms_order_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.OmsOrderSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_setting (flash_order_overtime, normal_order_overtime,
confirm_overtime, finish_overtime, comment_overtime
)
values (#{flashOrderOvertime,jdbcType=INTEGER}, #{normalOrderOvertime,jdbcType=INTEGER},
#{confirmOvertime,jdbcType=INTEGER}, #{finishOvertime,jdbcType=INTEGER}, #{commentOvertime,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.OmsOrderSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into oms_order_setting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="flashOrderOvertime != null">
flash_order_overtime,
</if>
<if test="normalOrderOvertime != null">
normal_order_overtime,
</if>
<if test="confirmOvertime != null">
confirm_overtime,
</if>
<if test="finishOvertime != null">
finish_overtime,
</if>
<if test="commentOvertime != null">
comment_overtime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="flashOrderOvertime != null">
#{flashOrderOvertime,jdbcType=INTEGER},
</if>
<if test="normalOrderOvertime != null">
#{normalOrderOvertime,jdbcType=INTEGER},
</if>
<if test="confirmOvertime != null">
#{confirmOvertime,jdbcType=INTEGER},
</if>
<if test="finishOvertime != null">
#{finishOvertime,jdbcType=INTEGER},
</if>
<if test="commentOvertime != null">
#{commentOvertime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.OmsOrderSettingExample" resultType="java.lang.Integer">
select count(*) from oms_order_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update oms_order_setting
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.flashOrderOvertime != null">
flash_order_overtime = #{record.flashOrderOvertime,jdbcType=INTEGER},
</if>
<if test="record.normalOrderOvertime != null">
normal_order_overtime = #{record.normalOrderOvertime,jdbcType=INTEGER},
</if>
<if test="record.confirmOvertime != null">
confirm_overtime = #{record.confirmOvertime,jdbcType=INTEGER},
</if>
<if test="record.finishOvertime != null">
finish_overtime = #{record.finishOvertime,jdbcType=INTEGER},
</if>
<if test="record.commentOvertime != null">
comment_overtime = #{record.commentOvertime,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update oms_order_setting
set id = #{record.id,jdbcType=BIGINT},
flash_order_overtime = #{record.flashOrderOvertime,jdbcType=INTEGER},
normal_order_overtime = #{record.normalOrderOvertime,jdbcType=INTEGER},
confirm_overtime = #{record.confirmOvertime,jdbcType=INTEGER},
finish_overtime = #{record.finishOvertime,jdbcType=INTEGER},
comment_overtime = #{record.commentOvertime,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.OmsOrderSetting">
update oms_order_setting
<set>
<if test="flashOrderOvertime != null">
flash_order_overtime = #{flashOrderOvertime,jdbcType=INTEGER},
</if>
<if test="normalOrderOvertime != null">
normal_order_overtime = #{normalOrderOvertime,jdbcType=INTEGER},
</if>
<if test="confirmOvertime != null">
confirm_overtime = #{confirmOvertime,jdbcType=INTEGER},
</if>
<if test="finishOvertime != null">
finish_overtime = #{finishOvertime,jdbcType=INTEGER},
</if>
<if test="commentOvertime != null">
comment_overtime = #{commentOvertime,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.OmsOrderSetting">
update oms_order_setting
set flash_order_overtime = #{flashOrderOvertime,jdbcType=INTEGER},
normal_order_overtime = #{normalOrderOvertime,jdbcType=INTEGER},
confirm_overtime = #{confirmOvertime,jdbcType=INTEGER},
finish_overtime = #{finishOvertime,jdbcType=INTEGER},
comment_overtime = #{commentOvertime,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -223,4 +223,448 @@
description = #{description,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsAlbum">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="cover_pic" jdbcType="VARCHAR" property="coverPic" />
<result column="pic_count" jdbcType="INTEGER" property="picCount" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="description" jdbcType="VARCHAR" property="description" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, cover_pic, pic_count, sort, description
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsAlbumExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_album
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_album
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_album
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsAlbumExample">
delete from pms_album
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsAlbum">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_album (name, cover_pic, pic_count,
sort, description)
values (#{name,jdbcType=VARCHAR}, #{coverPic,jdbcType=VARCHAR}, #{picCount,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsAlbum">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_album
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="coverPic != null">
cover_pic,
</if>
<if test="picCount != null">
pic_count,
</if>
<if test="sort != null">
sort,
</if>
<if test="description != null">
description,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="coverPic != null">
#{coverPic,jdbcType=VARCHAR},
</if>
<if test="picCount != null">
#{picCount,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsAlbumExample" resultType="java.lang.Integer">
select count(*) from pms_album
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_album
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.coverPic != null">
cover_pic = #{record.coverPic,jdbcType=VARCHAR},
</if>
<if test="record.picCount != null">
pic_count = #{record.picCount,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_album
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
cover_pic = #{record.coverPic,jdbcType=VARCHAR},
pic_count = #{record.picCount,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
description = #{record.description,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsAlbum">
update pms_album
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="coverPic != null">
cover_pic = #{coverPic,jdbcType=VARCHAR},
</if>
<if test="picCount != null">
pic_count = #{picCount,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsAlbum">
update pms_album
set name = #{name,jdbcType=VARCHAR},
cover_pic = #{coverPic,jdbcType=VARCHAR},
pic_count = #{picCount,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
description = #{description,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsAlbum">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="cover_pic" jdbcType="VARCHAR" property="coverPic" />
<result column="pic_count" jdbcType="INTEGER" property="picCount" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="description" jdbcType="VARCHAR" property="description" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, cover_pic, pic_count, sort, description
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsAlbumExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_album
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_album
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_album
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsAlbumExample">
delete from pms_album
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsAlbum">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_album (name, cover_pic, pic_count,
sort, description)
values (#{name,jdbcType=VARCHAR}, #{coverPic,jdbcType=VARCHAR}, #{picCount,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsAlbum">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_album
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="coverPic != null">
cover_pic,
</if>
<if test="picCount != null">
pic_count,
</if>
<if test="sort != null">
sort,
</if>
<if test="description != null">
description,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="coverPic != null">
#{coverPic,jdbcType=VARCHAR},
</if>
<if test="picCount != null">
#{picCount,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsAlbumExample" resultType="java.lang.Integer">
select count(*) from pms_album
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_album
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.coverPic != null">
cover_pic = #{record.coverPic,jdbcType=VARCHAR},
</if>
<if test="record.picCount != null">
pic_count = #{record.picCount,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_album
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
cover_pic = #{record.coverPic,jdbcType=VARCHAR},
pic_count = #{record.picCount,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
description = #{record.description,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsAlbum">
update pms_album
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="coverPic != null">
cover_pic = #{coverPic,jdbcType=VARCHAR},
</if>
<if test="picCount != null">
pic_count = #{picCount,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsAlbum">
update pms_album
set name = #{name,jdbcType=VARCHAR},
cover_pic = #{coverPic,jdbcType=VARCHAR},
pic_count = #{picCount,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
description = #{description,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -176,4 +176,354 @@
pic = #{pic,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsAlbumPic">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="album_id" jdbcType="BIGINT" property="albumId" />
<result column="pic" jdbcType="VARCHAR" property="pic" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, album_id, pic
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsAlbumPicExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_album_pic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_album_pic
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_album_pic
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsAlbumPicExample">
delete from pms_album_pic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsAlbumPic">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_album_pic (album_id, pic)
values (#{albumId,jdbcType=BIGINT}, #{pic,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsAlbumPic">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_album_pic
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="albumId != null">
album_id,
</if>
<if test="pic != null">
pic,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="albumId != null">
#{albumId,jdbcType=BIGINT},
</if>
<if test="pic != null">
#{pic,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsAlbumPicExample" resultType="java.lang.Integer">
select count(*) from pms_album_pic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_album_pic
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.albumId != null">
album_id = #{record.albumId,jdbcType=BIGINT},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_album_pic
set id = #{record.id,jdbcType=BIGINT},
album_id = #{record.albumId,jdbcType=BIGINT},
pic = #{record.pic,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsAlbumPic">
update pms_album_pic
<set>
<if test="albumId != null">
album_id = #{albumId,jdbcType=BIGINT},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsAlbumPic">
update pms_album_pic
set album_id = #{albumId,jdbcType=BIGINT},
pic = #{pic,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsAlbumPic">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="album_id" jdbcType="BIGINT" property="albumId" />
<result column="pic" jdbcType="VARCHAR" property="pic" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, album_id, pic
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsAlbumPicExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_album_pic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_album_pic
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_album_pic
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsAlbumPicExample">
delete from pms_album_pic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsAlbumPic">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_album_pic (album_id, pic)
values (#{albumId,jdbcType=BIGINT}, #{pic,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsAlbumPic">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_album_pic
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="albumId != null">
album_id,
</if>
<if test="pic != null">
pic,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="albumId != null">
#{albumId,jdbcType=BIGINT},
</if>
<if test="pic != null">
#{pic,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsAlbumPicExample" resultType="java.lang.Integer">
select count(*) from pms_album_pic
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_album_pic
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.albumId != null">
album_id = #{record.albumId,jdbcType=BIGINT},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_album_pic
set id = #{record.id,jdbcType=BIGINT},
album_id = #{record.albumId,jdbcType=BIGINT},
pic = #{record.pic,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsAlbumPic">
update pms_album_pic
<set>
<if test="albumId != null">
album_id = #{albumId,jdbcType=BIGINT},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsAlbumPic">
update pms_album_pic
set album_id = #{albumId,jdbcType=BIGINT},
pic = #{pic,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -355,4 +355,712 @@
big_pic = #{bigPic,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsBrand">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="first_letter" jdbcType="VARCHAR" property="firstLetter" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="factory_status" jdbcType="INTEGER" property="factoryStatus" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
<result column="product_comment_count" jdbcType="INTEGER" property="productCommentCount" />
<result column="logo" jdbcType="VARCHAR" property="logo" />
<result column="big_pic" jdbcType="VARCHAR" property="bigPic" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.PmsBrand">
<result column="brand_story" jdbcType="LONGVARCHAR" property="brandStory" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, first_letter, sort, factory_status, show_status, product_count, product_comment_count,
logo, big_pic
</sql>
<sql id="Blob_Column_List">
brand_story
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.PmsBrandExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsBrandExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_brand
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_brand
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsBrandExample">
delete from pms_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsBrand">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_brand (name, first_letter, sort,
factory_status, show_status, product_count,
product_comment_count, logo, big_pic,
brand_story)
values (#{name,jdbcType=VARCHAR}, #{firstLetter,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{factoryStatus,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{productCount,jdbcType=INTEGER},
#{productCommentCount,jdbcType=INTEGER}, #{logo,jdbcType=VARCHAR}, #{bigPic,jdbcType=VARCHAR},
#{brandStory,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsBrand">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_brand
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="firstLetter != null">
first_letter,
</if>
<if test="sort != null">
sort,
</if>
<if test="factoryStatus != null">
factory_status,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="productCount != null">
product_count,
</if>
<if test="productCommentCount != null">
product_comment_count,
</if>
<if test="logo != null">
logo,
</if>
<if test="bigPic != null">
big_pic,
</if>
<if test="brandStory != null">
brand_story,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="firstLetter != null">
#{firstLetter,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="factoryStatus != null">
#{factoryStatus,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
</if>
<if test="productCommentCount != null">
#{productCommentCount,jdbcType=INTEGER},
</if>
<if test="logo != null">
#{logo,jdbcType=VARCHAR},
</if>
<if test="bigPic != null">
#{bigPic,jdbcType=VARCHAR},
</if>
<if test="brandStory != null">
#{brandStory,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsBrandExample" resultType="java.lang.Integer">
select count(*) from pms_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_brand
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.firstLetter != null">
first_letter = #{record.firstLetter,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.factoryStatus != null">
factory_status = #{record.factoryStatus,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
</if>
<if test="record.productCommentCount != null">
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
</if>
<if test="record.logo != null">
logo = #{record.logo,jdbcType=VARCHAR},
</if>
<if test="record.bigPic != null">
big_pic = #{record.bigPic,jdbcType=VARCHAR},
</if>
<if test="record.brandStory != null">
brand_story = #{record.brandStory,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update pms_brand
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
first_letter = #{record.firstLetter,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
factory_status = #{record.factoryStatus,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
product_count = #{record.productCount,jdbcType=INTEGER},
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
logo = #{record.logo,jdbcType=VARCHAR},
big_pic = #{record.bigPic,jdbcType=VARCHAR},
brand_story = #{record.brandStory,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_brand
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
first_letter = #{record.firstLetter,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
factory_status = #{record.factoryStatus,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
product_count = #{record.productCount,jdbcType=INTEGER},
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
logo = #{record.logo,jdbcType=VARCHAR},
big_pic = #{record.bigPic,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsBrand">
update pms_brand
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="firstLetter != null">
first_letter = #{firstLetter,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="factoryStatus != null">
factory_status = #{factoryStatus,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
</if>
<if test="productCommentCount != null">
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
</if>
<if test="logo != null">
logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="bigPic != null">
big_pic = #{bigPic,jdbcType=VARCHAR},
</if>
<if test="brandStory != null">
brand_story = #{brandStory,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.PmsBrand">
update pms_brand
set name = #{name,jdbcType=VARCHAR},
first_letter = #{firstLetter,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
factory_status = #{factoryStatus,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
product_count = #{productCount,jdbcType=INTEGER},
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
logo = #{logo,jdbcType=VARCHAR},
big_pic = #{bigPic,jdbcType=VARCHAR},
brand_story = #{brandStory,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsBrand">
update pms_brand
set name = #{name,jdbcType=VARCHAR},
first_letter = #{firstLetter,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
factory_status = #{factoryStatus,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
product_count = #{productCount,jdbcType=INTEGER},
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
logo = #{logo,jdbcType=VARCHAR},
big_pic = #{bigPic,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsBrand">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="first_letter" jdbcType="VARCHAR" property="firstLetter" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="factory_status" jdbcType="INTEGER" property="factoryStatus" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
<result column="product_comment_count" jdbcType="INTEGER" property="productCommentCount" />
<result column="logo" jdbcType="VARCHAR" property="logo" />
<result column="big_pic" jdbcType="VARCHAR" property="bigPic" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.PmsBrand">
<result column="brand_story" jdbcType="LONGVARCHAR" property="brandStory" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, first_letter, sort, factory_status, show_status, product_count, product_comment_count,
logo, big_pic
</sql>
<sql id="Blob_Column_List">
brand_story
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.PmsBrandExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsBrandExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_brand
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_brand
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsBrandExample">
delete from pms_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsBrand">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_brand (name, first_letter, sort,
factory_status, show_status, product_count,
product_comment_count, logo, big_pic,
brand_story)
values (#{name,jdbcType=VARCHAR}, #{firstLetter,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{factoryStatus,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{productCount,jdbcType=INTEGER},
#{productCommentCount,jdbcType=INTEGER}, #{logo,jdbcType=VARCHAR}, #{bigPic,jdbcType=VARCHAR},
#{brandStory,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsBrand">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_brand
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="firstLetter != null">
first_letter,
</if>
<if test="sort != null">
sort,
</if>
<if test="factoryStatus != null">
factory_status,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="productCount != null">
product_count,
</if>
<if test="productCommentCount != null">
product_comment_count,
</if>
<if test="logo != null">
logo,
</if>
<if test="bigPic != null">
big_pic,
</if>
<if test="brandStory != null">
brand_story,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="firstLetter != null">
#{firstLetter,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="factoryStatus != null">
#{factoryStatus,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
</if>
<if test="productCommentCount != null">
#{productCommentCount,jdbcType=INTEGER},
</if>
<if test="logo != null">
#{logo,jdbcType=VARCHAR},
</if>
<if test="bigPic != null">
#{bigPic,jdbcType=VARCHAR},
</if>
<if test="brandStory != null">
#{brandStory,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsBrandExample" resultType="java.lang.Integer">
select count(*) from pms_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_brand
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.firstLetter != null">
first_letter = #{record.firstLetter,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.factoryStatus != null">
factory_status = #{record.factoryStatus,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
</if>
<if test="record.productCommentCount != null">
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
</if>
<if test="record.logo != null">
logo = #{record.logo,jdbcType=VARCHAR},
</if>
<if test="record.bigPic != null">
big_pic = #{record.bigPic,jdbcType=VARCHAR},
</if>
<if test="record.brandStory != null">
brand_story = #{record.brandStory,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update pms_brand
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
first_letter = #{record.firstLetter,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
factory_status = #{record.factoryStatus,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
product_count = #{record.productCount,jdbcType=INTEGER},
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
logo = #{record.logo,jdbcType=VARCHAR},
big_pic = #{record.bigPic,jdbcType=VARCHAR},
brand_story = #{record.brandStory,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_brand
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
first_letter = #{record.firstLetter,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
factory_status = #{record.factoryStatus,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
product_count = #{record.productCount,jdbcType=INTEGER},
product_comment_count = #{record.productCommentCount,jdbcType=INTEGER},
logo = #{record.logo,jdbcType=VARCHAR},
big_pic = #{record.bigPic,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsBrand">
update pms_brand
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="firstLetter != null">
first_letter = #{firstLetter,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="factoryStatus != null">
factory_status = #{factoryStatus,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
</if>
<if test="productCommentCount != null">
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
</if>
<if test="logo != null">
logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="bigPic != null">
big_pic = #{bigPic,jdbcType=VARCHAR},
</if>
<if test="brandStory != null">
brand_story = #{brandStory,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.PmsBrand">
update pms_brand
set name = #{name,jdbcType=VARCHAR},
first_letter = #{firstLetter,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
factory_status = #{factoryStatus,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
product_count = #{productCount,jdbcType=INTEGER},
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
logo = #{logo,jdbcType=VARCHAR},
big_pic = #{bigPic,jdbcType=VARCHAR},
brand_story = #{brandStory,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsBrand">
update pms_brand
set name = #{name,jdbcType=VARCHAR},
first_letter = #{firstLetter,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
factory_status = #{factoryStatus,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
product_count = #{productCount,jdbcType=INTEGER},
product_comment_count = #{productCommentCount,jdbcType=INTEGER},
logo = #{logo,jdbcType=VARCHAR},
big_pic = #{bigPic,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -425,4 +425,852 @@
replay_count = #{replayCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsComment">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="member_nick_name" jdbcType="VARCHAR" property="memberNickName" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="star" jdbcType="INTEGER" property="star" />
<result column="member_ip" jdbcType="VARCHAR" property="memberIp" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="product_attribute" jdbcType="VARCHAR" property="productAttribute" />
<result column="collect_couont" jdbcType="INTEGER" property="collectCouont" />
<result column="read_count" jdbcType="INTEGER" property="readCount" />
<result column="pics" jdbcType="VARCHAR" property="pics" />
<result column="member_icon" jdbcType="VARCHAR" property="memberIcon" />
<result column="replay_count" jdbcType="INTEGER" property="replayCount" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.PmsComment">
<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="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, member_nick_name, product_name, star, member_ip, create_time, show_status,
product_attribute, collect_couont, read_count, pics, member_icon, replay_count
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.PmsCommentExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsCommentExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_comment
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_comment
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsCommentExample">
delete from pms_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_comment (product_id, member_nick_name, product_name,
star, member_ip, create_time,
show_status, product_attribute, collect_couont,
read_count, pics, member_icon,
replay_count, content)
values (#{productId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR},
#{star,jdbcType=INTEGER}, #{memberIp,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{showStatus,jdbcType=INTEGER}, #{productAttribute,jdbcType=VARCHAR}, #{collectCouont,jdbcType=INTEGER},
#{readCount,jdbcType=INTEGER}, #{pics,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR},
#{replayCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_comment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="memberNickName != null">
member_nick_name,
</if>
<if test="productName != null">
product_name,
</if>
<if test="star != null">
star,
</if>
<if test="memberIp != null">
member_ip,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="productAttribute != null">
product_attribute,
</if>
<if test="collectCouont != null">
collect_couont,
</if>
<if test="readCount != null">
read_count,
</if>
<if test="pics != null">
pics,
</if>
<if test="memberIcon != null">
member_icon,
</if>
<if test="replayCount != null">
replay_count,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
#{memberNickName,jdbcType=VARCHAR},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="star != null">
#{star,jdbcType=INTEGER},
</if>
<if test="memberIp != null">
#{memberIp,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="productAttribute != null">
#{productAttribute,jdbcType=VARCHAR},
</if>
<if test="collectCouont != null">
#{collectCouont,jdbcType=INTEGER},
</if>
<if test="readCount != null">
#{readCount,jdbcType=INTEGER},
</if>
<if test="pics != null">
#{pics,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
#{memberIcon,jdbcType=VARCHAR},
</if>
<if test="replayCount != null">
#{replayCount,jdbcType=INTEGER},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsCommentExample" resultType="java.lang.Integer">
select count(*) from pms_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_comment
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.memberNickName != null">
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.star != null">
star = #{record.star,jdbcType=INTEGER},
</if>
<if test="record.memberIp != null">
member_ip = #{record.memberIp,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.productAttribute != null">
product_attribute = #{record.productAttribute,jdbcType=VARCHAR},
</if>
<if test="record.collectCouont != null">
collect_couont = #{record.collectCouont,jdbcType=INTEGER},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=INTEGER},
</if>
<if test="record.pics != null">
pics = #{record.pics,jdbcType=VARCHAR},
</if>
<if test="record.memberIcon != null">
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
</if>
<if test="record.replayCount != null">
replay_count = #{record.replayCount,jdbcType=INTEGER},
</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 pms_comment
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
star = #{record.star,jdbcType=INTEGER},
member_ip = #{record.memberIp,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
show_status = #{record.showStatus,jdbcType=INTEGER},
product_attribute = #{record.productAttribute,jdbcType=VARCHAR},
collect_couont = #{record.collectCouont,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
pics = #{record.pics,jdbcType=VARCHAR},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
replay_count = #{record.replayCount,jdbcType=INTEGER},
content = #{record.content,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_comment
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
star = #{record.star,jdbcType=INTEGER},
member_ip = #{record.memberIp,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
show_status = #{record.showStatus,jdbcType=INTEGER},
product_attribute = #{record.productAttribute,jdbcType=VARCHAR},
collect_couont = #{record.collectCouont,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
pics = #{record.pics,jdbcType=VARCHAR},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
replay_count = #{record.replayCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsComment">
update pms_comment
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="star != null">
star = #{star,jdbcType=INTEGER},
</if>
<if test="memberIp != null">
member_ip = #{memberIp,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="productAttribute != null">
product_attribute = #{productAttribute,jdbcType=VARCHAR},
</if>
<if test="collectCouont != null">
collect_couont = #{collectCouont,jdbcType=INTEGER},
</if>
<if test="readCount != null">
read_count = #{readCount,jdbcType=INTEGER},
</if>
<if test="pics != null">
pics = #{pics,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
member_icon = #{memberIcon,jdbcType=VARCHAR},
</if>
<if test="replayCount != null">
replay_count = #{replayCount,jdbcType=INTEGER},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.PmsComment">
update pms_comment
set product_id = #{productId,jdbcType=BIGINT},
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
star = #{star,jdbcType=INTEGER},
member_ip = #{memberIp,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
show_status = #{showStatus,jdbcType=INTEGER},
product_attribute = #{productAttribute,jdbcType=VARCHAR},
collect_couont = #{collectCouont,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
pics = #{pics,jdbcType=VARCHAR},
member_icon = #{memberIcon,jdbcType=VARCHAR},
replay_count = #{replayCount,jdbcType=INTEGER},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsComment">
update pms_comment
set product_id = #{productId,jdbcType=BIGINT},
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
star = #{star,jdbcType=INTEGER},
member_ip = #{memberIp,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
show_status = #{showStatus,jdbcType=INTEGER},
product_attribute = #{productAttribute,jdbcType=VARCHAR},
collect_couont = #{collectCouont,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
pics = #{pics,jdbcType=VARCHAR},
member_icon = #{memberIcon,jdbcType=VARCHAR},
replay_count = #{replayCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsComment">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="member_nick_name" jdbcType="VARCHAR" property="memberNickName" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="star" jdbcType="INTEGER" property="star" />
<result column="member_ip" jdbcType="VARCHAR" property="memberIp" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="product_attribute" jdbcType="VARCHAR" property="productAttribute" />
<result column="collect_couont" jdbcType="INTEGER" property="collectCouont" />
<result column="read_count" jdbcType="INTEGER" property="readCount" />
<result column="pics" jdbcType="VARCHAR" property="pics" />
<result column="member_icon" jdbcType="VARCHAR" property="memberIcon" />
<result column="replay_count" jdbcType="INTEGER" property="replayCount" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.PmsComment">
<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="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, member_nick_name, product_name, star, member_ip, create_time, show_status,
product_attribute, collect_couont, read_count, pics, member_icon, replay_count
</sql>
<sql id="Blob_Column_List">
content
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.PmsCommentExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsCommentExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_comment
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_comment
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsCommentExample">
delete from pms_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_comment (product_id, member_nick_name, product_name,
star, member_ip, create_time,
show_status, product_attribute, collect_couont,
read_count, pics, member_icon,
replay_count, content)
values (#{productId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR},
#{star,jdbcType=INTEGER}, #{memberIp,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{showStatus,jdbcType=INTEGER}, #{productAttribute,jdbcType=VARCHAR}, #{collectCouont,jdbcType=INTEGER},
#{readCount,jdbcType=INTEGER}, #{pics,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR},
#{replayCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsComment">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_comment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="memberNickName != null">
member_nick_name,
</if>
<if test="productName != null">
product_name,
</if>
<if test="star != null">
star,
</if>
<if test="memberIp != null">
member_ip,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="productAttribute != null">
product_attribute,
</if>
<if test="collectCouont != null">
collect_couont,
</if>
<if test="readCount != null">
read_count,
</if>
<if test="pics != null">
pics,
</if>
<if test="memberIcon != null">
member_icon,
</if>
<if test="replayCount != null">
replay_count,
</if>
<if test="content != null">
content,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
#{memberNickName,jdbcType=VARCHAR},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="star != null">
#{star,jdbcType=INTEGER},
</if>
<if test="memberIp != null">
#{memberIp,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="productAttribute != null">
#{productAttribute,jdbcType=VARCHAR},
</if>
<if test="collectCouont != null">
#{collectCouont,jdbcType=INTEGER},
</if>
<if test="readCount != null">
#{readCount,jdbcType=INTEGER},
</if>
<if test="pics != null">
#{pics,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
#{memberIcon,jdbcType=VARCHAR},
</if>
<if test="replayCount != null">
#{replayCount,jdbcType=INTEGER},
</if>
<if test="content != null">
#{content,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsCommentExample" resultType="java.lang.Integer">
select count(*) from pms_comment
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_comment
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.memberNickName != null">
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.star != null">
star = #{record.star,jdbcType=INTEGER},
</if>
<if test="record.memberIp != null">
member_ip = #{record.memberIp,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.productAttribute != null">
product_attribute = #{record.productAttribute,jdbcType=VARCHAR},
</if>
<if test="record.collectCouont != null">
collect_couont = #{record.collectCouont,jdbcType=INTEGER},
</if>
<if test="record.readCount != null">
read_count = #{record.readCount,jdbcType=INTEGER},
</if>
<if test="record.pics != null">
pics = #{record.pics,jdbcType=VARCHAR},
</if>
<if test="record.memberIcon != null">
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
</if>
<if test="record.replayCount != null">
replay_count = #{record.replayCount,jdbcType=INTEGER},
</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 pms_comment
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
star = #{record.star,jdbcType=INTEGER},
member_ip = #{record.memberIp,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
show_status = #{record.showStatus,jdbcType=INTEGER},
product_attribute = #{record.productAttribute,jdbcType=VARCHAR},
collect_couont = #{record.collectCouont,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
pics = #{record.pics,jdbcType=VARCHAR},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
replay_count = #{record.replayCount,jdbcType=INTEGER},
content = #{record.content,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_comment
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
star = #{record.star,jdbcType=INTEGER},
member_ip = #{record.memberIp,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
show_status = #{record.showStatus,jdbcType=INTEGER},
product_attribute = #{record.productAttribute,jdbcType=VARCHAR},
collect_couont = #{record.collectCouont,jdbcType=INTEGER},
read_count = #{record.readCount,jdbcType=INTEGER},
pics = #{record.pics,jdbcType=VARCHAR},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
replay_count = #{record.replayCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsComment">
update pms_comment
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="star != null">
star = #{star,jdbcType=INTEGER},
</if>
<if test="memberIp != null">
member_ip = #{memberIp,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="productAttribute != null">
product_attribute = #{productAttribute,jdbcType=VARCHAR},
</if>
<if test="collectCouont != null">
collect_couont = #{collectCouont,jdbcType=INTEGER},
</if>
<if test="readCount != null">
read_count = #{readCount,jdbcType=INTEGER},
</if>
<if test="pics != null">
pics = #{pics,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
member_icon = #{memberIcon,jdbcType=VARCHAR},
</if>
<if test="replayCount != null">
replay_count = #{replayCount,jdbcType=INTEGER},
</if>
<if test="content != null">
content = #{content,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.PmsComment">
update pms_comment
set product_id = #{productId,jdbcType=BIGINT},
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
star = #{star,jdbcType=INTEGER},
member_ip = #{memberIp,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
show_status = #{showStatus,jdbcType=INTEGER},
product_attribute = #{productAttribute,jdbcType=VARCHAR},
collect_couont = #{collectCouont,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
pics = #{pics,jdbcType=VARCHAR},
member_icon = #{memberIcon,jdbcType=VARCHAR},
replay_count = #{replayCount,jdbcType=INTEGER},
content = #{content,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsComment">
update pms_comment
set product_id = #{productId,jdbcType=BIGINT},
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
star = #{star,jdbcType=INTEGER},
member_ip = #{memberIp,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
show_status = #{showStatus,jdbcType=INTEGER},
product_attribute = #{productAttribute,jdbcType=VARCHAR},
collect_couont = #{collectCouont,jdbcType=INTEGER},
read_count = #{readCount,jdbcType=INTEGER},
pics = #{pics,jdbcType=VARCHAR},
member_icon = #{memberIcon,jdbcType=VARCHAR},
replay_count = #{replayCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -240,4 +240,482 @@
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsCommentReplay">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="comment_id" jdbcType="BIGINT" property="commentId" />
<result column="member_nick_name" jdbcType="VARCHAR" property="memberNickName" />
<result column="member_icon" jdbcType="VARCHAR" property="memberIcon" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="type" jdbcType="INTEGER" property="type" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, comment_id, member_nick_name, member_icon, content, create_time, type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsCommentReplayExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_comment_replay
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_comment_replay
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_comment_replay
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsCommentReplayExample">
delete from pms_comment_replay
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsCommentReplay">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_comment_replay (comment_id, member_nick_name, member_icon,
content, create_time, type
)
values (#{commentId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsCommentReplay">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_comment_replay
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="commentId != null">
comment_id,
</if>
<if test="memberNickName != null">
member_nick_name,
</if>
<if test="memberIcon != null">
member_icon,
</if>
<if test="content != null">
content,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="commentId != null">
#{commentId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
#{memberNickName,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
#{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsCommentReplayExample" resultType="java.lang.Integer">
select count(*) from pms_comment_replay
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_comment_replay
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.commentId != null">
comment_id = #{record.commentId,jdbcType=BIGINT},
</if>
<if test="record.memberNickName != null">
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
</if>
<if test="record.memberIcon != null">
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_comment_replay
set id = #{record.id,jdbcType=BIGINT},
comment_id = #{record.commentId,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
type = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsCommentReplay">
update pms_comment_replay
<set>
<if test="commentId != null">
comment_id = #{commentId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
member_icon = #{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsCommentReplay">
update pms_comment_replay
set comment_id = #{commentId,jdbcType=BIGINT},
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
member_icon = #{memberIcon,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsCommentReplay">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="comment_id" jdbcType="BIGINT" property="commentId" />
<result column="member_nick_name" jdbcType="VARCHAR" property="memberNickName" />
<result column="member_icon" jdbcType="VARCHAR" property="memberIcon" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="type" jdbcType="INTEGER" property="type" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, comment_id, member_nick_name, member_icon, content, create_time, type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsCommentReplayExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_comment_replay
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_comment_replay
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_comment_replay
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsCommentReplayExample">
delete from pms_comment_replay
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsCommentReplay">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_comment_replay (comment_id, member_nick_name, member_icon,
content, create_time, type
)
values (#{commentId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsCommentReplay">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_comment_replay
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="commentId != null">
comment_id,
</if>
<if test="memberNickName != null">
member_nick_name,
</if>
<if test="memberIcon != null">
member_icon,
</if>
<if test="content != null">
content,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="commentId != null">
#{commentId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
#{memberNickName,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
#{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsCommentReplayExample" resultType="java.lang.Integer">
select count(*) from pms_comment_replay
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_comment_replay
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.commentId != null">
comment_id = #{record.commentId,jdbcType=BIGINT},
</if>
<if test="record.memberNickName != null">
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
</if>
<if test="record.memberIcon != null">
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
</if>
<if test="record.content != null">
content = #{record.content,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_comment_replay
set id = #{record.id,jdbcType=BIGINT},
comment_id = #{record.commentId,jdbcType=BIGINT},
member_nick_name = #{record.memberNickName,jdbcType=VARCHAR},
member_icon = #{record.memberIcon,jdbcType=VARCHAR},
content = #{record.content,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
type = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsCommentReplay">
update pms_comment_replay
<set>
<if test="commentId != null">
comment_id = #{commentId,jdbcType=BIGINT},
</if>
<if test="memberNickName != null">
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
</if>
<if test="memberIcon != null">
member_icon = #{memberIcon,jdbcType=VARCHAR},
</if>
<if test="content != null">
content = #{content,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsCommentReplay">
update pms_comment_replay
set comment_id = #{commentId,jdbcType=BIGINT},
member_nick_name = #{memberNickName,jdbcType=VARCHAR},
member_icon = #{memberIcon,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -255,4 +255,512 @@
dest = #{dest,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsFeightTemplate">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="charge_type" jdbcType="INTEGER" property="chargeType" />
<result column="first_weight" jdbcType="DECIMAL" property="firstWeight" />
<result column="first_fee" jdbcType="DECIMAL" property="firstFee" />
<result column="continue_weight" jdbcType="DECIMAL" property="continueWeight" />
<result column="continme_fee" jdbcType="DECIMAL" property="continmeFee" />
<result column="dest" jdbcType="VARCHAR" property="dest" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, charge_type, first_weight, first_fee, continue_weight, continme_fee, dest
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsFeightTemplateExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_feight_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_feight_template
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_feight_template
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsFeightTemplateExample">
delete from pms_feight_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsFeightTemplate">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_feight_template (name, charge_type, first_weight,
first_fee, continue_weight, continme_fee,
dest)
values (#{name,jdbcType=VARCHAR}, #{chargeType,jdbcType=INTEGER}, #{firstWeight,jdbcType=DECIMAL},
#{firstFee,jdbcType=DECIMAL}, #{continueWeight,jdbcType=DECIMAL}, #{continmeFee,jdbcType=DECIMAL},
#{dest,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsFeightTemplate">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_feight_template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="chargeType != null">
charge_type,
</if>
<if test="firstWeight != null">
first_weight,
</if>
<if test="firstFee != null">
first_fee,
</if>
<if test="continueWeight != null">
continue_weight,
</if>
<if test="continmeFee != null">
continme_fee,
</if>
<if test="dest != null">
dest,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="chargeType != null">
#{chargeType,jdbcType=INTEGER},
</if>
<if test="firstWeight != null">
#{firstWeight,jdbcType=DECIMAL},
</if>
<if test="firstFee != null">
#{firstFee,jdbcType=DECIMAL},
</if>
<if test="continueWeight != null">
#{continueWeight,jdbcType=DECIMAL},
</if>
<if test="continmeFee != null">
#{continmeFee,jdbcType=DECIMAL},
</if>
<if test="dest != null">
#{dest,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsFeightTemplateExample" resultType="java.lang.Integer">
select count(*) from pms_feight_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_feight_template
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.chargeType != null">
charge_type = #{record.chargeType,jdbcType=INTEGER},
</if>
<if test="record.firstWeight != null">
first_weight = #{record.firstWeight,jdbcType=DECIMAL},
</if>
<if test="record.firstFee != null">
first_fee = #{record.firstFee,jdbcType=DECIMAL},
</if>
<if test="record.continueWeight != null">
continue_weight = #{record.continueWeight,jdbcType=DECIMAL},
</if>
<if test="record.continmeFee != null">
continme_fee = #{record.continmeFee,jdbcType=DECIMAL},
</if>
<if test="record.dest != null">
dest = #{record.dest,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_feight_template
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
charge_type = #{record.chargeType,jdbcType=INTEGER},
first_weight = #{record.firstWeight,jdbcType=DECIMAL},
first_fee = #{record.firstFee,jdbcType=DECIMAL},
continue_weight = #{record.continueWeight,jdbcType=DECIMAL},
continme_fee = #{record.continmeFee,jdbcType=DECIMAL},
dest = #{record.dest,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsFeightTemplate">
update pms_feight_template
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="chargeType != null">
charge_type = #{chargeType,jdbcType=INTEGER},
</if>
<if test="firstWeight != null">
first_weight = #{firstWeight,jdbcType=DECIMAL},
</if>
<if test="firstFee != null">
first_fee = #{firstFee,jdbcType=DECIMAL},
</if>
<if test="continueWeight != null">
continue_weight = #{continueWeight,jdbcType=DECIMAL},
</if>
<if test="continmeFee != null">
continme_fee = #{continmeFee,jdbcType=DECIMAL},
</if>
<if test="dest != null">
dest = #{dest,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsFeightTemplate">
update pms_feight_template
set name = #{name,jdbcType=VARCHAR},
charge_type = #{chargeType,jdbcType=INTEGER},
first_weight = #{firstWeight,jdbcType=DECIMAL},
first_fee = #{firstFee,jdbcType=DECIMAL},
continue_weight = #{continueWeight,jdbcType=DECIMAL},
continme_fee = #{continmeFee,jdbcType=DECIMAL},
dest = #{dest,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsFeightTemplate">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="charge_type" jdbcType="INTEGER" property="chargeType" />
<result column="first_weight" jdbcType="DECIMAL" property="firstWeight" />
<result column="first_fee" jdbcType="DECIMAL" property="firstFee" />
<result column="continue_weight" jdbcType="DECIMAL" property="continueWeight" />
<result column="continme_fee" jdbcType="DECIMAL" property="continmeFee" />
<result column="dest" jdbcType="VARCHAR" property="dest" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, charge_type, first_weight, first_fee, continue_weight, continme_fee, dest
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsFeightTemplateExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_feight_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_feight_template
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_feight_template
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsFeightTemplateExample">
delete from pms_feight_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsFeightTemplate">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_feight_template (name, charge_type, first_weight,
first_fee, continue_weight, continme_fee,
dest)
values (#{name,jdbcType=VARCHAR}, #{chargeType,jdbcType=INTEGER}, #{firstWeight,jdbcType=DECIMAL},
#{firstFee,jdbcType=DECIMAL}, #{continueWeight,jdbcType=DECIMAL}, #{continmeFee,jdbcType=DECIMAL},
#{dest,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsFeightTemplate">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_feight_template
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="chargeType != null">
charge_type,
</if>
<if test="firstWeight != null">
first_weight,
</if>
<if test="firstFee != null">
first_fee,
</if>
<if test="continueWeight != null">
continue_weight,
</if>
<if test="continmeFee != null">
continme_fee,
</if>
<if test="dest != null">
dest,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="chargeType != null">
#{chargeType,jdbcType=INTEGER},
</if>
<if test="firstWeight != null">
#{firstWeight,jdbcType=DECIMAL},
</if>
<if test="firstFee != null">
#{firstFee,jdbcType=DECIMAL},
</if>
<if test="continueWeight != null">
#{continueWeight,jdbcType=DECIMAL},
</if>
<if test="continmeFee != null">
#{continmeFee,jdbcType=DECIMAL},
</if>
<if test="dest != null">
#{dest,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsFeightTemplateExample" resultType="java.lang.Integer">
select count(*) from pms_feight_template
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_feight_template
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.chargeType != null">
charge_type = #{record.chargeType,jdbcType=INTEGER},
</if>
<if test="record.firstWeight != null">
first_weight = #{record.firstWeight,jdbcType=DECIMAL},
</if>
<if test="record.firstFee != null">
first_fee = #{record.firstFee,jdbcType=DECIMAL},
</if>
<if test="record.continueWeight != null">
continue_weight = #{record.continueWeight,jdbcType=DECIMAL},
</if>
<if test="record.continmeFee != null">
continme_fee = #{record.continmeFee,jdbcType=DECIMAL},
</if>
<if test="record.dest != null">
dest = #{record.dest,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_feight_template
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
charge_type = #{record.chargeType,jdbcType=INTEGER},
first_weight = #{record.firstWeight,jdbcType=DECIMAL},
first_fee = #{record.firstFee,jdbcType=DECIMAL},
continue_weight = #{record.continueWeight,jdbcType=DECIMAL},
continme_fee = #{record.continmeFee,jdbcType=DECIMAL},
dest = #{record.dest,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsFeightTemplate">
update pms_feight_template
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="chargeType != null">
charge_type = #{chargeType,jdbcType=INTEGER},
</if>
<if test="firstWeight != null">
first_weight = #{firstWeight,jdbcType=DECIMAL},
</if>
<if test="firstFee != null">
first_fee = #{firstFee,jdbcType=DECIMAL},
</if>
<if test="continueWeight != null">
continue_weight = #{continueWeight,jdbcType=DECIMAL},
</if>
<if test="continmeFee != null">
continme_fee = #{continmeFee,jdbcType=DECIMAL},
</if>
<if test="dest != null">
dest = #{dest,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsFeightTemplate">
update pms_feight_template
set name = #{name,jdbcType=VARCHAR},
charge_type = #{chargeType,jdbcType=INTEGER},
first_weight = #{firstWeight,jdbcType=DECIMAL},
first_fee = #{firstFee,jdbcType=DECIMAL},
continue_weight = #{continueWeight,jdbcType=DECIMAL},
continme_fee = #{continmeFee,jdbcType=DECIMAL},
dest = #{dest,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -193,4 +193,388 @@
member_price = #{memberPrice,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsMemberPrice">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="member_level_id" jdbcType="BIGINT" property="memberLevelId" />
<result column="member_price" jdbcType="DECIMAL" property="memberPrice" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, member_level_id, member_price
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsMemberPriceExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_member_price
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_member_price
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_member_price
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsMemberPriceExample">
delete from pms_member_price
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsMemberPrice">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_member_price (product_id, member_level_id, member_price
)
values (#{productId,jdbcType=BIGINT}, #{memberLevelId,jdbcType=BIGINT}, #{memberPrice,jdbcType=DECIMAL}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsMemberPrice">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_member_price
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="memberLevelId != null">
member_level_id,
</if>
<if test="memberPrice != null">
member_price,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="memberLevelId != null">
#{memberLevelId,jdbcType=BIGINT},
</if>
<if test="memberPrice != null">
#{memberPrice,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsMemberPriceExample" resultType="java.lang.Integer">
select count(*) from pms_member_price
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_member_price
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.memberLevelId != null">
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
</if>
<if test="record.memberPrice != null">
member_price = #{record.memberPrice,jdbcType=DECIMAL},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_member_price
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
member_price = #{record.memberPrice,jdbcType=DECIMAL}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsMemberPrice">
update pms_member_price
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="memberLevelId != null">
member_level_id = #{memberLevelId,jdbcType=BIGINT},
</if>
<if test="memberPrice != null">
member_price = #{memberPrice,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsMemberPrice">
update pms_member_price
set product_id = #{productId,jdbcType=BIGINT},
member_level_id = #{memberLevelId,jdbcType=BIGINT},
member_price = #{memberPrice,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsMemberPrice">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="member_level_id" jdbcType="BIGINT" property="memberLevelId" />
<result column="member_price" jdbcType="DECIMAL" property="memberPrice" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, member_level_id, member_price
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsMemberPriceExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_member_price
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_member_price
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_member_price
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsMemberPriceExample">
delete from pms_member_price
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsMemberPrice">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_member_price (product_id, member_level_id, member_price
)
values (#{productId,jdbcType=BIGINT}, #{memberLevelId,jdbcType=BIGINT}, #{memberPrice,jdbcType=DECIMAL}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsMemberPrice">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_member_price
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="memberLevelId != null">
member_level_id,
</if>
<if test="memberPrice != null">
member_price,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="memberLevelId != null">
#{memberLevelId,jdbcType=BIGINT},
</if>
<if test="memberPrice != null">
#{memberPrice,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsMemberPriceExample" resultType="java.lang.Integer">
select count(*) from pms_member_price
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_member_price
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.memberLevelId != null">
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
</if>
<if test="record.memberPrice != null">
member_price = #{record.memberPrice,jdbcType=DECIMAL},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_member_price
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
member_price = #{record.memberPrice,jdbcType=DECIMAL}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsMemberPrice">
update pms_member_price
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="memberLevelId != null">
member_level_id = #{memberLevelId,jdbcType=BIGINT},
</if>
<if test="memberPrice != null">
member_price = #{memberPrice,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsMemberPrice">
update pms_member_price
set product_id = #{productId,jdbcType=BIGINT},
member_level_id = #{memberLevelId,jdbcType=BIGINT},
member_price = #{memberPrice,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -193,4 +193,388 @@
param_count = #{paramCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductAttributeCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="attribute_count" jdbcType="INTEGER" property="attributeCount" />
<result column="param_count" jdbcType="INTEGER" property="paramCount" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, attribute_count, param_count
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductAttributeCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_attribute_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_attribute_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_attribute_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductAttributeCategoryExample">
delete from pms_product_attribute_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductAttributeCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute_category (name, attribute_count, param_count
)
values (#{name,jdbcType=VARCHAR}, #{attributeCount,jdbcType=INTEGER}, #{paramCount,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductAttributeCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="attributeCount != null">
attribute_count,
</if>
<if test="paramCount != null">
param_count,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="attributeCount != null">
#{attributeCount,jdbcType=INTEGER},
</if>
<if test="paramCount != null">
#{paramCount,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductAttributeCategoryExample" resultType="java.lang.Integer">
select count(*) from pms_product_attribute_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_attribute_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.attributeCount != null">
attribute_count = #{record.attributeCount,jdbcType=INTEGER},
</if>
<if test="record.paramCount != null">
param_count = #{record.paramCount,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_attribute_category
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
attribute_count = #{record.attributeCount,jdbcType=INTEGER},
param_count = #{record.paramCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductAttributeCategory">
update pms_product_attribute_category
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="attributeCount != null">
attribute_count = #{attributeCount,jdbcType=INTEGER},
</if>
<if test="paramCount != null">
param_count = #{paramCount,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductAttributeCategory">
update pms_product_attribute_category
set name = #{name,jdbcType=VARCHAR},
attribute_count = #{attributeCount,jdbcType=INTEGER},
param_count = #{paramCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductAttributeCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="attribute_count" jdbcType="INTEGER" property="attributeCount" />
<result column="param_count" jdbcType="INTEGER" property="paramCount" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, attribute_count, param_count
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductAttributeCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_attribute_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_attribute_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_attribute_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductAttributeCategoryExample">
delete from pms_product_attribute_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductAttributeCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute_category (name, attribute_count, param_count
)
values (#{name,jdbcType=VARCHAR}, #{attributeCount,jdbcType=INTEGER}, #{paramCount,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductAttributeCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="attributeCount != null">
attribute_count,
</if>
<if test="paramCount != null">
param_count,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="attributeCount != null">
#{attributeCount,jdbcType=INTEGER},
</if>
<if test="paramCount != null">
#{paramCount,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductAttributeCategoryExample" resultType="java.lang.Integer">
select count(*) from pms_product_attribute_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_attribute_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.attributeCount != null">
attribute_count = #{record.attributeCount,jdbcType=INTEGER},
</if>
<if test="record.paramCount != null">
param_count = #{record.paramCount,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_attribute_category
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
attribute_count = #{record.attributeCount,jdbcType=INTEGER},
param_count = #{record.paramCount,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductAttributeCategory">
update pms_product_attribute_category
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="attributeCount != null">
attribute_count = #{attributeCount,jdbcType=INTEGER},
</if>
<if test="paramCount != null">
param_count = #{paramCount,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductAttributeCategory">
update pms_product_attribute_category
set name = #{name,jdbcType=VARCHAR},
attribute_count = #{attributeCount,jdbcType=INTEGER},
param_count = #{paramCount,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -320,4 +320,642 @@
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductAttribute">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_attribute_category_id" jdbcType="BIGINT" property="productAttributeCategoryId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="select_type" jdbcType="INTEGER" property="selectType" />
<result column="input_type" jdbcType="INTEGER" property="inputType" />
<result column="input_list" jdbcType="VARCHAR" property="inputList" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="filter_type" jdbcType="INTEGER" property="filterType" />
<result column="search_type" jdbcType="INTEGER" property="searchType" />
<result column="related_status" jdbcType="INTEGER" property="relatedStatus" />
<result column="hand_add_status" jdbcType="INTEGER" property="handAddStatus" />
<result column="type" jdbcType="INTEGER" property="type" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_attribute_category_id, name, select_type, input_type, input_list, sort,
filter_type, search_type, related_status, hand_add_status, type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductAttributeExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_attribute
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_attribute
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_attribute
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductAttributeExample">
delete from pms_product_attribute
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductAttribute">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute (product_attribute_category_id, name,
select_type, input_type, input_list,
sort, filter_type, search_type,
related_status, hand_add_status, type
)
values (#{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
#{selectType,jdbcType=INTEGER}, #{inputType,jdbcType=INTEGER}, #{inputList,jdbcType=VARCHAR},
#{sort,jdbcType=INTEGER}, #{filterType,jdbcType=INTEGER}, #{searchType,jdbcType=INTEGER},
#{relatedStatus,jdbcType=INTEGER}, #{handAddStatus,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductAttribute">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productAttributeCategoryId != null">
product_attribute_category_id,
</if>
<if test="name != null">
name,
</if>
<if test="selectType != null">
select_type,
</if>
<if test="inputType != null">
input_type,
</if>
<if test="inputList != null">
input_list,
</if>
<if test="sort != null">
sort,
</if>
<if test="filterType != null">
filter_type,
</if>
<if test="searchType != null">
search_type,
</if>
<if test="relatedStatus != null">
related_status,
</if>
<if test="handAddStatus != null">
hand_add_status,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productAttributeCategoryId != null">
#{productAttributeCategoryId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="selectType != null">
#{selectType,jdbcType=INTEGER},
</if>
<if test="inputType != null">
#{inputType,jdbcType=INTEGER},
</if>
<if test="inputList != null">
#{inputList,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="filterType != null">
#{filterType,jdbcType=INTEGER},
</if>
<if test="searchType != null">
#{searchType,jdbcType=INTEGER},
</if>
<if test="relatedStatus != null">
#{relatedStatus,jdbcType=INTEGER},
</if>
<if test="handAddStatus != null">
#{handAddStatus,jdbcType=INTEGER},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductAttributeExample" resultType="java.lang.Integer">
select count(*) from pms_product_attribute
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_attribute
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productAttributeCategoryId != null">
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.selectType != null">
select_type = #{record.selectType,jdbcType=INTEGER},
</if>
<if test="record.inputType != null">
input_type = #{record.inputType,jdbcType=INTEGER},
</if>
<if test="record.inputList != null">
input_list = #{record.inputList,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.filterType != null">
filter_type = #{record.filterType,jdbcType=INTEGER},
</if>
<if test="record.searchType != null">
search_type = #{record.searchType,jdbcType=INTEGER},
</if>
<if test="record.relatedStatus != null">
related_status = #{record.relatedStatus,jdbcType=INTEGER},
</if>
<if test="record.handAddStatus != null">
hand_add_status = #{record.handAddStatus,jdbcType=INTEGER},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_attribute
set id = #{record.id,jdbcType=BIGINT},
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
select_type = #{record.selectType,jdbcType=INTEGER},
input_type = #{record.inputType,jdbcType=INTEGER},
input_list = #{record.inputList,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
filter_type = #{record.filterType,jdbcType=INTEGER},
search_type = #{record.searchType,jdbcType=INTEGER},
related_status = #{record.relatedStatus,jdbcType=INTEGER},
hand_add_status = #{record.handAddStatus,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductAttribute">
update pms_product_attribute
<set>
<if test="productAttributeCategoryId != null">
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="selectType != null">
select_type = #{selectType,jdbcType=INTEGER},
</if>
<if test="inputType != null">
input_type = #{inputType,jdbcType=INTEGER},
</if>
<if test="inputList != null">
input_list = #{inputList,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="filterType != null">
filter_type = #{filterType,jdbcType=INTEGER},
</if>
<if test="searchType != null">
search_type = #{searchType,jdbcType=INTEGER},
</if>
<if test="relatedStatus != null">
related_status = #{relatedStatus,jdbcType=INTEGER},
</if>
<if test="handAddStatus != null">
hand_add_status = #{handAddStatus,jdbcType=INTEGER},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductAttribute">
update pms_product_attribute
set product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
select_type = #{selectType,jdbcType=INTEGER},
input_type = #{inputType,jdbcType=INTEGER},
input_list = #{inputList,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
filter_type = #{filterType,jdbcType=INTEGER},
search_type = #{searchType,jdbcType=INTEGER},
related_status = #{relatedStatus,jdbcType=INTEGER},
hand_add_status = #{handAddStatus,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductAttribute">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_attribute_category_id" jdbcType="BIGINT" property="productAttributeCategoryId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="select_type" jdbcType="INTEGER" property="selectType" />
<result column="input_type" jdbcType="INTEGER" property="inputType" />
<result column="input_list" jdbcType="VARCHAR" property="inputList" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="filter_type" jdbcType="INTEGER" property="filterType" />
<result column="search_type" jdbcType="INTEGER" property="searchType" />
<result column="related_status" jdbcType="INTEGER" property="relatedStatus" />
<result column="hand_add_status" jdbcType="INTEGER" property="handAddStatus" />
<result column="type" jdbcType="INTEGER" property="type" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_attribute_category_id, name, select_type, input_type, input_list, sort,
filter_type, search_type, related_status, hand_add_status, type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductAttributeExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_attribute
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_attribute
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_attribute
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductAttributeExample">
delete from pms_product_attribute
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductAttribute">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute (product_attribute_category_id, name,
select_type, input_type, input_list,
sort, filter_type, search_type,
related_status, hand_add_status, type
)
values (#{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
#{selectType,jdbcType=INTEGER}, #{inputType,jdbcType=INTEGER}, #{inputList,jdbcType=VARCHAR},
#{sort,jdbcType=INTEGER}, #{filterType,jdbcType=INTEGER}, #{searchType,jdbcType=INTEGER},
#{relatedStatus,jdbcType=INTEGER}, #{handAddStatus,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductAttribute">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productAttributeCategoryId != null">
product_attribute_category_id,
</if>
<if test="name != null">
name,
</if>
<if test="selectType != null">
select_type,
</if>
<if test="inputType != null">
input_type,
</if>
<if test="inputList != null">
input_list,
</if>
<if test="sort != null">
sort,
</if>
<if test="filterType != null">
filter_type,
</if>
<if test="searchType != null">
search_type,
</if>
<if test="relatedStatus != null">
related_status,
</if>
<if test="handAddStatus != null">
hand_add_status,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productAttributeCategoryId != null">
#{productAttributeCategoryId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="selectType != null">
#{selectType,jdbcType=INTEGER},
</if>
<if test="inputType != null">
#{inputType,jdbcType=INTEGER},
</if>
<if test="inputList != null">
#{inputList,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="filterType != null">
#{filterType,jdbcType=INTEGER},
</if>
<if test="searchType != null">
#{searchType,jdbcType=INTEGER},
</if>
<if test="relatedStatus != null">
#{relatedStatus,jdbcType=INTEGER},
</if>
<if test="handAddStatus != null">
#{handAddStatus,jdbcType=INTEGER},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductAttributeExample" resultType="java.lang.Integer">
select count(*) from pms_product_attribute
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_attribute
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productAttributeCategoryId != null">
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.selectType != null">
select_type = #{record.selectType,jdbcType=INTEGER},
</if>
<if test="record.inputType != null">
input_type = #{record.inputType,jdbcType=INTEGER},
</if>
<if test="record.inputList != null">
input_list = #{record.inputList,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.filterType != null">
filter_type = #{record.filterType,jdbcType=INTEGER},
</if>
<if test="record.searchType != null">
search_type = #{record.searchType,jdbcType=INTEGER},
</if>
<if test="record.relatedStatus != null">
related_status = #{record.relatedStatus,jdbcType=INTEGER},
</if>
<if test="record.handAddStatus != null">
hand_add_status = #{record.handAddStatus,jdbcType=INTEGER},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_attribute
set id = #{record.id,jdbcType=BIGINT},
product_attribute_category_id = #{record.productAttributeCategoryId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
select_type = #{record.selectType,jdbcType=INTEGER},
input_type = #{record.inputType,jdbcType=INTEGER},
input_list = #{record.inputList,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER},
filter_type = #{record.filterType,jdbcType=INTEGER},
search_type = #{record.searchType,jdbcType=INTEGER},
related_status = #{record.relatedStatus,jdbcType=INTEGER},
hand_add_status = #{record.handAddStatus,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductAttribute">
update pms_product_attribute
<set>
<if test="productAttributeCategoryId != null">
product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="selectType != null">
select_type = #{selectType,jdbcType=INTEGER},
</if>
<if test="inputType != null">
input_type = #{inputType,jdbcType=INTEGER},
</if>
<if test="inputList != null">
input_list = #{inputList,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="filterType != null">
filter_type = #{filterType,jdbcType=INTEGER},
</if>
<if test="searchType != null">
search_type = #{searchType,jdbcType=INTEGER},
</if>
<if test="relatedStatus != null">
related_status = #{relatedStatus,jdbcType=INTEGER},
</if>
<if test="handAddStatus != null">
hand_add_status = #{handAddStatus,jdbcType=INTEGER},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductAttribute">
update pms_product_attribute
set product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
select_type = #{selectType,jdbcType=INTEGER},
input_type = #{inputType,jdbcType=INTEGER},
input_list = #{inputList,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
filter_type = #{filterType,jdbcType=INTEGER},
search_type = #{searchType,jdbcType=INTEGER},
related_status = #{relatedStatus,jdbcType=INTEGER},
hand_add_status = #{handAddStatus,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -193,4 +193,388 @@
value = #{value,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductAttributeValue">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_attribute_id" jdbcType="BIGINT" property="productAttributeId" />
<result column="value" jdbcType="VARCHAR" property="value" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, product_attribute_id, value
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductAttributeValueExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_attribute_value
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_attribute_value
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_attribute_value
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductAttributeValueExample">
delete from pms_product_attribute_value
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductAttributeValue">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute_value (product_id, product_attribute_id, value
)
values (#{productId,jdbcType=BIGINT}, #{productAttributeId,jdbcType=BIGINT}, #{value,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductAttributeValue">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute_value
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="productAttributeId != null">
product_attribute_id,
</if>
<if test="value != null">
value,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="productAttributeId != null">
#{productAttributeId,jdbcType=BIGINT},
</if>
<if test="value != null">
#{value,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductAttributeValueExample" resultType="java.lang.Integer">
select count(*) from pms_product_attribute_value
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_attribute_value
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.productAttributeId != null">
product_attribute_id = #{record.productAttributeId,jdbcType=BIGINT},
</if>
<if test="record.value != null">
value = #{record.value,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_attribute_value
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
product_attribute_id = #{record.productAttributeId,jdbcType=BIGINT},
value = #{record.value,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductAttributeValue">
update pms_product_attribute_value
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="productAttributeId != null">
product_attribute_id = #{productAttributeId,jdbcType=BIGINT},
</if>
<if test="value != null">
value = #{value,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductAttributeValue">
update pms_product_attribute_value
set product_id = #{productId,jdbcType=BIGINT},
product_attribute_id = #{productAttributeId,jdbcType=BIGINT},
value = #{value,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductAttributeValue">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_attribute_id" jdbcType="BIGINT" property="productAttributeId" />
<result column="value" jdbcType="VARCHAR" property="value" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, product_attribute_id, value
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductAttributeValueExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_attribute_value
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_attribute_value
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_attribute_value
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductAttributeValueExample">
delete from pms_product_attribute_value
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductAttributeValue">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute_value (product_id, product_attribute_id, value
)
values (#{productId,jdbcType=BIGINT}, #{productAttributeId,jdbcType=BIGINT}, #{value,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductAttributeValue">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_attribute_value
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="productAttributeId != null">
product_attribute_id,
</if>
<if test="value != null">
value,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="productAttributeId != null">
#{productAttributeId,jdbcType=BIGINT},
</if>
<if test="value != null">
#{value,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductAttributeValueExample" resultType="java.lang.Integer">
select count(*) from pms_product_attribute_value
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_attribute_value
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.productAttributeId != null">
product_attribute_id = #{record.productAttributeId,jdbcType=BIGINT},
</if>
<if test="record.value != null">
value = #{record.value,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_attribute_value
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
product_attribute_id = #{record.productAttributeId,jdbcType=BIGINT},
value = #{record.value,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductAttributeValue">
update pms_product_attribute_value
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="productAttributeId != null">
product_attribute_id = #{productAttributeId,jdbcType=BIGINT},
</if>
<if test="value != null">
value = #{value,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductAttributeValue">
update pms_product_attribute_value
set product_id = #{productId,jdbcType=BIGINT},
product_attribute_id = #{productAttributeId,jdbcType=BIGINT},
value = #{value,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -178,4 +178,358 @@
product_attribute_id = #{productAttributeId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductCategoryAttributeRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_category_id" jdbcType="BIGINT" property="productCategoryId" />
<result column="product_attribute_id" jdbcType="BIGINT" property="productAttributeId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_category_id, product_attribute_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_category_attribute_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_category_attribute_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_category_attribute_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelationExample">
delete from pms_product_category_attribute_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_category_attribute_relation (product_category_id, product_attribute_id
)
values (#{productCategoryId,jdbcType=BIGINT}, #{productAttributeId,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_category_attribute_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productCategoryId != null">
product_category_id,
</if>
<if test="productAttributeId != null">
product_attribute_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productCategoryId != null">
#{productCategoryId,jdbcType=BIGINT},
</if>
<if test="productAttributeId != null">
#{productAttributeId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelationExample" resultType="java.lang.Integer">
select count(*) from pms_product_category_attribute_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_category_attribute_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productCategoryId != null">
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
</if>
<if test="record.productAttributeId != null">
product_attribute_id = #{record.productAttributeId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_category_attribute_relation
set id = #{record.id,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
product_attribute_id = #{record.productAttributeId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelation">
update pms_product_category_attribute_relation
<set>
<if test="productCategoryId != null">
product_category_id = #{productCategoryId,jdbcType=BIGINT},
</if>
<if test="productAttributeId != null">
product_attribute_id = #{productAttributeId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelation">
update pms_product_category_attribute_relation
set product_category_id = #{productCategoryId,jdbcType=BIGINT},
product_attribute_id = #{productAttributeId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductCategoryAttributeRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_category_id" jdbcType="BIGINT" property="productCategoryId" />
<result column="product_attribute_id" jdbcType="BIGINT" property="productAttributeId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_category_id, product_attribute_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_category_attribute_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_category_attribute_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_category_attribute_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelationExample">
delete from pms_product_category_attribute_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_category_attribute_relation (product_category_id, product_attribute_id
)
values (#{productCategoryId,jdbcType=BIGINT}, #{productAttributeId,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_category_attribute_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productCategoryId != null">
product_category_id,
</if>
<if test="productAttributeId != null">
product_attribute_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productCategoryId != null">
#{productCategoryId,jdbcType=BIGINT},
</if>
<if test="productAttributeId != null">
#{productAttributeId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelationExample" resultType="java.lang.Integer">
select count(*) from pms_product_category_attribute_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_category_attribute_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productCategoryId != null">
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
</if>
<if test="record.productAttributeId != null">
product_attribute_id = #{record.productAttributeId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_category_attribute_relation
set id = #{record.id,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
product_attribute_id = #{record.productAttributeId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelation">
update pms_product_category_attribute_relation
<set>
<if test="productCategoryId != null">
product_category_id = #{productCategoryId,jdbcType=BIGINT},
</if>
<if test="productAttributeId != null">
product_attribute_id = #{productAttributeId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductCategoryAttributeRelation">
update pms_product_category_attribute_relation
set product_category_id = #{productCategoryId,jdbcType=BIGINT},
product_attribute_id = #{productAttributeId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -372,4 +372,746 @@
keywords = #{keywords,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="level" jdbcType="INTEGER" property="level" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
<result column="product_unit" jdbcType="VARCHAR" property="productUnit" />
<result column="nav_status" jdbcType="INTEGER" property="navStatus" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="keywords" jdbcType="VARCHAR" property="keywords" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.PmsProductCategory">
<result column="description" jdbcType="LONGVARCHAR" property="description" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, parent_id, name, level, product_count, product_unit, nav_status, show_status,
sort, icon, keywords
</sql>
<sql id="Blob_Column_List">
description
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.PmsProductCategoryExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_product_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_product_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductCategoryExample">
delete from pms_product_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_category (parent_id, name, level,
product_count, product_unit, nav_status,
show_status, sort, icon,
keywords, description)
values (#{parentId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER},
#{productCount,jdbcType=INTEGER}, #{productUnit,jdbcType=VARCHAR}, #{navStatus,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR},
#{keywords,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="parentId != null">
parent_id,
</if>
<if test="name != null">
name,
</if>
<if test="level != null">
level,
</if>
<if test="productCount != null">
product_count,
</if>
<if test="productUnit != null">
product_unit,
</if>
<if test="navStatus != null">
nav_status,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="sort != null">
sort,
</if>
<if test="icon != null">
icon,
</if>
<if test="keywords != null">
keywords,
</if>
<if test="description != null">
description,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">
#{parentId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="level != null">
#{level,jdbcType=INTEGER},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
</if>
<if test="productUnit != null">
#{productUnit,jdbcType=VARCHAR},
</if>
<if test="navStatus != null">
#{navStatus,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="keywords != null">
#{keywords,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductCategoryExample" resultType="java.lang.Integer">
select count(*) from pms_product_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.level != null">
level = #{record.level,jdbcType=INTEGER},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
</if>
<if test="record.productUnit != null">
product_unit = #{record.productUnit,jdbcType=VARCHAR},
</if>
<if test="record.navStatus != null">
nav_status = #{record.navStatus,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.keywords != null">
keywords = #{record.keywords,jdbcType=VARCHAR},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update pms_product_category
set id = #{record.id,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
level = #{record.level,jdbcType=INTEGER},
product_count = #{record.productCount,jdbcType=INTEGER},
product_unit = #{record.productUnit,jdbcType=VARCHAR},
nav_status = #{record.navStatus,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
icon = #{record.icon,jdbcType=VARCHAR},
keywords = #{record.keywords,jdbcType=VARCHAR},
description = #{record.description,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_category
set id = #{record.id,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
level = #{record.level,jdbcType=INTEGER},
product_count = #{record.productCount,jdbcType=INTEGER},
product_unit = #{record.productUnit,jdbcType=VARCHAR},
nav_status = #{record.navStatus,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
icon = #{record.icon,jdbcType=VARCHAR},
keywords = #{record.keywords,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductCategory">
update pms_product_category
<set>
<if test="parentId != null">
parent_id = #{parentId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="level != null">
level = #{level,jdbcType=INTEGER},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
</if>
<if test="productUnit != null">
product_unit = #{productUnit,jdbcType=VARCHAR},
</if>
<if test="navStatus != null">
nav_status = #{navStatus,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="keywords != null">
keywords = #{keywords,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.PmsProductCategory">
update pms_product_category
set parent_id = #{parentId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
level = #{level,jdbcType=INTEGER},
product_count = #{productCount,jdbcType=INTEGER},
product_unit = #{productUnit,jdbcType=VARCHAR},
nav_status = #{navStatus,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
icon = #{icon,jdbcType=VARCHAR},
keywords = #{keywords,jdbcType=VARCHAR},
description = #{description,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductCategory">
update pms_product_category
set parent_id = #{parentId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
level = #{level,jdbcType=INTEGER},
product_count = #{productCount,jdbcType=INTEGER},
product_unit = #{productUnit,jdbcType=VARCHAR},
nav_status = #{navStatus,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
icon = #{icon,jdbcType=VARCHAR},
keywords = #{keywords,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductCategory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="level" jdbcType="INTEGER" property="level" />
<result column="product_count" jdbcType="INTEGER" property="productCount" />
<result column="product_unit" jdbcType="VARCHAR" property="productUnit" />
<result column="nav_status" jdbcType="INTEGER" property="navStatus" />
<result column="show_status" jdbcType="INTEGER" property="showStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="keywords" jdbcType="VARCHAR" property="keywords" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.macro.mall.model.PmsProductCategory">
<result column="description" jdbcType="LONGVARCHAR" property="description" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, parent_id, name, level, product_count, product_unit, nav_status, show_status,
sort, icon, keywords
</sql>
<sql id="Blob_Column_List">
description
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.macro.mall.model.PmsProductCategoryExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_product_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductCategoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from pms_product_category
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_category
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductCategoryExample">
delete from pms_product_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_category (parent_id, name, level,
product_count, product_unit, nav_status,
show_status, sort, icon,
keywords, description)
values (#{parentId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER},
#{productCount,jdbcType=INTEGER}, #{productUnit,jdbcType=VARCHAR}, #{navStatus,jdbcType=INTEGER},
#{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR},
#{keywords,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductCategory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_category
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="parentId != null">
parent_id,
</if>
<if test="name != null">
name,
</if>
<if test="level != null">
level,
</if>
<if test="productCount != null">
product_count,
</if>
<if test="productUnit != null">
product_unit,
</if>
<if test="navStatus != null">
nav_status,
</if>
<if test="showStatus != null">
show_status,
</if>
<if test="sort != null">
sort,
</if>
<if test="icon != null">
icon,
</if>
<if test="keywords != null">
keywords,
</if>
<if test="description != null">
description,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">
#{parentId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="level != null">
#{level,jdbcType=INTEGER},
</if>
<if test="productCount != null">
#{productCount,jdbcType=INTEGER},
</if>
<if test="productUnit != null">
#{productUnit,jdbcType=VARCHAR},
</if>
<if test="navStatus != null">
#{navStatus,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
#{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="keywords != null">
#{keywords,jdbcType=VARCHAR},
</if>
<if test="description != null">
#{description,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductCategoryExample" resultType="java.lang.Integer">
select count(*) from pms_product_category
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_category
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.level != null">
level = #{record.level,jdbcType=INTEGER},
</if>
<if test="record.productCount != null">
product_count = #{record.productCount,jdbcType=INTEGER},
</if>
<if test="record.productUnit != null">
product_unit = #{record.productUnit,jdbcType=VARCHAR},
</if>
<if test="record.navStatus != null">
nav_status = #{record.navStatus,jdbcType=INTEGER},
</if>
<if test="record.showStatus != null">
show_status = #{record.showStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.keywords != null">
keywords = #{record.keywords,jdbcType=VARCHAR},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update pms_product_category
set id = #{record.id,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
level = #{record.level,jdbcType=INTEGER},
product_count = #{record.productCount,jdbcType=INTEGER},
product_unit = #{record.productUnit,jdbcType=VARCHAR},
nav_status = #{record.navStatus,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
icon = #{record.icon,jdbcType=VARCHAR},
keywords = #{record.keywords,jdbcType=VARCHAR},
description = #{record.description,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_category
set id = #{record.id,jdbcType=BIGINT},
parent_id = #{record.parentId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
level = #{record.level,jdbcType=INTEGER},
product_count = #{record.productCount,jdbcType=INTEGER},
product_unit = #{record.productUnit,jdbcType=VARCHAR},
nav_status = #{record.navStatus,jdbcType=INTEGER},
show_status = #{record.showStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
icon = #{record.icon,jdbcType=VARCHAR},
keywords = #{record.keywords,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductCategory">
update pms_product_category
<set>
<if test="parentId != null">
parent_id = #{parentId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="level != null">
level = #{level,jdbcType=INTEGER},
</if>
<if test="productCount != null">
product_count = #{productCount,jdbcType=INTEGER},
</if>
<if test="productUnit != null">
product_unit = #{productUnit,jdbcType=VARCHAR},
</if>
<if test="navStatus != null">
nav_status = #{navStatus,jdbcType=INTEGER},
</if>
<if test="showStatus != null">
show_status = #{showStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="keywords != null">
keywords = #{keywords,jdbcType=VARCHAR},
</if>
<if test="description != null">
description = #{description,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.macro.mall.model.PmsProductCategory">
update pms_product_category
set parent_id = #{parentId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
level = #{level,jdbcType=INTEGER},
product_count = #{productCount,jdbcType=INTEGER},
product_unit = #{productUnit,jdbcType=VARCHAR},
nav_status = #{navStatus,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
icon = #{icon,jdbcType=VARCHAR},
keywords = #{keywords,jdbcType=VARCHAR},
description = #{description,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductCategory">
update pms_product_category
set parent_id = #{parentId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
level = #{level,jdbcType=INTEGER},
product_count = #{productCount,jdbcType=INTEGER},
product_unit = #{productUnit,jdbcType=VARCHAR},
nav_status = #{navStatus,jdbcType=INTEGER},
show_status = #{showStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
icon = #{icon,jdbcType=VARCHAR},
keywords = #{keywords,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -193,4 +193,388 @@
reduce_price = #{reducePrice,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductFullReduction">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="full_price" jdbcType="DECIMAL" property="fullPrice" />
<result column="reduce_price" jdbcType="DECIMAL" property="reducePrice" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, full_price, reduce_price
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductFullReductionExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_full_reduction
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_full_reduction
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_full_reduction
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductFullReductionExample">
delete from pms_product_full_reduction
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductFullReduction">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_full_reduction (product_id, full_price, reduce_price
)
values (#{productId,jdbcType=BIGINT}, #{fullPrice,jdbcType=DECIMAL}, #{reducePrice,jdbcType=DECIMAL}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductFullReduction">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_full_reduction
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="fullPrice != null">
full_price,
</if>
<if test="reducePrice != null">
reduce_price,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="fullPrice != null">
#{fullPrice,jdbcType=DECIMAL},
</if>
<if test="reducePrice != null">
#{reducePrice,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductFullReductionExample" resultType="java.lang.Integer">
select count(*) from pms_product_full_reduction
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_full_reduction
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.fullPrice != null">
full_price = #{record.fullPrice,jdbcType=DECIMAL},
</if>
<if test="record.reducePrice != null">
reduce_price = #{record.reducePrice,jdbcType=DECIMAL},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_full_reduction
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
full_price = #{record.fullPrice,jdbcType=DECIMAL},
reduce_price = #{record.reducePrice,jdbcType=DECIMAL}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductFullReduction">
update pms_product_full_reduction
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="fullPrice != null">
full_price = #{fullPrice,jdbcType=DECIMAL},
</if>
<if test="reducePrice != null">
reduce_price = #{reducePrice,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductFullReduction">
update pms_product_full_reduction
set product_id = #{productId,jdbcType=BIGINT},
full_price = #{fullPrice,jdbcType=DECIMAL},
reduce_price = #{reducePrice,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductFullReduction">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="full_price" jdbcType="DECIMAL" property="fullPrice" />
<result column="reduce_price" jdbcType="DECIMAL" property="reducePrice" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, full_price, reduce_price
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductFullReductionExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_full_reduction
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_full_reduction
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_full_reduction
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductFullReductionExample">
delete from pms_product_full_reduction
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductFullReduction">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_full_reduction (product_id, full_price, reduce_price
)
values (#{productId,jdbcType=BIGINT}, #{fullPrice,jdbcType=DECIMAL}, #{reducePrice,jdbcType=DECIMAL}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductFullReduction">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_full_reduction
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="fullPrice != null">
full_price,
</if>
<if test="reducePrice != null">
reduce_price,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="fullPrice != null">
#{fullPrice,jdbcType=DECIMAL},
</if>
<if test="reducePrice != null">
#{reducePrice,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductFullReductionExample" resultType="java.lang.Integer">
select count(*) from pms_product_full_reduction
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_full_reduction
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.fullPrice != null">
full_price = #{record.fullPrice,jdbcType=DECIMAL},
</if>
<if test="record.reducePrice != null">
reduce_price = #{record.reducePrice,jdbcType=DECIMAL},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_full_reduction
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
full_price = #{record.fullPrice,jdbcType=DECIMAL},
reduce_price = #{record.reducePrice,jdbcType=DECIMAL}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductFullReduction">
update pms_product_full_reduction
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="fullPrice != null">
full_price = #{fullPrice,jdbcType=DECIMAL},
</if>
<if test="reducePrice != null">
reduce_price = #{reducePrice,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductFullReduction">
update pms_product_full_reduction
set product_id = #{productId,jdbcType=BIGINT},
full_price = #{fullPrice,jdbcType=DECIMAL},
reduce_price = #{reducePrice,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -208,4 +208,418 @@
price = #{price,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductLadder">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="count" jdbcType="INTEGER" property="count" />
<result column="discount" jdbcType="DECIMAL" property="discount" />
<result column="price" jdbcType="DECIMAL" property="price" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, count, discount, price
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductLadderExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_ladder
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_ladder
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_ladder
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductLadderExample">
delete from pms_product_ladder
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductLadder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_ladder (product_id, count, discount,
price)
values (#{productId,jdbcType=BIGINT}, #{count,jdbcType=INTEGER}, #{discount,jdbcType=DECIMAL},
#{price,jdbcType=DECIMAL})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductLadder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_ladder
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="count != null">
count,
</if>
<if test="discount != null">
discount,
</if>
<if test="price != null">
price,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="count != null">
#{count,jdbcType=INTEGER},
</if>
<if test="discount != null">
#{discount,jdbcType=DECIMAL},
</if>
<if test="price != null">
#{price,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductLadderExample" resultType="java.lang.Integer">
select count(*) from pms_product_ladder
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_ladder
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.count != null">
count = #{record.count,jdbcType=INTEGER},
</if>
<if test="record.discount != null">
discount = #{record.discount,jdbcType=DECIMAL},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=DECIMAL},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_ladder
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
count = #{record.count,jdbcType=INTEGER},
discount = #{record.discount,jdbcType=DECIMAL},
price = #{record.price,jdbcType=DECIMAL}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductLadder">
update pms_product_ladder
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="count != null">
count = #{count,jdbcType=INTEGER},
</if>
<if test="discount != null">
discount = #{discount,jdbcType=DECIMAL},
</if>
<if test="price != null">
price = #{price,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductLadder">
update pms_product_ladder
set product_id = #{productId,jdbcType=BIGINT},
count = #{count,jdbcType=INTEGER},
discount = #{discount,jdbcType=DECIMAL},
price = #{price,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductLadder">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="count" jdbcType="INTEGER" property="count" />
<result column="discount" jdbcType="DECIMAL" property="discount" />
<result column="price" jdbcType="DECIMAL" property="price" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, count, discount, price
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductLadderExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_ladder
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_ladder
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_ladder
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductLadderExample">
delete from pms_product_ladder
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductLadder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_ladder (product_id, count, discount,
price)
values (#{productId,jdbcType=BIGINT}, #{count,jdbcType=INTEGER}, #{discount,jdbcType=DECIMAL},
#{price,jdbcType=DECIMAL})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductLadder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_ladder
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="count != null">
count,
</if>
<if test="discount != null">
discount,
</if>
<if test="price != null">
price,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="count != null">
#{count,jdbcType=INTEGER},
</if>
<if test="discount != null">
#{discount,jdbcType=DECIMAL},
</if>
<if test="price != null">
#{price,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductLadderExample" resultType="java.lang.Integer">
select count(*) from pms_product_ladder
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_ladder
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.count != null">
count = #{record.count,jdbcType=INTEGER},
</if>
<if test="record.discount != null">
discount = #{record.discount,jdbcType=DECIMAL},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=DECIMAL},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_ladder
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
count = #{record.count,jdbcType=INTEGER},
discount = #{record.discount,jdbcType=DECIMAL},
price = #{record.price,jdbcType=DECIMAL}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductLadder">
update pms_product_ladder
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="count != null">
count = #{count,jdbcType=INTEGER},
</if>
<if test="discount != null">
discount = #{discount,jdbcType=DECIMAL},
</if>
<if test="price != null">
price = #{price,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductLadder">
update pms_product_ladder
set product_id = #{productId,jdbcType=BIGINT},
count = #{count,jdbcType=INTEGER},
discount = #{discount,jdbcType=DECIMAL},
price = #{price,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -318,4 +318,638 @@
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductOperateLog">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="price_old" jdbcType="DECIMAL" property="priceOld" />
<result column="price_new" jdbcType="DECIMAL" property="priceNew" />
<result column="sale_price_old" jdbcType="DECIMAL" property="salePriceOld" />
<result column="sale_price_new" jdbcType="DECIMAL" property="salePriceNew" />
<result column="gift_point_old" jdbcType="INTEGER" property="giftPointOld" />
<result column="gift_point_new" jdbcType="INTEGER" property="giftPointNew" />
<result column="use_point_limit_old" jdbcType="INTEGER" property="usePointLimitOld" />
<result column="use_point_limit_new" jdbcType="INTEGER" property="usePointLimitNew" />
<result column="operate_man" jdbcType="VARCHAR" property="operateMan" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, price_old, price_new, sale_price_old, sale_price_new, gift_point_old,
gift_point_new, use_point_limit_old, use_point_limit_new, operate_man, create_time
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductOperateLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_operate_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_operate_log
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_operate_log
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductOperateLogExample">
delete from pms_product_operate_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductOperateLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_operate_log (product_id, price_old, price_new,
sale_price_old, sale_price_new, gift_point_old,
gift_point_new, use_point_limit_old, use_point_limit_new,
operate_man, create_time)
values (#{productId,jdbcType=BIGINT}, #{priceOld,jdbcType=DECIMAL}, #{priceNew,jdbcType=DECIMAL},
#{salePriceOld,jdbcType=DECIMAL}, #{salePriceNew,jdbcType=DECIMAL}, #{giftPointOld,jdbcType=INTEGER},
#{giftPointNew,jdbcType=INTEGER}, #{usePointLimitOld,jdbcType=INTEGER}, #{usePointLimitNew,jdbcType=INTEGER},
#{operateMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductOperateLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_operate_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="priceOld != null">
price_old,
</if>
<if test="priceNew != null">
price_new,
</if>
<if test="salePriceOld != null">
sale_price_old,
</if>
<if test="salePriceNew != null">
sale_price_new,
</if>
<if test="giftPointOld != null">
gift_point_old,
</if>
<if test="giftPointNew != null">
gift_point_new,
</if>
<if test="usePointLimitOld != null">
use_point_limit_old,
</if>
<if test="usePointLimitNew != null">
use_point_limit_new,
</if>
<if test="operateMan != null">
operate_man,
</if>
<if test="createTime != null">
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="priceOld != null">
#{priceOld,jdbcType=DECIMAL},
</if>
<if test="priceNew != null">
#{priceNew,jdbcType=DECIMAL},
</if>
<if test="salePriceOld != null">
#{salePriceOld,jdbcType=DECIMAL},
</if>
<if test="salePriceNew != null">
#{salePriceNew,jdbcType=DECIMAL},
</if>
<if test="giftPointOld != null">
#{giftPointOld,jdbcType=INTEGER},
</if>
<if test="giftPointNew != null">
#{giftPointNew,jdbcType=INTEGER},
</if>
<if test="usePointLimitOld != null">
#{usePointLimitOld,jdbcType=INTEGER},
</if>
<if test="usePointLimitNew != null">
#{usePointLimitNew,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
#{operateMan,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductOperateLogExample" resultType="java.lang.Integer">
select count(*) from pms_product_operate_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_operate_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.priceOld != null">
price_old = #{record.priceOld,jdbcType=DECIMAL},
</if>
<if test="record.priceNew != null">
price_new = #{record.priceNew,jdbcType=DECIMAL},
</if>
<if test="record.salePriceOld != null">
sale_price_old = #{record.salePriceOld,jdbcType=DECIMAL},
</if>
<if test="record.salePriceNew != null">
sale_price_new = #{record.salePriceNew,jdbcType=DECIMAL},
</if>
<if test="record.giftPointOld != null">
gift_point_old = #{record.giftPointOld,jdbcType=INTEGER},
</if>
<if test="record.giftPointNew != null">
gift_point_new = #{record.giftPointNew,jdbcType=INTEGER},
</if>
<if test="record.usePointLimitOld != null">
use_point_limit_old = #{record.usePointLimitOld,jdbcType=INTEGER},
</if>
<if test="record.usePointLimitNew != null">
use_point_limit_new = #{record.usePointLimitNew,jdbcType=INTEGER},
</if>
<if test="record.operateMan != null">
operate_man = #{record.operateMan,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_operate_log
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
price_old = #{record.priceOld,jdbcType=DECIMAL},
price_new = #{record.priceNew,jdbcType=DECIMAL},
sale_price_old = #{record.salePriceOld,jdbcType=DECIMAL},
sale_price_new = #{record.salePriceNew,jdbcType=DECIMAL},
gift_point_old = #{record.giftPointOld,jdbcType=INTEGER},
gift_point_new = #{record.giftPointNew,jdbcType=INTEGER},
use_point_limit_old = #{record.usePointLimitOld,jdbcType=INTEGER},
use_point_limit_new = #{record.usePointLimitNew,jdbcType=INTEGER},
operate_man = #{record.operateMan,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductOperateLog">
update pms_product_operate_log
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="priceOld != null">
price_old = #{priceOld,jdbcType=DECIMAL},
</if>
<if test="priceNew != null">
price_new = #{priceNew,jdbcType=DECIMAL},
</if>
<if test="salePriceOld != null">
sale_price_old = #{salePriceOld,jdbcType=DECIMAL},
</if>
<if test="salePriceNew != null">
sale_price_new = #{salePriceNew,jdbcType=DECIMAL},
</if>
<if test="giftPointOld != null">
gift_point_old = #{giftPointOld,jdbcType=INTEGER},
</if>
<if test="giftPointNew != null">
gift_point_new = #{giftPointNew,jdbcType=INTEGER},
</if>
<if test="usePointLimitOld != null">
use_point_limit_old = #{usePointLimitOld,jdbcType=INTEGER},
</if>
<if test="usePointLimitNew != null">
use_point_limit_new = #{usePointLimitNew,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
operate_man = #{operateMan,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductOperateLog">
update pms_product_operate_log
set product_id = #{productId,jdbcType=BIGINT},
price_old = #{priceOld,jdbcType=DECIMAL},
price_new = #{priceNew,jdbcType=DECIMAL},
sale_price_old = #{salePriceOld,jdbcType=DECIMAL},
sale_price_new = #{salePriceNew,jdbcType=DECIMAL},
gift_point_old = #{giftPointOld,jdbcType=INTEGER},
gift_point_new = #{giftPointNew,jdbcType=INTEGER},
use_point_limit_old = #{usePointLimitOld,jdbcType=INTEGER},
use_point_limit_new = #{usePointLimitNew,jdbcType=INTEGER},
operate_man = #{operateMan,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductOperateLog">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="price_old" jdbcType="DECIMAL" property="priceOld" />
<result column="price_new" jdbcType="DECIMAL" property="priceNew" />
<result column="sale_price_old" jdbcType="DECIMAL" property="salePriceOld" />
<result column="sale_price_new" jdbcType="DECIMAL" property="salePriceNew" />
<result column="gift_point_old" jdbcType="INTEGER" property="giftPointOld" />
<result column="gift_point_new" jdbcType="INTEGER" property="giftPointNew" />
<result column="use_point_limit_old" jdbcType="INTEGER" property="usePointLimitOld" />
<result column="use_point_limit_new" jdbcType="INTEGER" property="usePointLimitNew" />
<result column="operate_man" jdbcType="VARCHAR" property="operateMan" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, price_old, price_new, sale_price_old, sale_price_new, gift_point_old,
gift_point_new, use_point_limit_old, use_point_limit_new, operate_man, create_time
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductOperateLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_operate_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_operate_log
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_operate_log
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductOperateLogExample">
delete from pms_product_operate_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductOperateLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_operate_log (product_id, price_old, price_new,
sale_price_old, sale_price_new, gift_point_old,
gift_point_new, use_point_limit_old, use_point_limit_new,
operate_man, create_time)
values (#{productId,jdbcType=BIGINT}, #{priceOld,jdbcType=DECIMAL}, #{priceNew,jdbcType=DECIMAL},
#{salePriceOld,jdbcType=DECIMAL}, #{salePriceNew,jdbcType=DECIMAL}, #{giftPointOld,jdbcType=INTEGER},
#{giftPointNew,jdbcType=INTEGER}, #{usePointLimitOld,jdbcType=INTEGER}, #{usePointLimitNew,jdbcType=INTEGER},
#{operateMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductOperateLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_operate_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="priceOld != null">
price_old,
</if>
<if test="priceNew != null">
price_new,
</if>
<if test="salePriceOld != null">
sale_price_old,
</if>
<if test="salePriceNew != null">
sale_price_new,
</if>
<if test="giftPointOld != null">
gift_point_old,
</if>
<if test="giftPointNew != null">
gift_point_new,
</if>
<if test="usePointLimitOld != null">
use_point_limit_old,
</if>
<if test="usePointLimitNew != null">
use_point_limit_new,
</if>
<if test="operateMan != null">
operate_man,
</if>
<if test="createTime != null">
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="priceOld != null">
#{priceOld,jdbcType=DECIMAL},
</if>
<if test="priceNew != null">
#{priceNew,jdbcType=DECIMAL},
</if>
<if test="salePriceOld != null">
#{salePriceOld,jdbcType=DECIMAL},
</if>
<if test="salePriceNew != null">
#{salePriceNew,jdbcType=DECIMAL},
</if>
<if test="giftPointOld != null">
#{giftPointOld,jdbcType=INTEGER},
</if>
<if test="giftPointNew != null">
#{giftPointNew,jdbcType=INTEGER},
</if>
<if test="usePointLimitOld != null">
#{usePointLimitOld,jdbcType=INTEGER},
</if>
<if test="usePointLimitNew != null">
#{usePointLimitNew,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
#{operateMan,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductOperateLogExample" resultType="java.lang.Integer">
select count(*) from pms_product_operate_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_operate_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.priceOld != null">
price_old = #{record.priceOld,jdbcType=DECIMAL},
</if>
<if test="record.priceNew != null">
price_new = #{record.priceNew,jdbcType=DECIMAL},
</if>
<if test="record.salePriceOld != null">
sale_price_old = #{record.salePriceOld,jdbcType=DECIMAL},
</if>
<if test="record.salePriceNew != null">
sale_price_new = #{record.salePriceNew,jdbcType=DECIMAL},
</if>
<if test="record.giftPointOld != null">
gift_point_old = #{record.giftPointOld,jdbcType=INTEGER},
</if>
<if test="record.giftPointNew != null">
gift_point_new = #{record.giftPointNew,jdbcType=INTEGER},
</if>
<if test="record.usePointLimitOld != null">
use_point_limit_old = #{record.usePointLimitOld,jdbcType=INTEGER},
</if>
<if test="record.usePointLimitNew != null">
use_point_limit_new = #{record.usePointLimitNew,jdbcType=INTEGER},
</if>
<if test="record.operateMan != null">
operate_man = #{record.operateMan,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_operate_log
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
price_old = #{record.priceOld,jdbcType=DECIMAL},
price_new = #{record.priceNew,jdbcType=DECIMAL},
sale_price_old = #{record.salePriceOld,jdbcType=DECIMAL},
sale_price_new = #{record.salePriceNew,jdbcType=DECIMAL},
gift_point_old = #{record.giftPointOld,jdbcType=INTEGER},
gift_point_new = #{record.giftPointNew,jdbcType=INTEGER},
use_point_limit_old = #{record.usePointLimitOld,jdbcType=INTEGER},
use_point_limit_new = #{record.usePointLimitNew,jdbcType=INTEGER},
operate_man = #{record.operateMan,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductOperateLog">
update pms_product_operate_log
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="priceOld != null">
price_old = #{priceOld,jdbcType=DECIMAL},
</if>
<if test="priceNew != null">
price_new = #{priceNew,jdbcType=DECIMAL},
</if>
<if test="salePriceOld != null">
sale_price_old = #{salePriceOld,jdbcType=DECIMAL},
</if>
<if test="salePriceNew != null">
sale_price_new = #{salePriceNew,jdbcType=DECIMAL},
</if>
<if test="giftPointOld != null">
gift_point_old = #{giftPointOld,jdbcType=INTEGER},
</if>
<if test="giftPointNew != null">
gift_point_new = #{giftPointNew,jdbcType=INTEGER},
</if>
<if test="usePointLimitOld != null">
use_point_limit_old = #{usePointLimitOld,jdbcType=INTEGER},
</if>
<if test="usePointLimitNew != null">
use_point_limit_new = #{usePointLimitNew,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
operate_man = #{operateMan,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductOperateLog">
update pms_product_operate_log
set product_id = #{productId,jdbcType=BIGINT},
price_old = #{priceOld,jdbcType=DECIMAL},
price_new = #{priceNew,jdbcType=DECIMAL},
sale_price_old = #{salePriceOld,jdbcType=DECIMAL},
sale_price_new = #{salePriceNew,jdbcType=DECIMAL},
gift_point_old = #{giftPointOld,jdbcType=INTEGER},
gift_point_new = #{giftPointNew,jdbcType=INTEGER},
use_point_limit_old = #{usePointLimitOld,jdbcType=INTEGER},
use_point_limit_new = #{usePointLimitNew,jdbcType=INTEGER},
operate_man = #{operateMan,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -223,4 +223,448 @@
detail = #{detail,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductVertifyRecord">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="vertify_man" jdbcType="VARCHAR" property="vertifyMan" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="detail" jdbcType="VARCHAR" property="detail" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, create_time, vertify_man, status, detail
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductVertifyRecordExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_vertify_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_vertify_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_vertify_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductVertifyRecordExample">
delete from pms_product_vertify_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductVertifyRecord">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_vertify_record (product_id, create_time, vertify_man,
status, detail)
values (#{productId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{vertifyMan,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{detail,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductVertifyRecord">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_vertify_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="vertifyMan != null">
vertify_man,
</if>
<if test="status != null">
status,
</if>
<if test="detail != null">
detail,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="vertifyMan != null">
#{vertifyMan,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="detail != null">
#{detail,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductVertifyRecordExample" resultType="java.lang.Integer">
select count(*) from pms_product_vertify_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_vertify_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.vertifyMan != null">
vertify_man = #{record.vertifyMan,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.detail != null">
detail = #{record.detail,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_vertify_record
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
vertify_man = #{record.vertifyMan,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
detail = #{record.detail,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductVertifyRecord">
update pms_product_vertify_record
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="vertifyMan != null">
vertify_man = #{vertifyMan,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="detail != null">
detail = #{detail,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductVertifyRecord">
update pms_product_vertify_record
set product_id = #{productId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
vertify_man = #{vertifyMan,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
detail = #{detail,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsProductVertifyRecord">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="vertify_man" jdbcType="VARCHAR" property="vertifyMan" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="detail" jdbcType="VARCHAR" property="detail" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, create_time, vertify_man, status, detail
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsProductVertifyRecordExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_product_vertify_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_product_vertify_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_product_vertify_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsProductVertifyRecordExample">
delete from pms_product_vertify_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsProductVertifyRecord">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_vertify_record (product_id, create_time, vertify_man,
status, detail)
values (#{productId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{vertifyMan,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{detail,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsProductVertifyRecord">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_product_vertify_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="vertifyMan != null">
vertify_man,
</if>
<if test="status != null">
status,
</if>
<if test="detail != null">
detail,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="vertifyMan != null">
#{vertifyMan,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="detail != null">
#{detail,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsProductVertifyRecordExample" resultType="java.lang.Integer">
select count(*) from pms_product_vertify_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_product_vertify_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.vertifyMan != null">
vertify_man = #{record.vertifyMan,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.detail != null">
detail = #{record.detail,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_product_vertify_record
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
vertify_man = #{record.vertifyMan,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
detail = #{record.detail,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsProductVertifyRecord">
update pms_product_vertify_record
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="vertifyMan != null">
vertify_man = #{vertifyMan,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="detail != null">
detail = #{detail,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsProductVertifyRecord">
update pms_product_vertify_record
set product_id = #{productId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
vertify_man = #{vertifyMan,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
detail = #{detail,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -302,4 +302,606 @@
sale = #{sale,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsSkuStock">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="sku_code" jdbcType="VARCHAR" property="skuCode" />
<result column="price" jdbcType="DECIMAL" property="price" />
<result column="stock" jdbcType="INTEGER" property="stock" />
<result column="low_stock" jdbcType="INTEGER" property="lowStock" />
<result column="sp1" jdbcType="VARCHAR" property="sp1" />
<result column="sp2" jdbcType="VARCHAR" property="sp2" />
<result column="sp3" jdbcType="VARCHAR" property="sp3" />
<result column="pic" jdbcType="VARCHAR" property="pic" />
<result column="sale" jdbcType="INTEGER" property="sale" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, sku_code, price, stock, low_stock, sp1, sp2, sp3, pic, sale
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsSkuStockExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_sku_stock
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_sku_stock
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_sku_stock
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsSkuStockExample">
delete from pms_sku_stock
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsSkuStock">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_sku_stock (product_id, sku_code, price,
stock, low_stock, sp1,
sp2, sp3, pic, sale
)
values (#{productId,jdbcType=BIGINT}, #{skuCode,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL},
#{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, #{sp1,jdbcType=VARCHAR},
#{sp2,jdbcType=VARCHAR}, #{sp3,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{sale,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsSkuStock">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_sku_stock
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="skuCode != null">
sku_code,
</if>
<if test="price != null">
price,
</if>
<if test="stock != null">
stock,
</if>
<if test="lowStock != null">
low_stock,
</if>
<if test="sp1 != null">
sp1,
</if>
<if test="sp2 != null">
sp2,
</if>
<if test="sp3 != null">
sp3,
</if>
<if test="pic != null">
pic,
</if>
<if test="sale != null">
sale,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="skuCode != null">
#{skuCode,jdbcType=VARCHAR},
</if>
<if test="price != null">
#{price,jdbcType=DECIMAL},
</if>
<if test="stock != null">
#{stock,jdbcType=INTEGER},
</if>
<if test="lowStock != null">
#{lowStock,jdbcType=INTEGER},
</if>
<if test="sp1 != null">
#{sp1,jdbcType=VARCHAR},
</if>
<if test="sp2 != null">
#{sp2,jdbcType=VARCHAR},
</if>
<if test="sp3 != null">
#{sp3,jdbcType=VARCHAR},
</if>
<if test="pic != null">
#{pic,jdbcType=VARCHAR},
</if>
<if test="sale != null">
#{sale,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsSkuStockExample" resultType="java.lang.Integer">
select count(*) from pms_sku_stock
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_sku_stock
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.skuCode != null">
sku_code = #{record.skuCode,jdbcType=VARCHAR},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=DECIMAL},
</if>
<if test="record.stock != null">
stock = #{record.stock,jdbcType=INTEGER},
</if>
<if test="record.lowStock != null">
low_stock = #{record.lowStock,jdbcType=INTEGER},
</if>
<if test="record.sp1 != null">
sp1 = #{record.sp1,jdbcType=VARCHAR},
</if>
<if test="record.sp2 != null">
sp2 = #{record.sp2,jdbcType=VARCHAR},
</if>
<if test="record.sp3 != null">
sp3 = #{record.sp3,jdbcType=VARCHAR},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARCHAR},
</if>
<if test="record.sale != null">
sale = #{record.sale,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_sku_stock
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
sku_code = #{record.skuCode,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
stock = #{record.stock,jdbcType=INTEGER},
low_stock = #{record.lowStock,jdbcType=INTEGER},
sp1 = #{record.sp1,jdbcType=VARCHAR},
sp2 = #{record.sp2,jdbcType=VARCHAR},
sp3 = #{record.sp3,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
sale = #{record.sale,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsSkuStock">
update pms_sku_stock
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="skuCode != null">
sku_code = #{skuCode,jdbcType=VARCHAR},
</if>
<if test="price != null">
price = #{price,jdbcType=DECIMAL},
</if>
<if test="stock != null">
stock = #{stock,jdbcType=INTEGER},
</if>
<if test="lowStock != null">
low_stock = #{lowStock,jdbcType=INTEGER},
</if>
<if test="sp1 != null">
sp1 = #{sp1,jdbcType=VARCHAR},
</if>
<if test="sp2 != null">
sp2 = #{sp2,jdbcType=VARCHAR},
</if>
<if test="sp3 != null">
sp3 = #{sp3,jdbcType=VARCHAR},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARCHAR},
</if>
<if test="sale != null">
sale = #{sale,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsSkuStock">
update pms_sku_stock
set product_id = #{productId,jdbcType=BIGINT},
sku_code = #{skuCode,jdbcType=VARCHAR},
price = #{price,jdbcType=DECIMAL},
stock = #{stock,jdbcType=INTEGER},
low_stock = #{lowStock,jdbcType=INTEGER},
sp1 = #{sp1,jdbcType=VARCHAR},
sp2 = #{sp2,jdbcType=VARCHAR},
sp3 = #{sp3,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
sale = #{sale,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.PmsSkuStock">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="sku_code" jdbcType="VARCHAR" property="skuCode" />
<result column="price" jdbcType="DECIMAL" property="price" />
<result column="stock" jdbcType="INTEGER" property="stock" />
<result column="low_stock" jdbcType="INTEGER" property="lowStock" />
<result column="sp1" jdbcType="VARCHAR" property="sp1" />
<result column="sp2" jdbcType="VARCHAR" property="sp2" />
<result column="sp3" jdbcType="VARCHAR" property="sp3" />
<result column="pic" jdbcType="VARCHAR" property="pic" />
<result column="sale" jdbcType="INTEGER" property="sale" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, sku_code, price, stock, low_stock, sp1, sp2, sp3, pic, sale
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.PmsSkuStockExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from pms_sku_stock
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from pms_sku_stock
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from pms_sku_stock
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.PmsSkuStockExample">
delete from pms_sku_stock
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.PmsSkuStock">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_sku_stock (product_id, sku_code, price,
stock, low_stock, sp1,
sp2, sp3, pic, sale
)
values (#{productId,jdbcType=BIGINT}, #{skuCode,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL},
#{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, #{sp1,jdbcType=VARCHAR},
#{sp2,jdbcType=VARCHAR}, #{sp3,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{sale,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.PmsSkuStock">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into pms_sku_stock
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="skuCode != null">
sku_code,
</if>
<if test="price != null">
price,
</if>
<if test="stock != null">
stock,
</if>
<if test="lowStock != null">
low_stock,
</if>
<if test="sp1 != null">
sp1,
</if>
<if test="sp2 != null">
sp2,
</if>
<if test="sp3 != null">
sp3,
</if>
<if test="pic != null">
pic,
</if>
<if test="sale != null">
sale,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="skuCode != null">
#{skuCode,jdbcType=VARCHAR},
</if>
<if test="price != null">
#{price,jdbcType=DECIMAL},
</if>
<if test="stock != null">
#{stock,jdbcType=INTEGER},
</if>
<if test="lowStock != null">
#{lowStock,jdbcType=INTEGER},
</if>
<if test="sp1 != null">
#{sp1,jdbcType=VARCHAR},
</if>
<if test="sp2 != null">
#{sp2,jdbcType=VARCHAR},
</if>
<if test="sp3 != null">
#{sp3,jdbcType=VARCHAR},
</if>
<if test="pic != null">
#{pic,jdbcType=VARCHAR},
</if>
<if test="sale != null">
#{sale,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.PmsSkuStockExample" resultType="java.lang.Integer">
select count(*) from pms_sku_stock
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update pms_sku_stock
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.skuCode != null">
sku_code = #{record.skuCode,jdbcType=VARCHAR},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=DECIMAL},
</if>
<if test="record.stock != null">
stock = #{record.stock,jdbcType=INTEGER},
</if>
<if test="record.lowStock != null">
low_stock = #{record.lowStock,jdbcType=INTEGER},
</if>
<if test="record.sp1 != null">
sp1 = #{record.sp1,jdbcType=VARCHAR},
</if>
<if test="record.sp2 != null">
sp2 = #{record.sp2,jdbcType=VARCHAR},
</if>
<if test="record.sp3 != null">
sp3 = #{record.sp3,jdbcType=VARCHAR},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARCHAR},
</if>
<if test="record.sale != null">
sale = #{record.sale,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update pms_sku_stock
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
sku_code = #{record.skuCode,jdbcType=VARCHAR},
price = #{record.price,jdbcType=DECIMAL},
stock = #{record.stock,jdbcType=INTEGER},
low_stock = #{record.lowStock,jdbcType=INTEGER},
sp1 = #{record.sp1,jdbcType=VARCHAR},
sp2 = #{record.sp2,jdbcType=VARCHAR},
sp3 = #{record.sp3,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
sale = #{record.sale,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.PmsSkuStock">
update pms_sku_stock
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="skuCode != null">
sku_code = #{skuCode,jdbcType=VARCHAR},
</if>
<if test="price != null">
price = #{price,jdbcType=DECIMAL},
</if>
<if test="stock != null">
stock = #{stock,jdbcType=INTEGER},
</if>
<if test="lowStock != null">
low_stock = #{lowStock,jdbcType=INTEGER},
</if>
<if test="sp1 != null">
sp1 = #{sp1,jdbcType=VARCHAR},
</if>
<if test="sp2 != null">
sp2 = #{sp2,jdbcType=VARCHAR},
</if>
<if test="sp3 != null">
sp3 = #{sp3,jdbcType=VARCHAR},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARCHAR},
</if>
<if test="sale != null">
sale = #{sale,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.PmsSkuStock">
update pms_sku_stock
set product_id = #{productId,jdbcType=BIGINT},
sku_code = #{skuCode,jdbcType=VARCHAR},
price = #{price,jdbcType=DECIMAL},
stock = #{stock,jdbcType=INTEGER},
low_stock = #{lowStock,jdbcType=INTEGER},
sp1 = #{sp1,jdbcType=VARCHAR},
sp2 = #{sp2,jdbcType=VARCHAR},
sp3 = #{sp3,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
sale = #{sale,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -288,4 +288,578 @@
order_id = #{orderId,jdbcType=CHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsCouponHistory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="coupon_id" jdbcType="BIGINT" property="couponId" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="coupon_code" jdbcType="VARCHAR" property="couponCode" />
<result column="member_nickname" jdbcType="VARCHAR" property="memberNickname" />
<result column="get_type" jdbcType="INTEGER" property="getType" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="use_status" jdbcType="INTEGER" property="useStatus" />
<result column="use_time" jdbcType="TIMESTAMP" property="useTime" />
<result column="order_id" jdbcType="CHAR" property="orderId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, coupon_id, member_id, coupon_code, member_nickname, get_type, create_time, use_status,
use_time, order_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_coupon_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_coupon_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_coupon_history
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsCouponHistoryExample">
delete from sms_coupon_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsCouponHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_history (coupon_id, member_id, coupon_code,
member_nickname, get_type, create_time,
use_status, use_time, order_id
)
values (#{couponId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{couponCode,jdbcType=VARCHAR},
#{memberNickname,jdbcType=VARCHAR}, #{getType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{useStatus,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, #{orderId,jdbcType=CHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCouponHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="couponId != null">
coupon_id,
</if>
<if test="memberId != null">
member_id,
</if>
<if test="couponCode != null">
coupon_code,
</if>
<if test="memberNickname != null">
member_nickname,
</if>
<if test="getType != null">
get_type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="useStatus != null">
use_status,
</if>
<if test="useTime != null">
use_time,
</if>
<if test="orderId != null">
order_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="couponId != null">
#{couponId,jdbcType=BIGINT},
</if>
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="couponCode != null">
#{couponCode,jdbcType=VARCHAR},
</if>
<if test="memberNickname != null">
#{memberNickname,jdbcType=VARCHAR},
</if>
<if test="getType != null">
#{getType,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="useStatus != null">
#{useStatus,jdbcType=INTEGER},
</if>
<if test="useTime != null">
#{useTime,jdbcType=TIMESTAMP},
</if>
<if test="orderId != null">
#{orderId,jdbcType=CHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsCouponHistoryExample" resultType="java.lang.Integer">
select count(*) from sms_coupon_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_coupon_history
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.couponId != null">
coupon_id = #{record.couponId,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.couponCode != null">
coupon_code = #{record.couponCode,jdbcType=VARCHAR},
</if>
<if test="record.memberNickname != null">
member_nickname = #{record.memberNickname,jdbcType=VARCHAR},
</if>
<if test="record.getType != null">
get_type = #{record.getType,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.useStatus != null">
use_status = #{record.useStatus,jdbcType=INTEGER},
</if>
<if test="record.useTime != null">
use_time = #{record.useTime,jdbcType=TIMESTAMP},
</if>
<if test="record.orderId != null">
order_id = #{record.orderId,jdbcType=CHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_coupon_history
set id = #{record.id,jdbcType=BIGINT},
coupon_id = #{record.couponId,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
coupon_code = #{record.couponCode,jdbcType=VARCHAR},
member_nickname = #{record.memberNickname,jdbcType=VARCHAR},
get_type = #{record.getType,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
use_status = #{record.useStatus,jdbcType=INTEGER},
use_time = #{record.useTime,jdbcType=TIMESTAMP},
order_id = #{record.orderId,jdbcType=CHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsCouponHistory">
update sms_coupon_history
<set>
<if test="couponId != null">
coupon_id = #{couponId,jdbcType=BIGINT},
</if>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="couponCode != null">
coupon_code = #{couponCode,jdbcType=VARCHAR},
</if>
<if test="memberNickname != null">
member_nickname = #{memberNickname,jdbcType=VARCHAR},
</if>
<if test="getType != null">
get_type = #{getType,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="useStatus != null">
use_status = #{useStatus,jdbcType=INTEGER},
</if>
<if test="useTime != null">
use_time = #{useTime,jdbcType=TIMESTAMP},
</if>
<if test="orderId != null">
order_id = #{orderId,jdbcType=CHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsCouponHistory">
update sms_coupon_history
set coupon_id = #{couponId,jdbcType=BIGINT},
member_id = #{memberId,jdbcType=BIGINT},
coupon_code = #{couponCode,jdbcType=VARCHAR},
member_nickname = #{memberNickname,jdbcType=VARCHAR},
get_type = #{getType,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
use_status = #{useStatus,jdbcType=INTEGER},
use_time = #{useTime,jdbcType=TIMESTAMP},
order_id = #{orderId,jdbcType=CHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsCouponHistory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="coupon_id" jdbcType="BIGINT" property="couponId" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="coupon_code" jdbcType="VARCHAR" property="couponCode" />
<result column="member_nickname" jdbcType="VARCHAR" property="memberNickname" />
<result column="get_type" jdbcType="INTEGER" property="getType" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="use_status" jdbcType="INTEGER" property="useStatus" />
<result column="use_time" jdbcType="TIMESTAMP" property="useTime" />
<result column="order_id" jdbcType="CHAR" property="orderId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, coupon_id, member_id, coupon_code, member_nickname, get_type, create_time, use_status,
use_time, order_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_coupon_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_coupon_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_coupon_history
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsCouponHistoryExample">
delete from sms_coupon_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsCouponHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_history (coupon_id, member_id, coupon_code,
member_nickname, get_type, create_time,
use_status, use_time, order_id
)
values (#{couponId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{couponCode,jdbcType=VARCHAR},
#{memberNickname,jdbcType=VARCHAR}, #{getType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{useStatus,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, #{orderId,jdbcType=CHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCouponHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="couponId != null">
coupon_id,
</if>
<if test="memberId != null">
member_id,
</if>
<if test="couponCode != null">
coupon_code,
</if>
<if test="memberNickname != null">
member_nickname,
</if>
<if test="getType != null">
get_type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="useStatus != null">
use_status,
</if>
<if test="useTime != null">
use_time,
</if>
<if test="orderId != null">
order_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="couponId != null">
#{couponId,jdbcType=BIGINT},
</if>
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="couponCode != null">
#{couponCode,jdbcType=VARCHAR},
</if>
<if test="memberNickname != null">
#{memberNickname,jdbcType=VARCHAR},
</if>
<if test="getType != null">
#{getType,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="useStatus != null">
#{useStatus,jdbcType=INTEGER},
</if>
<if test="useTime != null">
#{useTime,jdbcType=TIMESTAMP},
</if>
<if test="orderId != null">
#{orderId,jdbcType=CHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsCouponHistoryExample" resultType="java.lang.Integer">
select count(*) from sms_coupon_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_coupon_history
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.couponId != null">
coupon_id = #{record.couponId,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.couponCode != null">
coupon_code = #{record.couponCode,jdbcType=VARCHAR},
</if>
<if test="record.memberNickname != null">
member_nickname = #{record.memberNickname,jdbcType=VARCHAR},
</if>
<if test="record.getType != null">
get_type = #{record.getType,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.useStatus != null">
use_status = #{record.useStatus,jdbcType=INTEGER},
</if>
<if test="record.useTime != null">
use_time = #{record.useTime,jdbcType=TIMESTAMP},
</if>
<if test="record.orderId != null">
order_id = #{record.orderId,jdbcType=CHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_coupon_history
set id = #{record.id,jdbcType=BIGINT},
coupon_id = #{record.couponId,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
coupon_code = #{record.couponCode,jdbcType=VARCHAR},
member_nickname = #{record.memberNickname,jdbcType=VARCHAR},
get_type = #{record.getType,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
use_status = #{record.useStatus,jdbcType=INTEGER},
use_time = #{record.useTime,jdbcType=TIMESTAMP},
order_id = #{record.orderId,jdbcType=CHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsCouponHistory">
update sms_coupon_history
<set>
<if test="couponId != null">
coupon_id = #{couponId,jdbcType=BIGINT},
</if>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="couponCode != null">
coupon_code = #{couponCode,jdbcType=VARCHAR},
</if>
<if test="memberNickname != null">
member_nickname = #{memberNickname,jdbcType=VARCHAR},
</if>
<if test="getType != null">
get_type = #{getType,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="useStatus != null">
use_status = #{useStatus,jdbcType=INTEGER},
</if>
<if test="useTime != null">
use_time = #{useTime,jdbcType=TIMESTAMP},
</if>
<if test="orderId != null">
order_id = #{orderId,jdbcType=CHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsCouponHistory">
update sms_coupon_history
set coupon_id = #{couponId,jdbcType=BIGINT},
member_id = #{memberId,jdbcType=BIGINT},
coupon_code = #{couponCode,jdbcType=VARCHAR},
member_nickname = #{memberNickname,jdbcType=VARCHAR},
get_type = #{getType,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
use_status = #{useStatus,jdbcType=INTEGER},
use_time = #{useTime,jdbcType=TIMESTAMP},
order_id = #{orderId,jdbcType=CHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -397,4 +397,796 @@
member_level = #{memberLevel,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsCoupon">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="platform" jdbcType="VARCHAR" property="platform" />
<result column="count" jdbcType="INTEGER" property="count" />
<result column="amount" jdbcType="DECIMAL" property="amount" />
<result column="per_limit" jdbcType="INTEGER" property="perLimit" />
<result column="min_point" jdbcType="DECIMAL" property="minPoint" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="use_type" jdbcType="INTEGER" property="useType" />
<result column="note" jdbcType="VARCHAR" property="note" />
<result column="publish_count" jdbcType="INTEGER" property="publishCount" />
<result column="use_count" jdbcType="INTEGER" property="useCount" />
<result column="enable_time" jdbcType="TIMESTAMP" property="enableTime" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="member_level" jdbcType="INTEGER" property="memberLevel" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, type, name, platform, count, amount, per_limit, min_point, start_time, end_time,
use_type, note, publish_count, use_count, enable_time, code, member_level
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_coupon
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_coupon
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_coupon
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsCouponExample">
delete from sms_coupon
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsCoupon">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon (type, name, platform,
count, amount, per_limit,
min_point, start_time, end_time,
use_type, note, publish_count,
use_count, enable_time, code,
member_level)
values (#{type,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR},
#{count,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, #{perLimit,jdbcType=INTEGER},
#{minPoint,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{useType,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}, #{publishCount,jdbcType=INTEGER},
#{useCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP}, #{code,jdbcType=VARCHAR},
#{memberLevel,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCoupon">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="type != null">
type,
</if>
<if test="name != null">
name,
</if>
<if test="platform != null">
platform,
</if>
<if test="count != null">
count,
</if>
<if test="amount != null">
amount,
</if>
<if test="perLimit != null">
per_limit,
</if>
<if test="minPoint != null">
min_point,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="useType != null">
use_type,
</if>
<if test="note != null">
note,
</if>
<if test="publishCount != null">
publish_count,
</if>
<if test="useCount != null">
use_count,
</if>
<if test="enableTime != null">
enable_time,
</if>
<if test="code != null">
code,
</if>
<if test="memberLevel != null">
member_level,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="platform != null">
#{platform,jdbcType=VARCHAR},
</if>
<if test="count != null">
#{count,jdbcType=INTEGER},
</if>
<if test="amount != null">
#{amount,jdbcType=DECIMAL},
</if>
<if test="perLimit != null">
#{perLimit,jdbcType=INTEGER},
</if>
<if test="minPoint != null">
#{minPoint,jdbcType=DECIMAL},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="useType != null">
#{useType,jdbcType=INTEGER},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
<if test="publishCount != null">
#{publishCount,jdbcType=INTEGER},
</if>
<if test="useCount != null">
#{useCount,jdbcType=INTEGER},
</if>
<if test="enableTime != null">
#{enableTime,jdbcType=TIMESTAMP},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="memberLevel != null">
#{memberLevel,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsCouponExample" resultType="java.lang.Integer">
select count(*) from sms_coupon
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_coupon
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.platform != null">
platform = #{record.platform,jdbcType=VARCHAR},
</if>
<if test="record.count != null">
count = #{record.count,jdbcType=INTEGER},
</if>
<if test="record.amount != null">
amount = #{record.amount,jdbcType=DECIMAL},
</if>
<if test="record.perLimit != null">
per_limit = #{record.perLimit,jdbcType=INTEGER},
</if>
<if test="record.minPoint != null">
min_point = #{record.minPoint,jdbcType=DECIMAL},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if test="record.useType != null">
use_type = #{record.useType,jdbcType=INTEGER},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
<if test="record.publishCount != null">
publish_count = #{record.publishCount,jdbcType=INTEGER},
</if>
<if test="record.useCount != null">
use_count = #{record.useCount,jdbcType=INTEGER},
</if>
<if test="record.enableTime != null">
enable_time = #{record.enableTime,jdbcType=TIMESTAMP},
</if>
<if test="record.code != null">
code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.memberLevel != null">
member_level = #{record.memberLevel,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_coupon
set id = #{record.id,jdbcType=BIGINT},
type = #{record.type,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
platform = #{record.platform,jdbcType=VARCHAR},
count = #{record.count,jdbcType=INTEGER},
amount = #{record.amount,jdbcType=DECIMAL},
per_limit = #{record.perLimit,jdbcType=INTEGER},
min_point = #{record.minPoint,jdbcType=DECIMAL},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
use_type = #{record.useType,jdbcType=INTEGER},
note = #{record.note,jdbcType=VARCHAR},
publish_count = #{record.publishCount,jdbcType=INTEGER},
use_count = #{record.useCount,jdbcType=INTEGER},
enable_time = #{record.enableTime,jdbcType=TIMESTAMP},
code = #{record.code,jdbcType=VARCHAR},
member_level = #{record.memberLevel,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsCoupon">
update sms_coupon
<set>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="platform != null">
platform = #{platform,jdbcType=VARCHAR},
</if>
<if test="count != null">
count = #{count,jdbcType=INTEGER},
</if>
<if test="amount != null">
amount = #{amount,jdbcType=DECIMAL},
</if>
<if test="perLimit != null">
per_limit = #{perLimit,jdbcType=INTEGER},
</if>
<if test="minPoint != null">
min_point = #{minPoint,jdbcType=DECIMAL},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="useType != null">
use_type = #{useType,jdbcType=INTEGER},
</if>
<if test="note != null">
note = #{note,jdbcType=VARCHAR},
</if>
<if test="publishCount != null">
publish_count = #{publishCount,jdbcType=INTEGER},
</if>
<if test="useCount != null">
use_count = #{useCount,jdbcType=INTEGER},
</if>
<if test="enableTime != null">
enable_time = #{enableTime,jdbcType=TIMESTAMP},
</if>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="memberLevel != null">
member_level = #{memberLevel,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsCoupon">
update sms_coupon
set type = #{type,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
platform = #{platform,jdbcType=VARCHAR},
count = #{count,jdbcType=INTEGER},
amount = #{amount,jdbcType=DECIMAL},
per_limit = #{perLimit,jdbcType=INTEGER},
min_point = #{minPoint,jdbcType=DECIMAL},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
use_type = #{useType,jdbcType=INTEGER},
note = #{note,jdbcType=VARCHAR},
publish_count = #{publishCount,jdbcType=INTEGER},
use_count = #{useCount,jdbcType=INTEGER},
enable_time = #{enableTime,jdbcType=TIMESTAMP},
code = #{code,jdbcType=VARCHAR},
member_level = #{memberLevel,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsCoupon">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="platform" jdbcType="VARCHAR" property="platform" />
<result column="count" jdbcType="INTEGER" property="count" />
<result column="amount" jdbcType="DECIMAL" property="amount" />
<result column="per_limit" jdbcType="INTEGER" property="perLimit" />
<result column="min_point" jdbcType="DECIMAL" property="minPoint" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="use_type" jdbcType="INTEGER" property="useType" />
<result column="note" jdbcType="VARCHAR" property="note" />
<result column="publish_count" jdbcType="INTEGER" property="publishCount" />
<result column="use_count" jdbcType="INTEGER" property="useCount" />
<result column="enable_time" jdbcType="TIMESTAMP" property="enableTime" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="member_level" jdbcType="INTEGER" property="memberLevel" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, type, name, platform, count, amount, per_limit, min_point, start_time, end_time,
use_type, note, publish_count, use_count, enable_time, code, member_level
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_coupon
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_coupon
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_coupon
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsCouponExample">
delete from sms_coupon
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsCoupon">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon (type, name, platform,
count, amount, per_limit,
min_point, start_time, end_time,
use_type, note, publish_count,
use_count, enable_time, code,
member_level)
values (#{type,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR},
#{count,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, #{perLimit,jdbcType=INTEGER},
#{minPoint,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{useType,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}, #{publishCount,jdbcType=INTEGER},
#{useCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP}, #{code,jdbcType=VARCHAR},
#{memberLevel,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCoupon">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="type != null">
type,
</if>
<if test="name != null">
name,
</if>
<if test="platform != null">
platform,
</if>
<if test="count != null">
count,
</if>
<if test="amount != null">
amount,
</if>
<if test="perLimit != null">
per_limit,
</if>
<if test="minPoint != null">
min_point,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="useType != null">
use_type,
</if>
<if test="note != null">
note,
</if>
<if test="publishCount != null">
publish_count,
</if>
<if test="useCount != null">
use_count,
</if>
<if test="enableTime != null">
enable_time,
</if>
<if test="code != null">
code,
</if>
<if test="memberLevel != null">
member_level,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="platform != null">
#{platform,jdbcType=VARCHAR},
</if>
<if test="count != null">
#{count,jdbcType=INTEGER},
</if>
<if test="amount != null">
#{amount,jdbcType=DECIMAL},
</if>
<if test="perLimit != null">
#{perLimit,jdbcType=INTEGER},
</if>
<if test="minPoint != null">
#{minPoint,jdbcType=DECIMAL},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="useType != null">
#{useType,jdbcType=INTEGER},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
<if test="publishCount != null">
#{publishCount,jdbcType=INTEGER},
</if>
<if test="useCount != null">
#{useCount,jdbcType=INTEGER},
</if>
<if test="enableTime != null">
#{enableTime,jdbcType=TIMESTAMP},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="memberLevel != null">
#{memberLevel,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsCouponExample" resultType="java.lang.Integer">
select count(*) from sms_coupon
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_coupon
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.platform != null">
platform = #{record.platform,jdbcType=VARCHAR},
</if>
<if test="record.count != null">
count = #{record.count,jdbcType=INTEGER},
</if>
<if test="record.amount != null">
amount = #{record.amount,jdbcType=DECIMAL},
</if>
<if test="record.perLimit != null">
per_limit = #{record.perLimit,jdbcType=INTEGER},
</if>
<if test="record.minPoint != null">
min_point = #{record.minPoint,jdbcType=DECIMAL},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if test="record.useType != null">
use_type = #{record.useType,jdbcType=INTEGER},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
<if test="record.publishCount != null">
publish_count = #{record.publishCount,jdbcType=INTEGER},
</if>
<if test="record.useCount != null">
use_count = #{record.useCount,jdbcType=INTEGER},
</if>
<if test="record.enableTime != null">
enable_time = #{record.enableTime,jdbcType=TIMESTAMP},
</if>
<if test="record.code != null">
code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.memberLevel != null">
member_level = #{record.memberLevel,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_coupon
set id = #{record.id,jdbcType=BIGINT},
type = #{record.type,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
platform = #{record.platform,jdbcType=VARCHAR},
count = #{record.count,jdbcType=INTEGER},
amount = #{record.amount,jdbcType=DECIMAL},
per_limit = #{record.perLimit,jdbcType=INTEGER},
min_point = #{record.minPoint,jdbcType=DECIMAL},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
use_type = #{record.useType,jdbcType=INTEGER},
note = #{record.note,jdbcType=VARCHAR},
publish_count = #{record.publishCount,jdbcType=INTEGER},
use_count = #{record.useCount,jdbcType=INTEGER},
enable_time = #{record.enableTime,jdbcType=TIMESTAMP},
code = #{record.code,jdbcType=VARCHAR},
member_level = #{record.memberLevel,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsCoupon">
update sms_coupon
<set>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="platform != null">
platform = #{platform,jdbcType=VARCHAR},
</if>
<if test="count != null">
count = #{count,jdbcType=INTEGER},
</if>
<if test="amount != null">
amount = #{amount,jdbcType=DECIMAL},
</if>
<if test="perLimit != null">
per_limit = #{perLimit,jdbcType=INTEGER},
</if>
<if test="minPoint != null">
min_point = #{minPoint,jdbcType=DECIMAL},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="useType != null">
use_type = #{useType,jdbcType=INTEGER},
</if>
<if test="note != null">
note = #{note,jdbcType=VARCHAR},
</if>
<if test="publishCount != null">
publish_count = #{publishCount,jdbcType=INTEGER},
</if>
<if test="useCount != null">
use_count = #{useCount,jdbcType=INTEGER},
</if>
<if test="enableTime != null">
enable_time = #{enableTime,jdbcType=TIMESTAMP},
</if>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="memberLevel != null">
member_level = #{memberLevel,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsCoupon">
update sms_coupon
set type = #{type,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
platform = #{platform,jdbcType=VARCHAR},
count = #{count,jdbcType=INTEGER},
amount = #{amount,jdbcType=DECIMAL},
per_limit = #{perLimit,jdbcType=INTEGER},
min_point = #{minPoint,jdbcType=DECIMAL},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
use_type = #{useType,jdbcType=INTEGER},
note = #{note,jdbcType=VARCHAR},
publish_count = #{publishCount,jdbcType=INTEGER},
use_count = #{useCount,jdbcType=INTEGER},
enable_time = #{enableTime,jdbcType=TIMESTAMP},
code = #{code,jdbcType=VARCHAR},
member_level = #{memberLevel,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -176,4 +176,354 @@
product_category_id = #{productCategoryId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsCouponProductCategoryRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="coupon_id" jdbcType="BIGINT" property="couponId" />
<result column="product_category_id" jdbcType="BIGINT" property="productCategoryId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, coupon_id, product_category_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_coupon_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_coupon_product_category_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_coupon_product_category_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelationExample">
delete from sms_coupon_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_category_relation (coupon_id, product_category_id)
values (#{couponId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_category_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="couponId != null">
coupon_id,
</if>
<if test="productCategoryId != null">
product_category_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="couponId != null">
#{couponId,jdbcType=BIGINT},
</if>
<if test="productCategoryId != null">
#{productCategoryId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelationExample" resultType="java.lang.Integer">
select count(*) from sms_coupon_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_coupon_product_category_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.couponId != null">
coupon_id = #{record.couponId,jdbcType=BIGINT},
</if>
<if test="record.productCategoryId != null">
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_coupon_product_category_relation
set id = #{record.id,jdbcType=BIGINT},
coupon_id = #{record.couponId,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelation">
update sms_coupon_product_category_relation
<set>
<if test="couponId != null">
coupon_id = #{couponId,jdbcType=BIGINT},
</if>
<if test="productCategoryId != null">
product_category_id = #{productCategoryId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelation">
update sms_coupon_product_category_relation
set coupon_id = #{couponId,jdbcType=BIGINT},
product_category_id = #{productCategoryId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsCouponProductCategoryRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="coupon_id" jdbcType="BIGINT" property="couponId" />
<result column="product_category_id" jdbcType="BIGINT" property="productCategoryId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, coupon_id, product_category_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_coupon_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_coupon_product_category_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_coupon_product_category_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelationExample">
delete from sms_coupon_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_category_relation (coupon_id, product_category_id)
values (#{couponId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_category_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="couponId != null">
coupon_id,
</if>
<if test="productCategoryId != null">
product_category_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="couponId != null">
#{couponId,jdbcType=BIGINT},
</if>
<if test="productCategoryId != null">
#{productCategoryId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelationExample" resultType="java.lang.Integer">
select count(*) from sms_coupon_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_coupon_product_category_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.couponId != null">
coupon_id = #{record.couponId,jdbcType=BIGINT},
</if>
<if test="record.productCategoryId != null">
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_coupon_product_category_relation
set id = #{record.id,jdbcType=BIGINT},
coupon_id = #{record.couponId,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelation">
update sms_coupon_product_category_relation
<set>
<if test="couponId != null">
coupon_id = #{couponId,jdbcType=BIGINT},
</if>
<if test="productCategoryId != null">
product_category_id = #{productCategoryId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsCouponProductCategoryRelation">
update sms_coupon_product_category_relation
set coupon_id = #{couponId,jdbcType=BIGINT},
product_category_id = #{productCategoryId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -176,4 +176,354 @@
product_id = #{productId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsCouponProductRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="coupon_id" jdbcType="INTEGER" property="couponId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, coupon_id, product_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponProductRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_coupon_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_coupon_product_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_coupon_product_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsCouponProductRelationExample">
delete from sms_coupon_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsCouponProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_relation (coupon_id, product_id)
values (#{couponId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCouponProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="couponId != null">
coupon_id,
</if>
<if test="productId != null">
product_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="couponId != null">
#{couponId,jdbcType=INTEGER},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsCouponProductRelationExample" resultType="java.lang.Integer">
select count(*) from sms_coupon_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_coupon_product_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.couponId != null">
coupon_id = #{record.couponId,jdbcType=INTEGER},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_coupon_product_relation
set id = #{record.id,jdbcType=BIGINT},
coupon_id = #{record.couponId,jdbcType=INTEGER},
product_id = #{record.productId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsCouponProductRelation">
update sms_coupon_product_relation
<set>
<if test="couponId != null">
coupon_id = #{couponId,jdbcType=INTEGER},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsCouponProductRelation">
update sms_coupon_product_relation
set coupon_id = #{couponId,jdbcType=INTEGER},
product_id = #{productId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsCouponProductRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="coupon_id" jdbcType="INTEGER" property="couponId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, coupon_id, product_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponProductRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_coupon_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_coupon_product_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_coupon_product_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsCouponProductRelationExample">
delete from sms_coupon_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsCouponProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_relation (coupon_id, product_id)
values (#{couponId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCouponProductRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="couponId != null">
coupon_id,
</if>
<if test="productId != null">
product_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="couponId != null">
#{couponId,jdbcType=INTEGER},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsCouponProductRelationExample" resultType="java.lang.Integer">
select count(*) from sms_coupon_product_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_coupon_product_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.couponId != null">
coupon_id = #{record.couponId,jdbcType=INTEGER},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_coupon_product_relation
set id = #{record.id,jdbcType=BIGINT},
coupon_id = #{record.couponId,jdbcType=INTEGER},
product_id = #{record.productId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsCouponProductRelation">
update sms_coupon_product_relation
<set>
<if test="couponId != null">
coupon_id = #{couponId,jdbcType=INTEGER},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsCouponProductRelation">
update sms_coupon_product_relation
set coupon_id = #{couponId,jdbcType=INTEGER},
product_id = #{productId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -240,4 +240,482 @@
send_time = #{sendTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsFlashPromotionLog">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="member_id" jdbcType="INTEGER" property="memberId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="member_phone" jdbcType="VARCHAR" property="memberPhone" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="subscribe_time" jdbcType="TIMESTAMP" property="subscribeTime" />
<result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, product_id, member_phone, product_name, subscribe_time, send_time
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsFlashPromotionLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_flash_promotion_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_flash_promotion_log
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sms_flash_promotion_log
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsFlashPromotionLogExample">
delete from sms_flash_promotion_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsFlashPromotionLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_log (member_id, product_id, member_phone,
product_name, subscribe_time, send_time
)
values (#{memberId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}, #{memberPhone,jdbcType=VARCHAR},
#{productName,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=TIMESTAMP}, #{sendTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsFlashPromotionLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="productId != null">
product_id,
</if>
<if test="memberPhone != null">
member_phone,
</if>
<if test="productName != null">
product_name,
</if>
<if test="subscribeTime != null">
subscribe_time,
</if>
<if test="sendTime != null">
send_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=INTEGER},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="memberPhone != null">
#{memberPhone,jdbcType=VARCHAR},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="subscribeTime != null">
#{subscribeTime,jdbcType=TIMESTAMP},
</if>
<if test="sendTime != null">
#{sendTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsFlashPromotionLogExample" resultType="java.lang.Integer">
select count(*) from sms_flash_promotion_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_flash_promotion_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=INTEGER},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.memberPhone != null">
member_phone = #{record.memberPhone,jdbcType=VARCHAR},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.subscribeTime != null">
subscribe_time = #{record.subscribeTime,jdbcType=TIMESTAMP},
</if>
<if test="record.sendTime != null">
send_time = #{record.sendTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_flash_promotion_log
set id = #{record.id,jdbcType=INTEGER},
member_id = #{record.memberId,jdbcType=INTEGER},
product_id = #{record.productId,jdbcType=BIGINT},
member_phone = #{record.memberPhone,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
subscribe_time = #{record.subscribeTime,jdbcType=TIMESTAMP},
send_time = #{record.sendTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsFlashPromotionLog">
update sms_flash_promotion_log
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=INTEGER},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="memberPhone != null">
member_phone = #{memberPhone,jdbcType=VARCHAR},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="subscribeTime != null">
subscribe_time = #{subscribeTime,jdbcType=TIMESTAMP},
</if>
<if test="sendTime != null">
send_time = #{sendTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsFlashPromotionLog">
update sms_flash_promotion_log
set member_id = #{memberId,jdbcType=INTEGER},
product_id = #{productId,jdbcType=BIGINT},
member_phone = #{memberPhone,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
subscribe_time = #{subscribeTime,jdbcType=TIMESTAMP},
send_time = #{sendTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsFlashPromotionLog">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="member_id" jdbcType="INTEGER" property="memberId" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="member_phone" jdbcType="VARCHAR" property="memberPhone" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="subscribe_time" jdbcType="TIMESTAMP" property="subscribeTime" />
<result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, product_id, member_phone, product_name, subscribe_time, send_time
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsFlashPromotionLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_flash_promotion_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_flash_promotion_log
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sms_flash_promotion_log
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsFlashPromotionLogExample">
delete from sms_flash_promotion_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsFlashPromotionLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_log (member_id, product_id, member_phone,
product_name, subscribe_time, send_time
)
values (#{memberId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}, #{memberPhone,jdbcType=VARCHAR},
#{productName,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=TIMESTAMP}, #{sendTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsFlashPromotionLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="productId != null">
product_id,
</if>
<if test="memberPhone != null">
member_phone,
</if>
<if test="productName != null">
product_name,
</if>
<if test="subscribeTime != null">
subscribe_time,
</if>
<if test="sendTime != null">
send_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=INTEGER},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="memberPhone != null">
#{memberPhone,jdbcType=VARCHAR},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="subscribeTime != null">
#{subscribeTime,jdbcType=TIMESTAMP},
</if>
<if test="sendTime != null">
#{sendTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsFlashPromotionLogExample" resultType="java.lang.Integer">
select count(*) from sms_flash_promotion_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_flash_promotion_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=INTEGER},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.memberPhone != null">
member_phone = #{record.memberPhone,jdbcType=VARCHAR},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.subscribeTime != null">
subscribe_time = #{record.subscribeTime,jdbcType=TIMESTAMP},
</if>
<if test="record.sendTime != null">
send_time = #{record.sendTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_flash_promotion_log
set id = #{record.id,jdbcType=INTEGER},
member_id = #{record.memberId,jdbcType=INTEGER},
product_id = #{record.productId,jdbcType=BIGINT},
member_phone = #{record.memberPhone,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
subscribe_time = #{record.subscribeTime,jdbcType=TIMESTAMP},
send_time = #{record.sendTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsFlashPromotionLog">
update sms_flash_promotion_log
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=INTEGER},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="memberPhone != null">
member_phone = #{memberPhone,jdbcType=VARCHAR},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="subscribeTime != null">
subscribe_time = #{subscribeTime,jdbcType=TIMESTAMP},
</if>
<if test="sendTime != null">
send_time = #{sendTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsFlashPromotionLog">
update sms_flash_promotion_log
set member_id = #{memberId,jdbcType=INTEGER},
product_id = #{productId,jdbcType=BIGINT},
member_phone = #{memberPhone,jdbcType=VARCHAR},
product_name = #{productName,jdbcType=VARCHAR},
subscribe_time = #{subscribeTime,jdbcType=TIMESTAMP},
send_time = #{sendTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -223,4 +223,448 @@
time_name = #{timeName,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsFlashPromotion">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="time_name" jdbcType="VARCHAR" property="timeName" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, title, start_time, end_time, status, time_name
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsFlashPromotionExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_flash_promotion
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_flash_promotion
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sms_flash_promotion
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsFlashPromotionExample">
delete from sms_flash_promotion
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsFlashPromotion">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion (title, start_time, end_time,
status, time_name)
values (#{title,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER}, #{timeName,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsFlashPromotion">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">
title,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="status != null">
status,
</if>
<if test="timeName != null">
time_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="timeName != null">
#{timeName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsFlashPromotionExample" resultType="java.lang.Integer">
select count(*) from sms_flash_promotion
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_flash_promotion
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.timeName != null">
time_name = #{record.timeName,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_flash_promotion
set id = #{record.id,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=INTEGER},
time_name = #{record.timeName,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsFlashPromotion">
update sms_flash_promotion
<set>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="timeName != null">
time_name = #{timeName,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsFlashPromotion">
update sms_flash_promotion
set title = #{title,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER},
time_name = #{timeName,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsFlashPromotion">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="time_name" jdbcType="VARCHAR" property="timeName" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, title, start_time, end_time, status, time_name
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsFlashPromotionExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_flash_promotion
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_flash_promotion
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sms_flash_promotion
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsFlashPromotionExample">
delete from sms_flash_promotion
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsFlashPromotion">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion (title, start_time, end_time,
status, time_name)
values (#{title,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER}, #{timeName,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsFlashPromotion">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">
title,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="status != null">
status,
</if>
<if test="timeName != null">
time_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="timeName != null">
#{timeName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsFlashPromotionExample" resultType="java.lang.Integer">
select count(*) from sms_flash_promotion
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_flash_promotion
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.timeName != null">
time_name = #{record.timeName,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_flash_promotion
set id = #{record.id,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=INTEGER},
time_name = #{record.timeName,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsFlashPromotion">
update sms_flash_promotion
<set>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="timeName != null">
time_name = #{timeName,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsFlashPromotion">
update sms_flash_promotion
set title = #{title,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER},
time_name = #{timeName,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -303,4 +303,608 @@
note = #{note,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeAdvertise">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="pic" jdbcType="VARCHAR" property="pic" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="click_count" jdbcType="INTEGER" property="clickCount" />
<result column="order_count" jdbcType="INTEGER" property="orderCount" />
<result column="url" jdbcType="VARCHAR" property="url" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, type, pic, start_time, end_time, status, click_count, order_count, url,
note
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_advertise
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_advertise
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_advertise
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample">
delete from sms_home_advertise
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeAdvertise">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_advertise (name, type, pic,
start_time, end_time, status,
click_count, order_count, url,
note)
values (#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{pic,jdbcType=VARCHAR},
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
#{clickCount,jdbcType=INTEGER}, #{orderCount,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeAdvertise">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_advertise
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="type != null">
type,
</if>
<if test="pic != null">
pic,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="status != null">
status,
</if>
<if test="clickCount != null">
click_count,
</if>
<if test="orderCount != null">
order_count,
</if>
<if test="url != null">
url,
</if>
<if test="note != null">
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="pic != null">
#{pic,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="clickCount != null">
#{clickCount,jdbcType=INTEGER},
</if>
<if test="orderCount != null">
#{orderCount,jdbcType=INTEGER},
</if>
<if test="url != null">
#{url,jdbcType=VARCHAR},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample" resultType="java.lang.Integer">
select count(*) from sms_home_advertise
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_advertise
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.clickCount != null">
click_count = #{record.clickCount,jdbcType=INTEGER},
</if>
<if test="record.orderCount != null">
order_count = #{record.orderCount,jdbcType=INTEGER},
</if>
<if test="record.url != null">
url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_advertise
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
pic = #{record.pic,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=INTEGER},
click_count = #{record.clickCount,jdbcType=INTEGER},
order_count = #{record.orderCount,jdbcType=INTEGER},
url = #{record.url,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeAdvertise">
update sms_home_advertise
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="clickCount != null">
click_count = #{clickCount,jdbcType=INTEGER},
</if>
<if test="orderCount != null">
order_count = #{orderCount,jdbcType=INTEGER},
</if>
<if test="url != null">
url = #{url,jdbcType=VARCHAR},
</if>
<if test="note != null">
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeAdvertise">
update sms_home_advertise
set name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
pic = #{pic,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER},
click_count = #{clickCount,jdbcType=INTEGER},
order_count = #{orderCount,jdbcType=INTEGER},
url = #{url,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeAdvertise">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="type" jdbcType="INTEGER" property="type" />
<result column="pic" jdbcType="VARCHAR" property="pic" />
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="click_count" jdbcType="INTEGER" property="clickCount" />
<result column="order_count" jdbcType="INTEGER" property="orderCount" />
<result column="url" jdbcType="VARCHAR" property="url" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, type, pic, start_time, end_time, status, click_count, order_count, url,
note
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_advertise
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_advertise
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_advertise
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample">
delete from sms_home_advertise
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeAdvertise">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_advertise (name, type, pic,
start_time, end_time, status,
click_count, order_count, url,
note)
values (#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{pic,jdbcType=VARCHAR},
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
#{clickCount,jdbcType=INTEGER}, #{orderCount,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeAdvertise">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_advertise
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="type != null">
type,
</if>
<if test="pic != null">
pic,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="endTime != null">
end_time,
</if>
<if test="status != null">
status,
</if>
<if test="clickCount != null">
click_count,
</if>
<if test="orderCount != null">
order_count,
</if>
<if test="url != null">
url,
</if>
<if test="note != null">
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
<if test="pic != null">
#{pic,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="clickCount != null">
#{clickCount,jdbcType=INTEGER},
</if>
<if test="orderCount != null">
#{orderCount,jdbcType=INTEGER},
</if>
<if test="url != null">
#{url,jdbcType=VARCHAR},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample" resultType="java.lang.Integer">
select count(*) from sms_home_advertise
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_advertise
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
<if test="record.pic != null">
pic = #{record.pic,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=TIMESTAMP},
</if>
<if test="record.endTime != null">
end_time = #{record.endTime,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.clickCount != null">
click_count = #{record.clickCount,jdbcType=INTEGER},
</if>
<if test="record.orderCount != null">
order_count = #{record.orderCount,jdbcType=INTEGER},
</if>
<if test="record.url != null">
url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_advertise
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
type = #{record.type,jdbcType=INTEGER},
pic = #{record.pic,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=INTEGER},
click_count = #{record.clickCount,jdbcType=INTEGER},
order_count = #{record.orderCount,jdbcType=INTEGER},
url = #{record.url,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeAdvertise">
update sms_home_advertise
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
<if test="pic != null">
pic = #{pic,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null">
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="clickCount != null">
click_count = #{clickCount,jdbcType=INTEGER},
</if>
<if test="orderCount != null">
order_count = #{orderCount,jdbcType=INTEGER},
</if>
<if test="url != null">
url = #{url,jdbcType=VARCHAR},
</if>
<if test="note != null">
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeAdvertise">
update sms_home_advertise
set name = #{name,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
pic = #{pic,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER},
click_count = #{clickCount,jdbcType=INTEGER},
order_count = #{orderCount,jdbcType=INTEGER},
url = #{url,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -208,4 +208,418 @@
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeBrand">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="brand_id" jdbcType="BIGINT" property="brandId" />
<result column="brand_name" jdbcType="VARCHAR" property="brandName" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, brand_id, brand_name, recommend_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeBrandExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_brand
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_brand
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeBrandExample">
delete from sms_home_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeBrand">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_brand (brand_id, brand_name, recommend_status,
sort)
values (#{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeBrand">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_brand
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="brandId != null">
brand_id,
</if>
<if test="brandName != null">
brand_name,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="brandId != null">
#{brandId,jdbcType=BIGINT},
</if>
<if test="brandName != null">
#{brandName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeBrandExample" resultType="java.lang.Integer">
select count(*) from sms_home_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_brand
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.brandId != null">
brand_id = #{record.brandId,jdbcType=BIGINT},
</if>
<if test="record.brandName != null">
brand_name = #{record.brandName,jdbcType=VARCHAR},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_brand
set id = #{record.id,jdbcType=BIGINT},
brand_id = #{record.brandId,jdbcType=BIGINT},
brand_name = #{record.brandName,jdbcType=VARCHAR},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeBrand">
update sms_home_brand
<set>
<if test="brandId != null">
brand_id = #{brandId,jdbcType=BIGINT},
</if>
<if test="brandName != null">
brand_name = #{brandName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeBrand">
update sms_home_brand
set brand_id = #{brandId,jdbcType=BIGINT},
brand_name = #{brandName,jdbcType=VARCHAR},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeBrand">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="brand_id" jdbcType="BIGINT" property="brandId" />
<result column="brand_name" jdbcType="VARCHAR" property="brandName" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, brand_id, brand_name, recommend_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeBrandExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_brand
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_brand
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeBrandExample">
delete from sms_home_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeBrand">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_brand (brand_id, brand_name, recommend_status,
sort)
values (#{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeBrand">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_brand
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="brandId != null">
brand_id,
</if>
<if test="brandName != null">
brand_name,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="brandId != null">
#{brandId,jdbcType=BIGINT},
</if>
<if test="brandName != null">
#{brandName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeBrandExample" resultType="java.lang.Integer">
select count(*) from sms_home_brand
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_brand
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.brandId != null">
brand_id = #{record.brandId,jdbcType=BIGINT},
</if>
<if test="record.brandName != null">
brand_name = #{record.brandName,jdbcType=VARCHAR},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_brand
set id = #{record.id,jdbcType=BIGINT},
brand_id = #{record.brandId,jdbcType=BIGINT},
brand_name = #{record.brandName,jdbcType=VARCHAR},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeBrand">
update sms_home_brand
<set>
<if test="brandId != null">
brand_id = #{brandId,jdbcType=BIGINT},
</if>
<if test="brandName != null">
brand_name = #{brandName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeBrand">
update sms_home_brand
set brand_id = #{brandId,jdbcType=BIGINT},
brand_name = #{brandName,jdbcType=VARCHAR},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -208,4 +208,418 @@
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeNewProduct">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, product_name, recommend_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeNewProductExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_new_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_new_product
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_new_product
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeNewProductExample">
delete from sms_home_new_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeNewProduct">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_new_product (product_id, product_name, recommend_status,
sort)
values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeNewProduct">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_new_product
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="productName != null">
product_name,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeNewProductExample" resultType="java.lang.Integer">
select count(*) from sms_home_new_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_new_product
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_new_product
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
product_name = #{record.productName,jdbcType=VARCHAR},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeNewProduct">
update sms_home_new_product
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeNewProduct">
update sms_home_new_product
set product_id = #{productId,jdbcType=BIGINT},
product_name = #{productName,jdbcType=VARCHAR},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeNewProduct">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, product_name, recommend_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeNewProductExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_new_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_new_product
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_new_product
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeNewProductExample">
delete from sms_home_new_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeNewProduct">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_new_product (product_id, product_name, recommend_status,
sort)
values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeNewProduct">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_new_product
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="productName != null">
product_name,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeNewProductExample" resultType="java.lang.Integer">
select count(*) from sms_home_new_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_new_product
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_new_product
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
product_name = #{record.productName,jdbcType=VARCHAR},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeNewProduct">
update sms_home_new_product
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeNewProduct">
update sms_home_new_product
set product_id = #{productId,jdbcType=BIGINT},
product_name = #{productName,jdbcType=VARCHAR},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -208,4 +208,418 @@
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeRecommendProduct">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, product_name, recommend_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeRecommendProductExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_recommend_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_recommend_product
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_recommend_product
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeRecommendProductExample">
delete from sms_home_recommend_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeRecommendProduct">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_product (product_id, product_name, recommend_status,
sort)
values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeRecommendProduct">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_product
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="productName != null">
product_name,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeRecommendProductExample" resultType="java.lang.Integer">
select count(*) from sms_home_recommend_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_recommend_product
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_recommend_product
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
product_name = #{record.productName,jdbcType=VARCHAR},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeRecommendProduct">
update sms_home_recommend_product
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeRecommendProduct">
update sms_home_recommend_product
set product_id = #{productId,jdbcType=BIGINT},
product_name = #{productName,jdbcType=VARCHAR},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeRecommendProduct">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="product_name" jdbcType="VARCHAR" property="productName" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, product_id, product_name, recommend_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeRecommendProductExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_recommend_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_recommend_product
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_recommend_product
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeRecommendProductExample">
delete from sms_home_recommend_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeRecommendProduct">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_product (product_id, product_name, recommend_status,
sort)
values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeRecommendProduct">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_product
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">
product_id,
</if>
<if test="productName != null">
product_name,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
#{productName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeRecommendProductExample" resultType="java.lang.Integer">
select count(*) from sms_home_recommend_product
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_recommend_product
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.productId != null">
product_id = #{record.productId,jdbcType=BIGINT},
</if>
<if test="record.productName != null">
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_recommend_product
set id = #{record.id,jdbcType=BIGINT},
product_id = #{record.productId,jdbcType=BIGINT},
product_name = #{record.productName,jdbcType=VARCHAR},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeRecommendProduct">
update sms_home_recommend_product
<set>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="productName != null">
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeRecommendProduct">
update sms_home_recommend_product
set product_id = #{productId,jdbcType=BIGINT},
product_name = #{productName,jdbcType=VARCHAR},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -208,4 +208,418 @@
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeRecommendSubject">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="subject_id" jdbcType="BIGINT" property="subjectId" />
<result column="subject_name" jdbcType="VARCHAR" property="subjectName" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, subject_id, subject_name, recommend_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeRecommendSubjectExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_recommend_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_recommend_subject
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_recommend_subject
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeRecommendSubjectExample">
delete from sms_home_recommend_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeRecommendSubject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_subject (subject_id, subject_name, recommend_status,
sort)
values (#{subjectId,jdbcType=BIGINT}, #{subjectName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeRecommendSubject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_subject
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
subject_id,
</if>
<if test="subjectName != null">
subject_name,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
#{subjectId,jdbcType=BIGINT},
</if>
<if test="subjectName != null">
#{subjectName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeRecommendSubjectExample" resultType="java.lang.Integer">
select count(*) from sms_home_recommend_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_recommend_subject
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.subjectId != null">
subject_id = #{record.subjectId,jdbcType=BIGINT},
</if>
<if test="record.subjectName != null">
subject_name = #{record.subjectName,jdbcType=VARCHAR},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_recommend_subject
set id = #{record.id,jdbcType=BIGINT},
subject_id = #{record.subjectId,jdbcType=BIGINT},
subject_name = #{record.subjectName,jdbcType=VARCHAR},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeRecommendSubject">
update sms_home_recommend_subject
<set>
<if test="subjectId != null">
subject_id = #{subjectId,jdbcType=BIGINT},
</if>
<if test="subjectName != null">
subject_name = #{subjectName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeRecommendSubject">
update sms_home_recommend_subject
set subject_id = #{subjectId,jdbcType=BIGINT},
subject_name = #{subjectName,jdbcType=VARCHAR},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.SmsHomeRecommendSubject">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="subject_id" jdbcType="BIGINT" property="subjectId" />
<result column="subject_name" jdbcType="VARCHAR" property="subjectName" />
<result column="recommend_status" jdbcType="INTEGER" property="recommendStatus" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, subject_id, subject_name, recommend_status, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeRecommendSubjectExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from sms_home_recommend_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sms_home_recommend_subject
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from sms_home_recommend_subject
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.SmsHomeRecommendSubjectExample">
delete from sms_home_recommend_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.SmsHomeRecommendSubject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_subject (subject_id, subject_name, recommend_status,
sort)
values (#{subjectId,jdbcType=BIGINT}, #{subjectName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeRecommendSubject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_subject
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
subject_id,
</if>
<if test="subjectName != null">
subject_name,
</if>
<if test="recommendStatus != null">
recommend_status,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="subjectId != null">
#{subjectId,jdbcType=BIGINT},
</if>
<if test="subjectName != null">
#{subjectName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
#{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeRecommendSubjectExample" resultType="java.lang.Integer">
select count(*) from sms_home_recommend_subject
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sms_home_recommend_subject
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.subjectId != null">
subject_id = #{record.subjectId,jdbcType=BIGINT},
</if>
<if test="record.subjectName != null">
subject_name = #{record.subjectName,jdbcType=VARCHAR},
</if>
<if test="record.recommendStatus != null">
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sms_home_recommend_subject
set id = #{record.id,jdbcType=BIGINT},
subject_id = #{record.subjectId,jdbcType=BIGINT},
subject_name = #{record.subjectName,jdbcType=VARCHAR},
recommend_status = #{record.recommendStatus,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.SmsHomeRecommendSubject">
update sms_home_recommend_subject
<set>
<if test="subjectId != null">
subject_id = #{subjectId,jdbcType=BIGINT},
</if>
<if test="subjectName != null">
subject_name = #{subjectName,jdbcType=VARCHAR},
</if>
<if test="recommendStatus != null">
recommend_status = #{recommendStatus,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.SmsHomeRecommendSubject">
update sms_home_recommend_subject
set subject_id = #{subjectId,jdbcType=BIGINT},
subject_name = #{subjectName,jdbcType=VARCHAR},
recommend_status = #{recommendStatus,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -223,4 +223,448 @@
user_agent = #{userAgent,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsAdminLoginLog">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="admin_id" jdbcType="BIGINT" property="adminId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="ip" jdbcType="VARCHAR" property="ip" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="user_agent" jdbcType="VARCHAR" property="userAgent" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, admin_id, create_time, ip, address, user_agent
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsAdminLoginLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_admin_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_admin_login_log
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_admin_login_log
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsAdminLoginLogExample">
delete from ums_admin_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsAdminLoginLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin_login_log (admin_id, create_time, ip,
address, user_agent)
values (#{adminId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsAdminLoginLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin_login_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="adminId != null">
admin_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="ip != null">
ip,
</if>
<if test="address != null">
address,
</if>
<if test="userAgent != null">
user_agent,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="adminId != null">
#{adminId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="ip != null">
#{ip,jdbcType=VARCHAR},
</if>
<if test="address != null">
#{address,jdbcType=VARCHAR},
</if>
<if test="userAgent != null">
#{userAgent,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsAdminLoginLogExample" resultType="java.lang.Integer">
select count(*) from ums_admin_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_admin_login_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.adminId != null">
admin_id = #{record.adminId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.ip != null">
ip = #{record.ip,jdbcType=VARCHAR},
</if>
<if test="record.address != null">
address = #{record.address,jdbcType=VARCHAR},
</if>
<if test="record.userAgent != null">
user_agent = #{record.userAgent,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_admin_login_log
set id = #{record.id,jdbcType=BIGINT},
admin_id = #{record.adminId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
ip = #{record.ip,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
user_agent = #{record.userAgent,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsAdminLoginLog">
update ums_admin_login_log
<set>
<if test="adminId != null">
admin_id = #{adminId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="ip != null">
ip = #{ip,jdbcType=VARCHAR},
</if>
<if test="address != null">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="userAgent != null">
user_agent = #{userAgent,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsAdminLoginLog">
update ums_admin_login_log
set admin_id = #{adminId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
ip = #{ip,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
user_agent = #{userAgent,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsAdminLoginLog">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="admin_id" jdbcType="BIGINT" property="adminId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="ip" jdbcType="VARCHAR" property="ip" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="user_agent" jdbcType="VARCHAR" property="userAgent" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, admin_id, create_time, ip, address, user_agent
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsAdminLoginLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_admin_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_admin_login_log
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_admin_login_log
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsAdminLoginLogExample">
delete from ums_admin_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsAdminLoginLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin_login_log (admin_id, create_time, ip,
address, user_agent)
values (#{adminId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsAdminLoginLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin_login_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="adminId != null">
admin_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="ip != null">
ip,
</if>
<if test="address != null">
address,
</if>
<if test="userAgent != null">
user_agent,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="adminId != null">
#{adminId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="ip != null">
#{ip,jdbcType=VARCHAR},
</if>
<if test="address != null">
#{address,jdbcType=VARCHAR},
</if>
<if test="userAgent != null">
#{userAgent,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsAdminLoginLogExample" resultType="java.lang.Integer">
select count(*) from ums_admin_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_admin_login_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.adminId != null">
admin_id = #{record.adminId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.ip != null">
ip = #{record.ip,jdbcType=VARCHAR},
</if>
<if test="record.address != null">
address = #{record.address,jdbcType=VARCHAR},
</if>
<if test="record.userAgent != null">
user_agent = #{record.userAgent,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_admin_login_log
set id = #{record.id,jdbcType=BIGINT},
admin_id = #{record.adminId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
ip = #{record.ip,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
user_agent = #{record.userAgent,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsAdminLoginLog">
update ums_admin_login_log
<set>
<if test="adminId != null">
admin_id = #{adminId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="ip != null">
ip = #{ip,jdbcType=VARCHAR},
</if>
<if test="address != null">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="userAgent != null">
user_agent = #{userAgent,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsAdminLoginLog">
update ums_admin_login_log
set admin_id = #{adminId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
ip = #{ip,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
user_agent = #{userAgent,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -208,4 +208,418 @@
email = #{email,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsAdmin">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="username" jdbcType="VARCHAR" property="username" />
<result column="password" jdbcType="VARCHAR" property="password" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="email" jdbcType="VARCHAR" property="email" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, username, password, icon, email
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsAdminExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_admin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_admin
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_admin
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsAdminExample">
delete from ums_admin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsAdmin">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin (username, password, icon,
email)
values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsAdmin">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="username != null">
username,
</if>
<if test="password != null">
password,
</if>
<if test="icon != null">
icon,
</if>
<if test="email != null">
email,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="username != null">
#{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
#{password,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="email != null">
#{email,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsAdminExample" resultType="java.lang.Integer">
select count(*) from ums_admin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_admin
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.username != null">
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.password != null">
password = #{record.password,jdbcType=VARCHAR},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.email != null">
email = #{record.email,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_admin
set id = #{record.id,jdbcType=BIGINT},
username = #{record.username,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
email = #{record.email,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsAdmin">
update ums_admin
<set>
<if test="username != null">
username = #{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
password = #{password,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="email != null">
email = #{email,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsAdmin">
update ums_admin
set username = #{username,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsAdmin">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="username" jdbcType="VARCHAR" property="username" />
<result column="password" jdbcType="VARCHAR" property="password" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="email" jdbcType="VARCHAR" property="email" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, username, password, icon, email
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsAdminExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_admin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_admin
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_admin
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsAdminExample">
delete from ums_admin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsAdmin">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin (username, password, icon,
email)
values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsAdmin">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="username != null">
username,
</if>
<if test="password != null">
password,
</if>
<if test="icon != null">
icon,
</if>
<if test="email != null">
email,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="username != null">
#{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
#{password,jdbcType=VARCHAR},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="email != null">
#{email,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsAdminExample" resultType="java.lang.Integer">
select count(*) from ums_admin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_admin
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.username != null">
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.password != null">
password = #{record.password,jdbcType=VARCHAR},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.email != null">
email = #{record.email,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_admin
set id = #{record.id,jdbcType=BIGINT},
username = #{record.username,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
icon = #{record.icon,jdbcType=VARCHAR},
email = #{record.email,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsAdmin">
update ums_admin
<set>
<if test="username != null">
username = #{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
password = #{password,jdbcType=VARCHAR},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="email != null">
email = #{email,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsAdmin">
update ums_admin
set username = #{username,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
icon = #{icon,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -256,4 +256,514 @@
source_type = #{sourceType,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsGrowthChangeHistory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="change_type" jdbcType="INTEGER" property="changeType" />
<result column="change_count" jdbcType="INTEGER" property="changeCount" />
<result column="operate_man" jdbcType="VARCHAR" property="operateMan" />
<result column="operate_note" jdbcType="VARCHAR" property="operateNote" />
<result column="source_type" jdbcType="INTEGER" property="sourceType" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, create_time, change_type, change_count, operate_man, operate_note,
source_type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsGrowthChangeHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_growth_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_growth_change_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_growth_change_history
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsGrowthChangeHistoryExample">
delete from ums_growth_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsGrowthChangeHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_growth_change_history (member_id, create_time, change_type,
change_count, operate_man, operate_note,
source_type)
values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{changeType,jdbcType=INTEGER},
#{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, #{operateNote,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsGrowthChangeHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_growth_change_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="changeType != null">
change_type,
</if>
<if test="changeCount != null">
change_count,
</if>
<if test="operateMan != null">
operate_man,
</if>
<if test="operateNote != null">
operate_note,
</if>
<if test="sourceType != null">
source_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="changeType != null">
#{changeType,jdbcType=INTEGER},
</if>
<if test="changeCount != null">
#{changeCount,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
#{operateMan,jdbcType=VARCHAR},
</if>
<if test="operateNote != null">
#{operateNote,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
#{sourceType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsGrowthChangeHistoryExample" resultType="java.lang.Integer">
select count(*) from ums_growth_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_growth_change_history
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.changeType != null">
change_type = #{record.changeType,jdbcType=INTEGER},
</if>
<if test="record.changeCount != null">
change_count = #{record.changeCount,jdbcType=INTEGER},
</if>
<if test="record.operateMan != null">
operate_man = #{record.operateMan,jdbcType=VARCHAR},
</if>
<if test="record.operateNote != null">
operate_note = #{record.operateNote,jdbcType=VARCHAR},
</if>
<if test="record.sourceType != null">
source_type = #{record.sourceType,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_growth_change_history
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
change_type = #{record.changeType,jdbcType=INTEGER},
change_count = #{record.changeCount,jdbcType=INTEGER},
operate_man = #{record.operateMan,jdbcType=VARCHAR},
operate_note = #{record.operateNote,jdbcType=VARCHAR},
source_type = #{record.sourceType,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsGrowthChangeHistory">
update ums_growth_change_history
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="changeType != null">
change_type = #{changeType,jdbcType=INTEGER},
</if>
<if test="changeCount != null">
change_count = #{changeCount,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
operate_man = #{operateMan,jdbcType=VARCHAR},
</if>
<if test="operateNote != null">
operate_note = #{operateNote,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
source_type = #{sourceType,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsGrowthChangeHistory">
update ums_growth_change_history
set member_id = #{memberId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
change_type = #{changeType,jdbcType=INTEGER},
change_count = #{changeCount,jdbcType=INTEGER},
operate_man = #{operateMan,jdbcType=VARCHAR},
operate_note = #{operateNote,jdbcType=VARCHAR},
source_type = #{sourceType,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsGrowthChangeHistory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="change_type" jdbcType="INTEGER" property="changeType" />
<result column="change_count" jdbcType="INTEGER" property="changeCount" />
<result column="operate_man" jdbcType="VARCHAR" property="operateMan" />
<result column="operate_note" jdbcType="VARCHAR" property="operateNote" />
<result column="source_type" jdbcType="INTEGER" property="sourceType" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, create_time, change_type, change_count, operate_man, operate_note,
source_type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsGrowthChangeHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_growth_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_growth_change_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_growth_change_history
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsGrowthChangeHistoryExample">
delete from ums_growth_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsGrowthChangeHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_growth_change_history (member_id, create_time, change_type,
change_count, operate_man, operate_note,
source_type)
values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{changeType,jdbcType=INTEGER},
#{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, #{operateNote,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsGrowthChangeHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_growth_change_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="changeType != null">
change_type,
</if>
<if test="changeCount != null">
change_count,
</if>
<if test="operateMan != null">
operate_man,
</if>
<if test="operateNote != null">
operate_note,
</if>
<if test="sourceType != null">
source_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="changeType != null">
#{changeType,jdbcType=INTEGER},
</if>
<if test="changeCount != null">
#{changeCount,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
#{operateMan,jdbcType=VARCHAR},
</if>
<if test="operateNote != null">
#{operateNote,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
#{sourceType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsGrowthChangeHistoryExample" resultType="java.lang.Integer">
select count(*) from ums_growth_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_growth_change_history
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.changeType != null">
change_type = #{record.changeType,jdbcType=INTEGER},
</if>
<if test="record.changeCount != null">
change_count = #{record.changeCount,jdbcType=INTEGER},
</if>
<if test="record.operateMan != null">
operate_man = #{record.operateMan,jdbcType=VARCHAR},
</if>
<if test="record.operateNote != null">
operate_note = #{record.operateNote,jdbcType=VARCHAR},
</if>
<if test="record.sourceType != null">
source_type = #{record.sourceType,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_growth_change_history
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
change_type = #{record.changeType,jdbcType=INTEGER},
change_count = #{record.changeCount,jdbcType=INTEGER},
operate_man = #{record.operateMan,jdbcType=VARCHAR},
operate_note = #{record.operateNote,jdbcType=VARCHAR},
source_type = #{record.sourceType,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsGrowthChangeHistory">
update ums_growth_change_history
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="changeType != null">
change_type = #{changeType,jdbcType=INTEGER},
</if>
<if test="changeCount != null">
change_count = #{changeCount,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
operate_man = #{operateMan,jdbcType=VARCHAR},
</if>
<if test="operateNote != null">
operate_note = #{operateNote,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
source_type = #{sourceType,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsGrowthChangeHistory">
update ums_growth_change_history
set member_id = #{memberId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
change_type = #{changeType,jdbcType=INTEGER},
change_count = #{changeCount,jdbcType=INTEGER},
operate_man = #{operateMan,jdbcType=VARCHAR},
operate_note = #{operateNote,jdbcType=VARCHAR},
source_type = #{sourceType,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -256,4 +256,514 @@
source_type = #{sourceType,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsIntegrationChangeHistory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="change_type" jdbcType="INTEGER" property="changeType" />
<result column="change_count" jdbcType="INTEGER" property="changeCount" />
<result column="operate_man" jdbcType="VARCHAR" property="operateMan" />
<result column="operate_note" jdbcType="VARCHAR" property="operateNote" />
<result column="source_type" jdbcType="INTEGER" property="sourceType" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, create_time, change_type, change_count, operate_man, operate_note,
source_type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsIntegrationChangeHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_integration_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_integration_change_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_integration_change_history
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsIntegrationChangeHistoryExample">
delete from ums_integration_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsIntegrationChangeHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_integration_change_history (member_id, create_time, change_type,
change_count, operate_man, operate_note,
source_type)
values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{changeType,jdbcType=INTEGER},
#{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, #{operateNote,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsIntegrationChangeHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_integration_change_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="changeType != null">
change_type,
</if>
<if test="changeCount != null">
change_count,
</if>
<if test="operateMan != null">
operate_man,
</if>
<if test="operateNote != null">
operate_note,
</if>
<if test="sourceType != null">
source_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="changeType != null">
#{changeType,jdbcType=INTEGER},
</if>
<if test="changeCount != null">
#{changeCount,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
#{operateMan,jdbcType=VARCHAR},
</if>
<if test="operateNote != null">
#{operateNote,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
#{sourceType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsIntegrationChangeHistoryExample" resultType="java.lang.Integer">
select count(*) from ums_integration_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_integration_change_history
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.changeType != null">
change_type = #{record.changeType,jdbcType=INTEGER},
</if>
<if test="record.changeCount != null">
change_count = #{record.changeCount,jdbcType=INTEGER},
</if>
<if test="record.operateMan != null">
operate_man = #{record.operateMan,jdbcType=VARCHAR},
</if>
<if test="record.operateNote != null">
operate_note = #{record.operateNote,jdbcType=VARCHAR},
</if>
<if test="record.sourceType != null">
source_type = #{record.sourceType,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_integration_change_history
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
change_type = #{record.changeType,jdbcType=INTEGER},
change_count = #{record.changeCount,jdbcType=INTEGER},
operate_man = #{record.operateMan,jdbcType=VARCHAR},
operate_note = #{record.operateNote,jdbcType=VARCHAR},
source_type = #{record.sourceType,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsIntegrationChangeHistory">
update ums_integration_change_history
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="changeType != null">
change_type = #{changeType,jdbcType=INTEGER},
</if>
<if test="changeCount != null">
change_count = #{changeCount,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
operate_man = #{operateMan,jdbcType=VARCHAR},
</if>
<if test="operateNote != null">
operate_note = #{operateNote,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
source_type = #{sourceType,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsIntegrationChangeHistory">
update ums_integration_change_history
set member_id = #{memberId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
change_type = #{changeType,jdbcType=INTEGER},
change_count = #{changeCount,jdbcType=INTEGER},
operate_man = #{operateMan,jdbcType=VARCHAR},
operate_note = #{operateNote,jdbcType=VARCHAR},
source_type = #{sourceType,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsIntegrationChangeHistory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="change_type" jdbcType="INTEGER" property="changeType" />
<result column="change_count" jdbcType="INTEGER" property="changeCount" />
<result column="operate_man" jdbcType="VARCHAR" property="operateMan" />
<result column="operate_note" jdbcType="VARCHAR" property="operateNote" />
<result column="source_type" jdbcType="INTEGER" property="sourceType" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, create_time, change_type, change_count, operate_man, operate_note,
source_type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsIntegrationChangeHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_integration_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_integration_change_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_integration_change_history
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsIntegrationChangeHistoryExample">
delete from ums_integration_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsIntegrationChangeHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_integration_change_history (member_id, create_time, change_type,
change_count, operate_man, operate_note,
source_type)
values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{changeType,jdbcType=INTEGER},
#{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, #{operateNote,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsIntegrationChangeHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_integration_change_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="changeType != null">
change_type,
</if>
<if test="changeCount != null">
change_count,
</if>
<if test="operateMan != null">
operate_man,
</if>
<if test="operateNote != null">
operate_note,
</if>
<if test="sourceType != null">
source_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="changeType != null">
#{changeType,jdbcType=INTEGER},
</if>
<if test="changeCount != null">
#{changeCount,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
#{operateMan,jdbcType=VARCHAR},
</if>
<if test="operateNote != null">
#{operateNote,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
#{sourceType,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsIntegrationChangeHistoryExample" resultType="java.lang.Integer">
select count(*) from ums_integration_change_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_integration_change_history
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.changeType != null">
change_type = #{record.changeType,jdbcType=INTEGER},
</if>
<if test="record.changeCount != null">
change_count = #{record.changeCount,jdbcType=INTEGER},
</if>
<if test="record.operateMan != null">
operate_man = #{record.operateMan,jdbcType=VARCHAR},
</if>
<if test="record.operateNote != null">
operate_note = #{record.operateNote,jdbcType=VARCHAR},
</if>
<if test="record.sourceType != null">
source_type = #{record.sourceType,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_integration_change_history
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
change_type = #{record.changeType,jdbcType=INTEGER},
change_count = #{record.changeCount,jdbcType=INTEGER},
operate_man = #{record.operateMan,jdbcType=VARCHAR},
operate_note = #{record.operateNote,jdbcType=VARCHAR},
source_type = #{record.sourceType,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsIntegrationChangeHistory">
update ums_integration_change_history
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="changeType != null">
change_type = #{changeType,jdbcType=INTEGER},
</if>
<if test="changeCount != null">
change_count = #{changeCount,jdbcType=INTEGER},
</if>
<if test="operateMan != null">
operate_man = #{operateMan,jdbcType=VARCHAR},
</if>
<if test="operateNote != null">
operate_note = #{operateNote,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
source_type = #{sourceType,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsIntegrationChangeHistory">
update ums_integration_change_history
set member_id = #{memberId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
change_type = #{changeType,jdbcType=INTEGER},
change_count = #{changeCount,jdbcType=INTEGER},
operate_man = #{operateMan,jdbcType=VARCHAR},
operate_note = #{operateNote,jdbcType=VARCHAR},
source_type = #{sourceType,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -208,4 +208,418 @@
coupon_status = #{couponStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsIntergrationConsumeSetting">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="deduction_per_amount" jdbcType="INTEGER" property="deductionPerAmount" />
<result column="max_percent_per_order" jdbcType="INTEGER" property="maxPercentPerOrder" />
<result column="use_unit" jdbcType="INTEGER" property="useUnit" />
<result column="coupon_status" jdbcType="INTEGER" property="couponStatus" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, deduction_per_amount, max_percent_per_order, use_unit, coupon_status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsIntergrationConsumeSettingExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_intergration_consume_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_intergration_consume_setting
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_intergration_consume_setting
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsIntergrationConsumeSettingExample">
delete from ums_intergration_consume_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsIntergrationConsumeSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_intergration_consume_setting (deduction_per_amount, max_percent_per_order,
use_unit, coupon_status)
values (#{deductionPerAmount,jdbcType=INTEGER}, #{maxPercentPerOrder,jdbcType=INTEGER},
#{useUnit,jdbcType=INTEGER}, #{couponStatus,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsIntergrationConsumeSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_intergration_consume_setting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deductionPerAmount != null">
deduction_per_amount,
</if>
<if test="maxPercentPerOrder != null">
max_percent_per_order,
</if>
<if test="useUnit != null">
use_unit,
</if>
<if test="couponStatus != null">
coupon_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deductionPerAmount != null">
#{deductionPerAmount,jdbcType=INTEGER},
</if>
<if test="maxPercentPerOrder != null">
#{maxPercentPerOrder,jdbcType=INTEGER},
</if>
<if test="useUnit != null">
#{useUnit,jdbcType=INTEGER},
</if>
<if test="couponStatus != null">
#{couponStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsIntergrationConsumeSettingExample" resultType="java.lang.Integer">
select count(*) from ums_intergration_consume_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_intergration_consume_setting
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.deductionPerAmount != null">
deduction_per_amount = #{record.deductionPerAmount,jdbcType=INTEGER},
</if>
<if test="record.maxPercentPerOrder != null">
max_percent_per_order = #{record.maxPercentPerOrder,jdbcType=INTEGER},
</if>
<if test="record.useUnit != null">
use_unit = #{record.useUnit,jdbcType=INTEGER},
</if>
<if test="record.couponStatus != null">
coupon_status = #{record.couponStatus,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_intergration_consume_setting
set id = #{record.id,jdbcType=BIGINT},
deduction_per_amount = #{record.deductionPerAmount,jdbcType=INTEGER},
max_percent_per_order = #{record.maxPercentPerOrder,jdbcType=INTEGER},
use_unit = #{record.useUnit,jdbcType=INTEGER},
coupon_status = #{record.couponStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsIntergrationConsumeSetting">
update ums_intergration_consume_setting
<set>
<if test="deductionPerAmount != null">
deduction_per_amount = #{deductionPerAmount,jdbcType=INTEGER},
</if>
<if test="maxPercentPerOrder != null">
max_percent_per_order = #{maxPercentPerOrder,jdbcType=INTEGER},
</if>
<if test="useUnit != null">
use_unit = #{useUnit,jdbcType=INTEGER},
</if>
<if test="couponStatus != null">
coupon_status = #{couponStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsIntergrationConsumeSetting">
update ums_intergration_consume_setting
set deduction_per_amount = #{deductionPerAmount,jdbcType=INTEGER},
max_percent_per_order = #{maxPercentPerOrder,jdbcType=INTEGER},
use_unit = #{useUnit,jdbcType=INTEGER},
coupon_status = #{couponStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsIntergrationConsumeSetting">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="deduction_per_amount" jdbcType="INTEGER" property="deductionPerAmount" />
<result column="max_percent_per_order" jdbcType="INTEGER" property="maxPercentPerOrder" />
<result column="use_unit" jdbcType="INTEGER" property="useUnit" />
<result column="coupon_status" jdbcType="INTEGER" property="couponStatus" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, deduction_per_amount, max_percent_per_order, use_unit, coupon_status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsIntergrationConsumeSettingExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_intergration_consume_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_intergration_consume_setting
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_intergration_consume_setting
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsIntergrationConsumeSettingExample">
delete from ums_intergration_consume_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsIntergrationConsumeSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_intergration_consume_setting (deduction_per_amount, max_percent_per_order,
use_unit, coupon_status)
values (#{deductionPerAmount,jdbcType=INTEGER}, #{maxPercentPerOrder,jdbcType=INTEGER},
#{useUnit,jdbcType=INTEGER}, #{couponStatus,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsIntergrationConsumeSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_intergration_consume_setting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deductionPerAmount != null">
deduction_per_amount,
</if>
<if test="maxPercentPerOrder != null">
max_percent_per_order,
</if>
<if test="useUnit != null">
use_unit,
</if>
<if test="couponStatus != null">
coupon_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deductionPerAmount != null">
#{deductionPerAmount,jdbcType=INTEGER},
</if>
<if test="maxPercentPerOrder != null">
#{maxPercentPerOrder,jdbcType=INTEGER},
</if>
<if test="useUnit != null">
#{useUnit,jdbcType=INTEGER},
</if>
<if test="couponStatus != null">
#{couponStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsIntergrationConsumeSettingExample" resultType="java.lang.Integer">
select count(*) from ums_intergration_consume_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_intergration_consume_setting
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.deductionPerAmount != null">
deduction_per_amount = #{record.deductionPerAmount,jdbcType=INTEGER},
</if>
<if test="record.maxPercentPerOrder != null">
max_percent_per_order = #{record.maxPercentPerOrder,jdbcType=INTEGER},
</if>
<if test="record.useUnit != null">
use_unit = #{record.useUnit,jdbcType=INTEGER},
</if>
<if test="record.couponStatus != null">
coupon_status = #{record.couponStatus,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_intergration_consume_setting
set id = #{record.id,jdbcType=BIGINT},
deduction_per_amount = #{record.deductionPerAmount,jdbcType=INTEGER},
max_percent_per_order = #{record.maxPercentPerOrder,jdbcType=INTEGER},
use_unit = #{record.useUnit,jdbcType=INTEGER},
coupon_status = #{record.couponStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsIntergrationConsumeSetting">
update ums_intergration_consume_setting
<set>
<if test="deductionPerAmount != null">
deduction_per_amount = #{deductionPerAmount,jdbcType=INTEGER},
</if>
<if test="maxPercentPerOrder != null">
max_percent_per_order = #{maxPercentPerOrder,jdbcType=INTEGER},
</if>
<if test="useUnit != null">
use_unit = #{useUnit,jdbcType=INTEGER},
</if>
<if test="couponStatus != null">
coupon_status = #{couponStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsIntergrationConsumeSetting">
update ums_intergration_consume_setting
set deduction_per_amount = #{deductionPerAmount,jdbcType=INTEGER},
max_percent_per_order = #{maxPercentPerOrder,jdbcType=INTEGER},
use_unit = #{useUnit,jdbcType=INTEGER},
coupon_status = #{couponStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -336,4 +336,674 @@
note = #{note,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberLevel">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="growth_point" jdbcType="INTEGER" property="growthPoint" />
<result column="default_status" jdbcType="INTEGER" property="defaultStatus" />
<result column="free_freight_point" jdbcType="DECIMAL" property="freeFreightPoint" />
<result column="comment_growth_point" jdbcType="INTEGER" property="commentGrowthPoint" />
<result column="priviledge_free_freight" jdbcType="INTEGER" property="priviledgeFreeFreight" />
<result column="priviledge_sign_in" jdbcType="INTEGER" property="priviledgeSignIn" />
<result column="priviledge_comment" jdbcType="INTEGER" property="priviledgeComment" />
<result column="priviledge_promotion" jdbcType="INTEGER" property="priviledgePromotion" />
<result column="priviledge_member_price" jdbcType="INTEGER" property="priviledgeMemberPrice" />
<result column="priviledge_birthday" jdbcType="INTEGER" property="priviledgeBirthday" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, growth_point, default_status, free_freight_point, comment_growth_point,
priviledge_free_freight, priviledge_sign_in, priviledge_comment, priviledge_promotion,
priviledge_member_price, priviledge_birthday, note
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberLevelExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_level
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_level
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberLevelExample">
delete from ums_member_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberLevel">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_level (name, growth_point, default_status,
free_freight_point, comment_growth_point, priviledge_free_freight,
priviledge_sign_in, priviledge_comment, priviledge_promotion,
priviledge_member_price, priviledge_birthday,
note)
values (#{name,jdbcType=VARCHAR}, #{growthPoint,jdbcType=INTEGER}, #{defaultStatus,jdbcType=INTEGER},
#{freeFreightPoint,jdbcType=DECIMAL}, #{commentGrowthPoint,jdbcType=INTEGER}, #{priviledgeFreeFreight,jdbcType=INTEGER},
#{priviledgeSignIn,jdbcType=INTEGER}, #{priviledgeComment,jdbcType=INTEGER}, #{priviledgePromotion,jdbcType=INTEGER},
#{priviledgeMemberPrice,jdbcType=INTEGER}, #{priviledgeBirthday,jdbcType=INTEGER},
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberLevel">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_level
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="growthPoint != null">
growth_point,
</if>
<if test="defaultStatus != null">
default_status,
</if>
<if test="freeFreightPoint != null">
free_freight_point,
</if>
<if test="commentGrowthPoint != null">
comment_growth_point,
</if>
<if test="priviledgeFreeFreight != null">
priviledge_free_freight,
</if>
<if test="priviledgeSignIn != null">
priviledge_sign_in,
</if>
<if test="priviledgeComment != null">
priviledge_comment,
</if>
<if test="priviledgePromotion != null">
priviledge_promotion,
</if>
<if test="priviledgeMemberPrice != null">
priviledge_member_price,
</if>
<if test="priviledgeBirthday != null">
priviledge_birthday,
</if>
<if test="note != null">
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="growthPoint != null">
#{growthPoint,jdbcType=INTEGER},
</if>
<if test="defaultStatus != null">
#{defaultStatus,jdbcType=INTEGER},
</if>
<if test="freeFreightPoint != null">
#{freeFreightPoint,jdbcType=DECIMAL},
</if>
<if test="commentGrowthPoint != null">
#{commentGrowthPoint,jdbcType=INTEGER},
</if>
<if test="priviledgeFreeFreight != null">
#{priviledgeFreeFreight,jdbcType=INTEGER},
</if>
<if test="priviledgeSignIn != null">
#{priviledgeSignIn,jdbcType=INTEGER},
</if>
<if test="priviledgeComment != null">
#{priviledgeComment,jdbcType=INTEGER},
</if>
<if test="priviledgePromotion != null">
#{priviledgePromotion,jdbcType=INTEGER},
</if>
<if test="priviledgeMemberPrice != null">
#{priviledgeMemberPrice,jdbcType=INTEGER},
</if>
<if test="priviledgeBirthday != null">
#{priviledgeBirthday,jdbcType=INTEGER},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberLevelExample" resultType="java.lang.Integer">
select count(*) from ums_member_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_level
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.growthPoint != null">
growth_point = #{record.growthPoint,jdbcType=INTEGER},
</if>
<if test="record.defaultStatus != null">
default_status = #{record.defaultStatus,jdbcType=INTEGER},
</if>
<if test="record.freeFreightPoint != null">
free_freight_point = #{record.freeFreightPoint,jdbcType=DECIMAL},
</if>
<if test="record.commentGrowthPoint != null">
comment_growth_point = #{record.commentGrowthPoint,jdbcType=INTEGER},
</if>
<if test="record.priviledgeFreeFreight != null">
priviledge_free_freight = #{record.priviledgeFreeFreight,jdbcType=INTEGER},
</if>
<if test="record.priviledgeSignIn != null">
priviledge_sign_in = #{record.priviledgeSignIn,jdbcType=INTEGER},
</if>
<if test="record.priviledgeComment != null">
priviledge_comment = #{record.priviledgeComment,jdbcType=INTEGER},
</if>
<if test="record.priviledgePromotion != null">
priviledge_promotion = #{record.priviledgePromotion,jdbcType=INTEGER},
</if>
<if test="record.priviledgeMemberPrice != null">
priviledge_member_price = #{record.priviledgeMemberPrice,jdbcType=INTEGER},
</if>
<if test="record.priviledgeBirthday != null">
priviledge_birthday = #{record.priviledgeBirthday,jdbcType=INTEGER},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_level
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
growth_point = #{record.growthPoint,jdbcType=INTEGER},
default_status = #{record.defaultStatus,jdbcType=INTEGER},
free_freight_point = #{record.freeFreightPoint,jdbcType=DECIMAL},
comment_growth_point = #{record.commentGrowthPoint,jdbcType=INTEGER},
priviledge_free_freight = #{record.priviledgeFreeFreight,jdbcType=INTEGER},
priviledge_sign_in = #{record.priviledgeSignIn,jdbcType=INTEGER},
priviledge_comment = #{record.priviledgeComment,jdbcType=INTEGER},
priviledge_promotion = #{record.priviledgePromotion,jdbcType=INTEGER},
priviledge_member_price = #{record.priviledgeMemberPrice,jdbcType=INTEGER},
priviledge_birthday = #{record.priviledgeBirthday,jdbcType=INTEGER},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberLevel">
update ums_member_level
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="growthPoint != null">
growth_point = #{growthPoint,jdbcType=INTEGER},
</if>
<if test="defaultStatus != null">
default_status = #{defaultStatus,jdbcType=INTEGER},
</if>
<if test="freeFreightPoint != null">
free_freight_point = #{freeFreightPoint,jdbcType=DECIMAL},
</if>
<if test="commentGrowthPoint != null">
comment_growth_point = #{commentGrowthPoint,jdbcType=INTEGER},
</if>
<if test="priviledgeFreeFreight != null">
priviledge_free_freight = #{priviledgeFreeFreight,jdbcType=INTEGER},
</if>
<if test="priviledgeSignIn != null">
priviledge_sign_in = #{priviledgeSignIn,jdbcType=INTEGER},
</if>
<if test="priviledgeComment != null">
priviledge_comment = #{priviledgeComment,jdbcType=INTEGER},
</if>
<if test="priviledgePromotion != null">
priviledge_promotion = #{priviledgePromotion,jdbcType=INTEGER},
</if>
<if test="priviledgeMemberPrice != null">
priviledge_member_price = #{priviledgeMemberPrice,jdbcType=INTEGER},
</if>
<if test="priviledgeBirthday != null">
priviledge_birthday = #{priviledgeBirthday,jdbcType=INTEGER},
</if>
<if test="note != null">
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberLevel">
update ums_member_level
set name = #{name,jdbcType=VARCHAR},
growth_point = #{growthPoint,jdbcType=INTEGER},
default_status = #{defaultStatus,jdbcType=INTEGER},
free_freight_point = #{freeFreightPoint,jdbcType=DECIMAL},
comment_growth_point = #{commentGrowthPoint,jdbcType=INTEGER},
priviledge_free_freight = #{priviledgeFreeFreight,jdbcType=INTEGER},
priviledge_sign_in = #{priviledgeSignIn,jdbcType=INTEGER},
priviledge_comment = #{priviledgeComment,jdbcType=INTEGER},
priviledge_promotion = #{priviledgePromotion,jdbcType=INTEGER},
priviledge_member_price = #{priviledgeMemberPrice,jdbcType=INTEGER},
priviledge_birthday = #{priviledgeBirthday,jdbcType=INTEGER},
note = #{note,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberLevel">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="growth_point" jdbcType="INTEGER" property="growthPoint" />
<result column="default_status" jdbcType="INTEGER" property="defaultStatus" />
<result column="free_freight_point" jdbcType="DECIMAL" property="freeFreightPoint" />
<result column="comment_growth_point" jdbcType="INTEGER" property="commentGrowthPoint" />
<result column="priviledge_free_freight" jdbcType="INTEGER" property="priviledgeFreeFreight" />
<result column="priviledge_sign_in" jdbcType="INTEGER" property="priviledgeSignIn" />
<result column="priviledge_comment" jdbcType="INTEGER" property="priviledgeComment" />
<result column="priviledge_promotion" jdbcType="INTEGER" property="priviledgePromotion" />
<result column="priviledge_member_price" jdbcType="INTEGER" property="priviledgeMemberPrice" />
<result column="priviledge_birthday" jdbcType="INTEGER" property="priviledgeBirthday" />
<result column="note" jdbcType="VARCHAR" property="note" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, growth_point, default_status, free_freight_point, comment_growth_point,
priviledge_free_freight, priviledge_sign_in, priviledge_comment, priviledge_promotion,
priviledge_member_price, priviledge_birthday, note
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberLevelExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_level
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_level
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberLevelExample">
delete from ums_member_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberLevel">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_level (name, growth_point, default_status,
free_freight_point, comment_growth_point, priviledge_free_freight,
priviledge_sign_in, priviledge_comment, priviledge_promotion,
priviledge_member_price, priviledge_birthday,
note)
values (#{name,jdbcType=VARCHAR}, #{growthPoint,jdbcType=INTEGER}, #{defaultStatus,jdbcType=INTEGER},
#{freeFreightPoint,jdbcType=DECIMAL}, #{commentGrowthPoint,jdbcType=INTEGER}, #{priviledgeFreeFreight,jdbcType=INTEGER},
#{priviledgeSignIn,jdbcType=INTEGER}, #{priviledgeComment,jdbcType=INTEGER}, #{priviledgePromotion,jdbcType=INTEGER},
#{priviledgeMemberPrice,jdbcType=INTEGER}, #{priviledgeBirthday,jdbcType=INTEGER},
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberLevel">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_level
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="growthPoint != null">
growth_point,
</if>
<if test="defaultStatus != null">
default_status,
</if>
<if test="freeFreightPoint != null">
free_freight_point,
</if>
<if test="commentGrowthPoint != null">
comment_growth_point,
</if>
<if test="priviledgeFreeFreight != null">
priviledge_free_freight,
</if>
<if test="priviledgeSignIn != null">
priviledge_sign_in,
</if>
<if test="priviledgeComment != null">
priviledge_comment,
</if>
<if test="priviledgePromotion != null">
priviledge_promotion,
</if>
<if test="priviledgeMemberPrice != null">
priviledge_member_price,
</if>
<if test="priviledgeBirthday != null">
priviledge_birthday,
</if>
<if test="note != null">
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="growthPoint != null">
#{growthPoint,jdbcType=INTEGER},
</if>
<if test="defaultStatus != null">
#{defaultStatus,jdbcType=INTEGER},
</if>
<if test="freeFreightPoint != null">
#{freeFreightPoint,jdbcType=DECIMAL},
</if>
<if test="commentGrowthPoint != null">
#{commentGrowthPoint,jdbcType=INTEGER},
</if>
<if test="priviledgeFreeFreight != null">
#{priviledgeFreeFreight,jdbcType=INTEGER},
</if>
<if test="priviledgeSignIn != null">
#{priviledgeSignIn,jdbcType=INTEGER},
</if>
<if test="priviledgeComment != null">
#{priviledgeComment,jdbcType=INTEGER},
</if>
<if test="priviledgePromotion != null">
#{priviledgePromotion,jdbcType=INTEGER},
</if>
<if test="priviledgeMemberPrice != null">
#{priviledgeMemberPrice,jdbcType=INTEGER},
</if>
<if test="priviledgeBirthday != null">
#{priviledgeBirthday,jdbcType=INTEGER},
</if>
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberLevelExample" resultType="java.lang.Integer">
select count(*) from ums_member_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_level
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.growthPoint != null">
growth_point = #{record.growthPoint,jdbcType=INTEGER},
</if>
<if test="record.defaultStatus != null">
default_status = #{record.defaultStatus,jdbcType=INTEGER},
</if>
<if test="record.freeFreightPoint != null">
free_freight_point = #{record.freeFreightPoint,jdbcType=DECIMAL},
</if>
<if test="record.commentGrowthPoint != null">
comment_growth_point = #{record.commentGrowthPoint,jdbcType=INTEGER},
</if>
<if test="record.priviledgeFreeFreight != null">
priviledge_free_freight = #{record.priviledgeFreeFreight,jdbcType=INTEGER},
</if>
<if test="record.priviledgeSignIn != null">
priviledge_sign_in = #{record.priviledgeSignIn,jdbcType=INTEGER},
</if>
<if test="record.priviledgeComment != null">
priviledge_comment = #{record.priviledgeComment,jdbcType=INTEGER},
</if>
<if test="record.priviledgePromotion != null">
priviledge_promotion = #{record.priviledgePromotion,jdbcType=INTEGER},
</if>
<if test="record.priviledgeMemberPrice != null">
priviledge_member_price = #{record.priviledgeMemberPrice,jdbcType=INTEGER},
</if>
<if test="record.priviledgeBirthday != null">
priviledge_birthday = #{record.priviledgeBirthday,jdbcType=INTEGER},
</if>
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_level
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
growth_point = #{record.growthPoint,jdbcType=INTEGER},
default_status = #{record.defaultStatus,jdbcType=INTEGER},
free_freight_point = #{record.freeFreightPoint,jdbcType=DECIMAL},
comment_growth_point = #{record.commentGrowthPoint,jdbcType=INTEGER},
priviledge_free_freight = #{record.priviledgeFreeFreight,jdbcType=INTEGER},
priviledge_sign_in = #{record.priviledgeSignIn,jdbcType=INTEGER},
priviledge_comment = #{record.priviledgeComment,jdbcType=INTEGER},
priviledge_promotion = #{record.priviledgePromotion,jdbcType=INTEGER},
priviledge_member_price = #{record.priviledgeMemberPrice,jdbcType=INTEGER},
priviledge_birthday = #{record.priviledgeBirthday,jdbcType=INTEGER},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberLevel">
update ums_member_level
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="growthPoint != null">
growth_point = #{growthPoint,jdbcType=INTEGER},
</if>
<if test="defaultStatus != null">
default_status = #{defaultStatus,jdbcType=INTEGER},
</if>
<if test="freeFreightPoint != null">
free_freight_point = #{freeFreightPoint,jdbcType=DECIMAL},
</if>
<if test="commentGrowthPoint != null">
comment_growth_point = #{commentGrowthPoint,jdbcType=INTEGER},
</if>
<if test="priviledgeFreeFreight != null">
priviledge_free_freight = #{priviledgeFreeFreight,jdbcType=INTEGER},
</if>
<if test="priviledgeSignIn != null">
priviledge_sign_in = #{priviledgeSignIn,jdbcType=INTEGER},
</if>
<if test="priviledgeComment != null">
priviledge_comment = #{priviledgeComment,jdbcType=INTEGER},
</if>
<if test="priviledgePromotion != null">
priviledge_promotion = #{priviledgePromotion,jdbcType=INTEGER},
</if>
<if test="priviledgeMemberPrice != null">
priviledge_member_price = #{priviledgeMemberPrice,jdbcType=INTEGER},
</if>
<if test="priviledgeBirthday != null">
priviledge_birthday = #{priviledgeBirthday,jdbcType=INTEGER},
</if>
<if test="note != null">
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberLevel">
update ums_member_level
set name = #{name,jdbcType=VARCHAR},
growth_point = #{growthPoint,jdbcType=INTEGER},
default_status = #{defaultStatus,jdbcType=INTEGER},
free_freight_point = #{freeFreightPoint,jdbcType=DECIMAL},
comment_growth_point = #{commentGrowthPoint,jdbcType=INTEGER},
priviledge_free_freight = #{priviledgeFreeFreight,jdbcType=INTEGER},
priviledge_sign_in = #{priviledgeSignIn,jdbcType=INTEGER},
priviledge_comment = #{priviledgeComment,jdbcType=INTEGER},
priviledge_promotion = #{priviledgePromotion,jdbcType=INTEGER},
priviledge_member_price = #{priviledgeMemberPrice,jdbcType=INTEGER},
priviledge_birthday = #{priviledgeBirthday,jdbcType=INTEGER},
note = #{note,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -240,4 +240,482 @@
province = #{province,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberLoginLog">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="ip" jdbcType="VARCHAR" property="ip" />
<result column="city" jdbcType="VARCHAR" property="city" />
<result column="login_type" jdbcType="INTEGER" property="loginType" />
<result column="province" jdbcType="VARCHAR" property="province" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, create_time, ip, city, login_type, province
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberLoginLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_login_log
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_login_log
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberLoginLogExample">
delete from ums_member_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberLoginLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_login_log (member_id, create_time, ip,
city, login_type, province
)
values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR}, #{loginType,jdbcType=INTEGER}, #{province,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberLoginLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_login_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="ip != null">
ip,
</if>
<if test="city != null">
city,
</if>
<if test="loginType != null">
login_type,
</if>
<if test="province != null">
province,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="ip != null">
#{ip,jdbcType=VARCHAR},
</if>
<if test="city != null">
#{city,jdbcType=VARCHAR},
</if>
<if test="loginType != null">
#{loginType,jdbcType=INTEGER},
</if>
<if test="province != null">
#{province,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberLoginLogExample" resultType="java.lang.Integer">
select count(*) from ums_member_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_login_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.ip != null">
ip = #{record.ip,jdbcType=VARCHAR},
</if>
<if test="record.city != null">
city = #{record.city,jdbcType=VARCHAR},
</if>
<if test="record.loginType != null">
login_type = #{record.loginType,jdbcType=INTEGER},
</if>
<if test="record.province != null">
province = #{record.province,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_login_log
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
ip = #{record.ip,jdbcType=VARCHAR},
city = #{record.city,jdbcType=VARCHAR},
login_type = #{record.loginType,jdbcType=INTEGER},
province = #{record.province,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberLoginLog">
update ums_member_login_log
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="ip != null">
ip = #{ip,jdbcType=VARCHAR},
</if>
<if test="city != null">
city = #{city,jdbcType=VARCHAR},
</if>
<if test="loginType != null">
login_type = #{loginType,jdbcType=INTEGER},
</if>
<if test="province != null">
province = #{province,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberLoginLog">
update ums_member_login_log
set member_id = #{memberId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
ip = #{ip,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
login_type = #{loginType,jdbcType=INTEGER},
province = #{province,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberLoginLog">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="ip" jdbcType="VARCHAR" property="ip" />
<result column="city" jdbcType="VARCHAR" property="city" />
<result column="login_type" jdbcType="INTEGER" property="loginType" />
<result column="province" jdbcType="VARCHAR" property="province" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, create_time, ip, city, login_type, province
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberLoginLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_login_log
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_login_log
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberLoginLogExample">
delete from ums_member_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberLoginLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_login_log (member_id, create_time, ip,
city, login_type, province
)
values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR}, #{loginType,jdbcType=INTEGER}, #{province,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberLoginLog">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_login_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="ip != null">
ip,
</if>
<if test="city != null">
city,
</if>
<if test="loginType != null">
login_type,
</if>
<if test="province != null">
province,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="ip != null">
#{ip,jdbcType=VARCHAR},
</if>
<if test="city != null">
#{city,jdbcType=VARCHAR},
</if>
<if test="loginType != null">
#{loginType,jdbcType=INTEGER},
</if>
<if test="province != null">
#{province,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberLoginLogExample" resultType="java.lang.Integer">
select count(*) from ums_member_login_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_login_log
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.ip != null">
ip = #{record.ip,jdbcType=VARCHAR},
</if>
<if test="record.city != null">
city = #{record.city,jdbcType=VARCHAR},
</if>
<if test="record.loginType != null">
login_type = #{record.loginType,jdbcType=INTEGER},
</if>
<if test="record.province != null">
province = #{record.province,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_login_log
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
ip = #{record.ip,jdbcType=VARCHAR},
city = #{record.city,jdbcType=VARCHAR},
login_type = #{record.loginType,jdbcType=INTEGER},
province = #{record.province,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberLoginLog">
update ums_member_login_log
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="ip != null">
ip = #{ip,jdbcType=VARCHAR},
</if>
<if test="city != null">
city = #{city,jdbcType=VARCHAR},
</if>
<if test="loginType != null">
login_type = #{loginType,jdbcType=INTEGER},
</if>
<if test="province != null">
province = #{province,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberLoginLog">
update ums_member_login_log
set member_id = #{memberId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
ip = #{ip,jdbcType=VARCHAR},
city = #{city,jdbcType=VARCHAR},
login_type = #{loginType,jdbcType=INTEGER},
province = #{province,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -428,4 +428,858 @@
history_integration = #{historyIntegration,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMember">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_level_id" jdbcType="BIGINT" property="memberLevelId" />
<result column="username" jdbcType="VARCHAR" property="username" />
<result column="password" jdbcType="VARCHAR" property="password" />
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="gender" jdbcType="INTEGER" property="gender" />
<result column="birthday" jdbcType="DATE" property="birthday" />
<result column="city" jdbcType="VARCHAR" property="city" />
<result column="job" jdbcType="VARCHAR" property="job" />
<result column="personalized_signature" jdbcType="VARCHAR" property="personalizedSignature" />
<result column="source_type" jdbcType="INTEGER" property="sourceType" />
<result column="integration" jdbcType="INTEGER" property="integration" />
<result column="growth" jdbcType="INTEGER" property="growth" />
<result column="luckey_count" jdbcType="INTEGER" property="luckeyCount" />
<result column="history_integration" jdbcType="INTEGER" property="historyIntegration" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_level_id, username, password, nickname, phone, status, create_time, icon,
gender, birthday, city, job, personalized_signature, source_type, integration, growth,
luckey_count, history_integration
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberExample">
delete from ums_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMember">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member (member_level_id, username, password,
nickname, phone, status,
create_time, icon, gender,
birthday, city, job, personalized_signature,
source_type, integration, growth,
luckey_count, history_integration)
values (#{memberLevelId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{icon,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER},
#{birthday,jdbcType=DATE}, #{city,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{personalizedSignature,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER},
#{luckeyCount,jdbcType=INTEGER}, #{historyIntegration,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMember">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberLevelId != null">
member_level_id,
</if>
<if test="username != null">
username,
</if>
<if test="password != null">
password,
</if>
<if test="nickname != null">
nickname,
</if>
<if test="phone != null">
phone,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="icon != null">
icon,
</if>
<if test="gender != null">
gender,
</if>
<if test="birthday != null">
birthday,
</if>
<if test="city != null">
city,
</if>
<if test="job != null">
job,
</if>
<if test="personalizedSignature != null">
personalized_signature,
</if>
<if test="sourceType != null">
source_type,
</if>
<if test="integration != null">
integration,
</if>
<if test="growth != null">
growth,
</if>
<if test="luckeyCount != null">
luckey_count,
</if>
<if test="historyIntegration != null">
history_integration,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberLevelId != null">
#{memberLevelId,jdbcType=BIGINT},
</if>
<if test="username != null">
#{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
#{password,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
#{nickname,jdbcType=VARCHAR},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="gender != null">
#{gender,jdbcType=INTEGER},
</if>
<if test="birthday != null">
#{birthday,jdbcType=DATE},
</if>
<if test="city != null">
#{city,jdbcType=VARCHAR},
</if>
<if test="job != null">
#{job,jdbcType=VARCHAR},
</if>
<if test="personalizedSignature != null">
#{personalizedSignature,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
#{sourceType,jdbcType=INTEGER},
</if>
<if test="integration != null">
#{integration,jdbcType=INTEGER},
</if>
<if test="growth != null">
#{growth,jdbcType=INTEGER},
</if>
<if test="luckeyCount != null">
#{luckeyCount,jdbcType=INTEGER},
</if>
<if test="historyIntegration != null">
#{historyIntegration,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberExample" resultType="java.lang.Integer">
select count(*) from ums_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberLevelId != null">
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
</if>
<if test="record.username != null">
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.password != null">
password = #{record.password,jdbcType=VARCHAR},
</if>
<if test="record.nickname != null">
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if test="record.phone != null">
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.gender != null">
gender = #{record.gender,jdbcType=INTEGER},
</if>
<if test="record.birthday != null">
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if test="record.city != null">
city = #{record.city,jdbcType=VARCHAR},
</if>
<if test="record.job != null">
job = #{record.job,jdbcType=VARCHAR},
</if>
<if test="record.personalizedSignature != null">
personalized_signature = #{record.personalizedSignature,jdbcType=VARCHAR},
</if>
<if test="record.sourceType != null">
source_type = #{record.sourceType,jdbcType=INTEGER},
</if>
<if test="record.integration != null">
integration = #{record.integration,jdbcType=INTEGER},
</if>
<if test="record.growth != null">
growth = #{record.growth,jdbcType=INTEGER},
</if>
<if test="record.luckeyCount != null">
luckey_count = #{record.luckeyCount,jdbcType=INTEGER},
</if>
<if test="record.historyIntegration != null">
history_integration = #{record.historyIntegration,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member
set id = #{record.id,jdbcType=BIGINT},
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
username = #{record.username,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
nickname = #{record.nickname,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
icon = #{record.icon,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=INTEGER},
birthday = #{record.birthday,jdbcType=DATE},
city = #{record.city,jdbcType=VARCHAR},
job = #{record.job,jdbcType=VARCHAR},
personalized_signature = #{record.personalizedSignature,jdbcType=VARCHAR},
source_type = #{record.sourceType,jdbcType=INTEGER},
integration = #{record.integration,jdbcType=INTEGER},
growth = #{record.growth,jdbcType=INTEGER},
luckey_count = #{record.luckeyCount,jdbcType=INTEGER},
history_integration = #{record.historyIntegration,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMember">
update ums_member
<set>
<if test="memberLevelId != null">
member_level_id = #{memberLevelId,jdbcType=BIGINT},
</if>
<if test="username != null">
username = #{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
password = #{password,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="gender != null">
gender = #{gender,jdbcType=INTEGER},
</if>
<if test="birthday != null">
birthday = #{birthday,jdbcType=DATE},
</if>
<if test="city != null">
city = #{city,jdbcType=VARCHAR},
</if>
<if test="job != null">
job = #{job,jdbcType=VARCHAR},
</if>
<if test="personalizedSignature != null">
personalized_signature = #{personalizedSignature,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
source_type = #{sourceType,jdbcType=INTEGER},
</if>
<if test="integration != null">
integration = #{integration,jdbcType=INTEGER},
</if>
<if test="growth != null">
growth = #{growth,jdbcType=INTEGER},
</if>
<if test="luckeyCount != null">
luckey_count = #{luckeyCount,jdbcType=INTEGER},
</if>
<if test="historyIntegration != null">
history_integration = #{historyIntegration,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMember">
update ums_member
set member_level_id = #{memberLevelId,jdbcType=BIGINT},
username = #{username,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
nickname = #{nickname,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
icon = #{icon,jdbcType=VARCHAR},
gender = #{gender,jdbcType=INTEGER},
birthday = #{birthday,jdbcType=DATE},
city = #{city,jdbcType=VARCHAR},
job = #{job,jdbcType=VARCHAR},
personalized_signature = #{personalizedSignature,jdbcType=VARCHAR},
source_type = #{sourceType,jdbcType=INTEGER},
integration = #{integration,jdbcType=INTEGER},
growth = #{growth,jdbcType=INTEGER},
luckey_count = #{luckeyCount,jdbcType=INTEGER},
history_integration = #{historyIntegration,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMember">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_level_id" jdbcType="BIGINT" property="memberLevelId" />
<result column="username" jdbcType="VARCHAR" property="username" />
<result column="password" jdbcType="VARCHAR" property="password" />
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="gender" jdbcType="INTEGER" property="gender" />
<result column="birthday" jdbcType="DATE" property="birthday" />
<result column="city" jdbcType="VARCHAR" property="city" />
<result column="job" jdbcType="VARCHAR" property="job" />
<result column="personalized_signature" jdbcType="VARCHAR" property="personalizedSignature" />
<result column="source_type" jdbcType="INTEGER" property="sourceType" />
<result column="integration" jdbcType="INTEGER" property="integration" />
<result column="growth" jdbcType="INTEGER" property="growth" />
<result column="luckey_count" jdbcType="INTEGER" property="luckeyCount" />
<result column="history_integration" jdbcType="INTEGER" property="historyIntegration" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_level_id, username, password, nickname, phone, status, create_time, icon,
gender, birthday, city, job, personalized_signature, source_type, integration, growth,
luckey_count, history_integration
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberExample">
delete from ums_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMember">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member (member_level_id, username, password,
nickname, phone, status,
create_time, icon, gender,
birthday, city, job, personalized_signature,
source_type, integration, growth,
luckey_count, history_integration)
values (#{memberLevelId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{icon,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER},
#{birthday,jdbcType=DATE}, #{city,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{personalizedSignature,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER},
#{luckeyCount,jdbcType=INTEGER}, #{historyIntegration,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMember">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberLevelId != null">
member_level_id,
</if>
<if test="username != null">
username,
</if>
<if test="password != null">
password,
</if>
<if test="nickname != null">
nickname,
</if>
<if test="phone != null">
phone,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="icon != null">
icon,
</if>
<if test="gender != null">
gender,
</if>
<if test="birthday != null">
birthday,
</if>
<if test="city != null">
city,
</if>
<if test="job != null">
job,
</if>
<if test="personalizedSignature != null">
personalized_signature,
</if>
<if test="sourceType != null">
source_type,
</if>
<if test="integration != null">
integration,
</if>
<if test="growth != null">
growth,
</if>
<if test="luckeyCount != null">
luckey_count,
</if>
<if test="historyIntegration != null">
history_integration,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberLevelId != null">
#{memberLevelId,jdbcType=BIGINT},
</if>
<if test="username != null">
#{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
#{password,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
#{nickname,jdbcType=VARCHAR},
</if>
<if test="phone != null">
#{phone,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="icon != null">
#{icon,jdbcType=VARCHAR},
</if>
<if test="gender != null">
#{gender,jdbcType=INTEGER},
</if>
<if test="birthday != null">
#{birthday,jdbcType=DATE},
</if>
<if test="city != null">
#{city,jdbcType=VARCHAR},
</if>
<if test="job != null">
#{job,jdbcType=VARCHAR},
</if>
<if test="personalizedSignature != null">
#{personalizedSignature,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
#{sourceType,jdbcType=INTEGER},
</if>
<if test="integration != null">
#{integration,jdbcType=INTEGER},
</if>
<if test="growth != null">
#{growth,jdbcType=INTEGER},
</if>
<if test="luckeyCount != null">
#{luckeyCount,jdbcType=INTEGER},
</if>
<if test="historyIntegration != null">
#{historyIntegration,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberExample" resultType="java.lang.Integer">
select count(*) from ums_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberLevelId != null">
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
</if>
<if test="record.username != null">
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.password != null">
password = #{record.password,jdbcType=VARCHAR},
</if>
<if test="record.nickname != null">
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if test="record.phone != null">
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.icon != null">
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if test="record.gender != null">
gender = #{record.gender,jdbcType=INTEGER},
</if>
<if test="record.birthday != null">
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if test="record.city != null">
city = #{record.city,jdbcType=VARCHAR},
</if>
<if test="record.job != null">
job = #{record.job,jdbcType=VARCHAR},
</if>
<if test="record.personalizedSignature != null">
personalized_signature = #{record.personalizedSignature,jdbcType=VARCHAR},
</if>
<if test="record.sourceType != null">
source_type = #{record.sourceType,jdbcType=INTEGER},
</if>
<if test="record.integration != null">
integration = #{record.integration,jdbcType=INTEGER},
</if>
<if test="record.growth != null">
growth = #{record.growth,jdbcType=INTEGER},
</if>
<if test="record.luckeyCount != null">
luckey_count = #{record.luckeyCount,jdbcType=INTEGER},
</if>
<if test="record.historyIntegration != null">
history_integration = #{record.historyIntegration,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member
set id = #{record.id,jdbcType=BIGINT},
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
username = #{record.username,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
nickname = #{record.nickname,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
icon = #{record.icon,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=INTEGER},
birthday = #{record.birthday,jdbcType=DATE},
city = #{record.city,jdbcType=VARCHAR},
job = #{record.job,jdbcType=VARCHAR},
personalized_signature = #{record.personalizedSignature,jdbcType=VARCHAR},
source_type = #{record.sourceType,jdbcType=INTEGER},
integration = #{record.integration,jdbcType=INTEGER},
growth = #{record.growth,jdbcType=INTEGER},
luckey_count = #{record.luckeyCount,jdbcType=INTEGER},
history_integration = #{record.historyIntegration,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMember">
update ums_member
<set>
<if test="memberLevelId != null">
member_level_id = #{memberLevelId,jdbcType=BIGINT},
</if>
<if test="username != null">
username = #{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
password = #{password,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="icon != null">
icon = #{icon,jdbcType=VARCHAR},
</if>
<if test="gender != null">
gender = #{gender,jdbcType=INTEGER},
</if>
<if test="birthday != null">
birthday = #{birthday,jdbcType=DATE},
</if>
<if test="city != null">
city = #{city,jdbcType=VARCHAR},
</if>
<if test="job != null">
job = #{job,jdbcType=VARCHAR},
</if>
<if test="personalizedSignature != null">
personalized_signature = #{personalizedSignature,jdbcType=VARCHAR},
</if>
<if test="sourceType != null">
source_type = #{sourceType,jdbcType=INTEGER},
</if>
<if test="integration != null">
integration = #{integration,jdbcType=INTEGER},
</if>
<if test="growth != null">
growth = #{growth,jdbcType=INTEGER},
</if>
<if test="luckeyCount != null">
luckey_count = #{luckeyCount,jdbcType=INTEGER},
</if>
<if test="historyIntegration != null">
history_integration = #{historyIntegration,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMember">
update ums_member
set member_level_id = #{memberLevelId,jdbcType=BIGINT},
username = #{username,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
nickname = #{nickname,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
icon = #{icon,jdbcType=VARCHAR},
gender = #{gender,jdbcType=INTEGER},
birthday = #{birthday,jdbcType=DATE},
city = #{city,jdbcType=VARCHAR},
job = #{job,jdbcType=VARCHAR},
personalized_signature = #{personalizedSignature,jdbcType=VARCHAR},
source_type = #{sourceType,jdbcType=INTEGER},
integration = #{integration,jdbcType=INTEGER},
growth = #{growth,jdbcType=INTEGER},
luckey_count = #{luckeyCount,jdbcType=INTEGER},
history_integration = #{historyIntegration,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -176,4 +176,354 @@
tag_id = #{tagId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberMemberTagRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="tag_id" jdbcType="BIGINT" property="tagId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, tag_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberMemberTagRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_member_tag_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_member_tag_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_member_tag_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberMemberTagRelationExample">
delete from ums_member_member_tag_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberMemberTagRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_member_tag_relation (member_id, tag_id)
values (#{memberId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberMemberTagRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_member_tag_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="tagId != null">
tag_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="tagId != null">
#{tagId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberMemberTagRelationExample" resultType="java.lang.Integer">
select count(*) from ums_member_member_tag_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_member_tag_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.tagId != null">
tag_id = #{record.tagId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_member_tag_relation
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
tag_id = #{record.tagId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberMemberTagRelation">
update ums_member_member_tag_relation
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="tagId != null">
tag_id = #{tagId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberMemberTagRelation">
update ums_member_member_tag_relation
set member_id = #{memberId,jdbcType=BIGINT},
tag_id = #{tagId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberMemberTagRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="tag_id" jdbcType="BIGINT" property="tagId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, tag_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberMemberTagRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_member_tag_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_member_tag_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_member_tag_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberMemberTagRelationExample">
delete from ums_member_member_tag_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberMemberTagRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_member_tag_relation (member_id, tag_id)
values (#{memberId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberMemberTagRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_member_tag_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="tagId != null">
tag_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="tagId != null">
#{tagId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberMemberTagRelationExample" resultType="java.lang.Integer">
select count(*) from ums_member_member_tag_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_member_tag_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.tagId != null">
tag_id = #{record.tagId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_member_tag_relation
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
tag_id = #{record.tagId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberMemberTagRelation">
update ums_member_member_tag_relation
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="tagId != null">
tag_id = #{tagId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberMemberTagRelation">
update ums_member_member_tag_relation
set member_id = #{memberId,jdbcType=BIGINT},
tag_id = #{tagId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -176,4 +176,354 @@
product_category_id = #{productCategoryId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberProductCategoryRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="product_category_id" jdbcType="BIGINT" property="productCategoryId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, product_category_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_product_category_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_product_category_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelationExample">
delete from ums_member_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_product_category_relation (member_id, product_category_id)
values (#{memberId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_product_category_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="productCategoryId != null">
product_category_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="productCategoryId != null">
#{productCategoryId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelationExample" resultType="java.lang.Integer">
select count(*) from ums_member_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_product_category_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.productCategoryId != null">
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_product_category_relation
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelation">
update ums_member_product_category_relation
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="productCategoryId != null">
product_category_id = #{productCategoryId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelation">
update ums_member_product_category_relation
set member_id = #{memberId,jdbcType=BIGINT},
product_category_id = #{productCategoryId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberProductCategoryRelation">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="product_category_id" jdbcType="BIGINT" property="productCategoryId" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, product_category_id
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_product_category_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_product_category_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelationExample">
delete from ums_member_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_product_category_relation (member_id, product_category_id)
values (#{memberId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelation">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_product_category_relation
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="productCategoryId != null">
product_category_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="productCategoryId != null">
#{productCategoryId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelationExample" resultType="java.lang.Integer">
select count(*) from ums_member_product_category_relation
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_product_category_relation
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.productCategoryId != null">
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_product_category_relation
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelation">
update ums_member_product_category_relation
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="productCategoryId != null">
product_category_id = #{productCategoryId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberProductCategoryRelation">
update ums_member_product_category_relation
set member_id = #{memberId,jdbcType=BIGINT},
product_category_id = #{productCategoryId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -240,4 +240,482 @@
default_status = #{defaultStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberReceiveAddress">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="phone_number" jdbcType="VARCHAR" property="phoneNumber" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="post_code" jdbcType="VARCHAR" property="postCode" />
<result column="default_status" jdbcType="INTEGER" property="defaultStatus" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, name, phone_number, address, post_code, default_status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberReceiveAddressExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_receive_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_receive_address
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_receive_address
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberReceiveAddressExample">
delete from ums_member_receive_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberReceiveAddress">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_receive_address (member_id, name, phone_number,
address, post_code, default_status
)
values (#{memberId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{postCode,jdbcType=VARCHAR}, #{defaultStatus,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberReceiveAddress">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_receive_address
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="name != null">
name,
</if>
<if test="phoneNumber != null">
phone_number,
</if>
<if test="address != null">
address,
</if>
<if test="postCode != null">
post_code,
</if>
<if test="defaultStatus != null">
default_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="phoneNumber != null">
#{phoneNumber,jdbcType=VARCHAR},
</if>
<if test="address != null">
#{address,jdbcType=VARCHAR},
</if>
<if test="postCode != null">
#{postCode,jdbcType=VARCHAR},
</if>
<if test="defaultStatus != null">
#{defaultStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberReceiveAddressExample" resultType="java.lang.Integer">
select count(*) from ums_member_receive_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_receive_address
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.phoneNumber != null">
phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
</if>
<if test="record.address != null">
address = #{record.address,jdbcType=VARCHAR},
</if>
<if test="record.postCode != null">
post_code = #{record.postCode,jdbcType=VARCHAR},
</if>
<if test="record.defaultStatus != null">
default_status = #{record.defaultStatus,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_receive_address
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
post_code = #{record.postCode,jdbcType=VARCHAR},
default_status = #{record.defaultStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberReceiveAddress">
update ums_member_receive_address
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="phoneNumber != null">
phone_number = #{phoneNumber,jdbcType=VARCHAR},
</if>
<if test="address != null">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="postCode != null">
post_code = #{postCode,jdbcType=VARCHAR},
</if>
<if test="defaultStatus != null">
default_status = #{defaultStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberReceiveAddress">
update ums_member_receive_address
set member_id = #{memberId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
post_code = #{postCode,jdbcType=VARCHAR},
default_status = #{defaultStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberReceiveAddress">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="phone_number" jdbcType="VARCHAR" property="phoneNumber" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="post_code" jdbcType="VARCHAR" property="postCode" />
<result column="default_status" jdbcType="INTEGER" property="defaultStatus" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, name, phone_number, address, post_code, default_status
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberReceiveAddressExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_receive_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_receive_address
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_receive_address
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberReceiveAddressExample">
delete from ums_member_receive_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberReceiveAddress">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_receive_address (member_id, name, phone_number,
address, post_code, default_status
)
values (#{memberId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{postCode,jdbcType=VARCHAR}, #{defaultStatus,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberReceiveAddress">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_receive_address
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="name != null">
name,
</if>
<if test="phoneNumber != null">
phone_number,
</if>
<if test="address != null">
address,
</if>
<if test="postCode != null">
post_code,
</if>
<if test="defaultStatus != null">
default_status,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="phoneNumber != null">
#{phoneNumber,jdbcType=VARCHAR},
</if>
<if test="address != null">
#{address,jdbcType=VARCHAR},
</if>
<if test="postCode != null">
#{postCode,jdbcType=VARCHAR},
</if>
<if test="defaultStatus != null">
#{defaultStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberReceiveAddressExample" resultType="java.lang.Integer">
select count(*) from ums_member_receive_address
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_receive_address
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.phoneNumber != null">
phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
</if>
<if test="record.address != null">
address = #{record.address,jdbcType=VARCHAR},
</if>
<if test="record.postCode != null">
post_code = #{record.postCode,jdbcType=VARCHAR},
</if>
<if test="record.defaultStatus != null">
default_status = #{record.defaultStatus,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_receive_address
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
post_code = #{record.postCode,jdbcType=VARCHAR},
default_status = #{record.defaultStatus,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberReceiveAddress">
update ums_member_receive_address
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="phoneNumber != null">
phone_number = #{phoneNumber,jdbcType=VARCHAR},
</if>
<if test="address != null">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="postCode != null">
post_code = #{postCode,jdbcType=VARCHAR},
</if>
<if test="defaultStatus != null">
default_status = #{defaultStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberReceiveAddress">
update ums_member_receive_address
set member_id = #{memberId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
post_code = #{postCode,jdbcType=VARCHAR},
default_status = #{defaultStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -241,4 +241,484 @@
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberRuleSetting">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="continue_sign_day" jdbcType="INTEGER" property="continueSignDay" />
<result column="continue_sign_point" jdbcType="INTEGER" property="continueSignPoint" />
<result column="consume_per_point" jdbcType="DECIMAL" property="consumePerPoint" />
<result column="low_order_amount" jdbcType="DECIMAL" property="lowOrderAmount" />
<result column="max_point_per_order" jdbcType="INTEGER" property="maxPointPerOrder" />
<result column="type" jdbcType="INTEGER" property="type" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, continue_sign_day, continue_sign_point, consume_per_point, low_order_amount,
max_point_per_order, type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberRuleSettingExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_rule_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_rule_setting
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_rule_setting
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberRuleSettingExample">
delete from ums_member_rule_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberRuleSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_rule_setting (continue_sign_day, continue_sign_point,
consume_per_point, low_order_amount, max_point_per_order,
type)
values (#{continueSignDay,jdbcType=INTEGER}, #{continueSignPoint,jdbcType=INTEGER},
#{consumePerPoint,jdbcType=DECIMAL}, #{lowOrderAmount,jdbcType=DECIMAL}, #{maxPointPerOrder,jdbcType=INTEGER},
#{type,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberRuleSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_rule_setting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="continueSignDay != null">
continue_sign_day,
</if>
<if test="continueSignPoint != null">
continue_sign_point,
</if>
<if test="consumePerPoint != null">
consume_per_point,
</if>
<if test="lowOrderAmount != null">
low_order_amount,
</if>
<if test="maxPointPerOrder != null">
max_point_per_order,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="continueSignDay != null">
#{continueSignDay,jdbcType=INTEGER},
</if>
<if test="continueSignPoint != null">
#{continueSignPoint,jdbcType=INTEGER},
</if>
<if test="consumePerPoint != null">
#{consumePerPoint,jdbcType=DECIMAL},
</if>
<if test="lowOrderAmount != null">
#{lowOrderAmount,jdbcType=DECIMAL},
</if>
<if test="maxPointPerOrder != null">
#{maxPointPerOrder,jdbcType=INTEGER},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberRuleSettingExample" resultType="java.lang.Integer">
select count(*) from ums_member_rule_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_rule_setting
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.continueSignDay != null">
continue_sign_day = #{record.continueSignDay,jdbcType=INTEGER},
</if>
<if test="record.continueSignPoint != null">
continue_sign_point = #{record.continueSignPoint,jdbcType=INTEGER},
</if>
<if test="record.consumePerPoint != null">
consume_per_point = #{record.consumePerPoint,jdbcType=DECIMAL},
</if>
<if test="record.lowOrderAmount != null">
low_order_amount = #{record.lowOrderAmount,jdbcType=DECIMAL},
</if>
<if test="record.maxPointPerOrder != null">
max_point_per_order = #{record.maxPointPerOrder,jdbcType=INTEGER},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_rule_setting
set id = #{record.id,jdbcType=BIGINT},
continue_sign_day = #{record.continueSignDay,jdbcType=INTEGER},
continue_sign_point = #{record.continueSignPoint,jdbcType=INTEGER},
consume_per_point = #{record.consumePerPoint,jdbcType=DECIMAL},
low_order_amount = #{record.lowOrderAmount,jdbcType=DECIMAL},
max_point_per_order = #{record.maxPointPerOrder,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberRuleSetting">
update ums_member_rule_setting
<set>
<if test="continueSignDay != null">
continue_sign_day = #{continueSignDay,jdbcType=INTEGER},
</if>
<if test="continueSignPoint != null">
continue_sign_point = #{continueSignPoint,jdbcType=INTEGER},
</if>
<if test="consumePerPoint != null">
consume_per_point = #{consumePerPoint,jdbcType=DECIMAL},
</if>
<if test="lowOrderAmount != null">
low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL},
</if>
<if test="maxPointPerOrder != null">
max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberRuleSetting">
update ums_member_rule_setting
set continue_sign_day = #{continueSignDay,jdbcType=INTEGER},
continue_sign_point = #{continueSignPoint,jdbcType=INTEGER},
consume_per_point = #{consumePerPoint,jdbcType=DECIMAL},
low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL},
max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberRuleSetting">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="continue_sign_day" jdbcType="INTEGER" property="continueSignDay" />
<result column="continue_sign_point" jdbcType="INTEGER" property="continueSignPoint" />
<result column="consume_per_point" jdbcType="DECIMAL" property="consumePerPoint" />
<result column="low_order_amount" jdbcType="DECIMAL" property="lowOrderAmount" />
<result column="max_point_per_order" jdbcType="INTEGER" property="maxPointPerOrder" />
<result column="type" jdbcType="INTEGER" property="type" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, continue_sign_day, continue_sign_point, consume_per_point, low_order_amount,
max_point_per_order, type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberRuleSettingExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_rule_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_rule_setting
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_rule_setting
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberRuleSettingExample">
delete from ums_member_rule_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberRuleSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_rule_setting (continue_sign_day, continue_sign_point,
consume_per_point, low_order_amount, max_point_per_order,
type)
values (#{continueSignDay,jdbcType=INTEGER}, #{continueSignPoint,jdbcType=INTEGER},
#{consumePerPoint,jdbcType=DECIMAL}, #{lowOrderAmount,jdbcType=DECIMAL}, #{maxPointPerOrder,jdbcType=INTEGER},
#{type,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberRuleSetting">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_rule_setting
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="continueSignDay != null">
continue_sign_day,
</if>
<if test="continueSignPoint != null">
continue_sign_point,
</if>
<if test="consumePerPoint != null">
consume_per_point,
</if>
<if test="lowOrderAmount != null">
low_order_amount,
</if>
<if test="maxPointPerOrder != null">
max_point_per_order,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="continueSignDay != null">
#{continueSignDay,jdbcType=INTEGER},
</if>
<if test="continueSignPoint != null">
#{continueSignPoint,jdbcType=INTEGER},
</if>
<if test="consumePerPoint != null">
#{consumePerPoint,jdbcType=DECIMAL},
</if>
<if test="lowOrderAmount != null">
#{lowOrderAmount,jdbcType=DECIMAL},
</if>
<if test="maxPointPerOrder != null">
#{maxPointPerOrder,jdbcType=INTEGER},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberRuleSettingExample" resultType="java.lang.Integer">
select count(*) from ums_member_rule_setting
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_rule_setting
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.continueSignDay != null">
continue_sign_day = #{record.continueSignDay,jdbcType=INTEGER},
</if>
<if test="record.continueSignPoint != null">
continue_sign_point = #{record.continueSignPoint,jdbcType=INTEGER},
</if>
<if test="record.consumePerPoint != null">
consume_per_point = #{record.consumePerPoint,jdbcType=DECIMAL},
</if>
<if test="record.lowOrderAmount != null">
low_order_amount = #{record.lowOrderAmount,jdbcType=DECIMAL},
</if>
<if test="record.maxPointPerOrder != null">
max_point_per_order = #{record.maxPointPerOrder,jdbcType=INTEGER},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_rule_setting
set id = #{record.id,jdbcType=BIGINT},
continue_sign_day = #{record.continueSignDay,jdbcType=INTEGER},
continue_sign_point = #{record.continueSignPoint,jdbcType=INTEGER},
consume_per_point = #{record.consumePerPoint,jdbcType=DECIMAL},
low_order_amount = #{record.lowOrderAmount,jdbcType=DECIMAL},
max_point_per_order = #{record.maxPointPerOrder,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberRuleSetting">
update ums_member_rule_setting
<set>
<if test="continueSignDay != null">
continue_sign_day = #{continueSignDay,jdbcType=INTEGER},
</if>
<if test="continueSignPoint != null">
continue_sign_point = #{continueSignPoint,jdbcType=INTEGER},
</if>
<if test="consumePerPoint != null">
consume_per_point = #{consumePerPoint,jdbcType=DECIMAL},
</if>
<if test="lowOrderAmount != null">
low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL},
</if>
<if test="maxPointPerOrder != null">
max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberRuleSetting">
update ums_member_rule_setting
set continue_sign_day = #{continueSignDay,jdbcType=INTEGER},
continue_sign_point = #{continueSignPoint,jdbcType=INTEGER},
consume_per_point = #{consumePerPoint,jdbcType=DECIMAL},
low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL},
max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -383,4 +383,768 @@
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberStatisticsInfo">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="consume_amount" jdbcType="DECIMAL" property="consumeAmount" />
<result column="order_count" jdbcType="INTEGER" property="orderCount" />
<result column="coupon_count" jdbcType="INTEGER" property="couponCount" />
<result column="comment_count" jdbcType="INTEGER" property="commentCount" />
<result column="return_order_count" jdbcType="INTEGER" property="returnOrderCount" />
<result column="login_count" jdbcType="INTEGER" property="loginCount" />
<result column="attend_count" jdbcType="INTEGER" property="attendCount" />
<result column="fans_count" jdbcType="INTEGER" property="fansCount" />
<result column="collect_product_count" jdbcType="INTEGER" property="collectProductCount" />
<result column="collect_subject_count" jdbcType="INTEGER" property="collectSubjectCount" />
<result column="collect_topic_count" jdbcType="INTEGER" property="collectTopicCount" />
<result column="collect_comment_count" jdbcType="INTEGER" property="collectCommentCount" />
<result column="invite_friend_count" jdbcType="INTEGER" property="inviteFriendCount" />
<result column="recent_order_time" jdbcType="TIMESTAMP" property="recentOrderTime" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, consume_amount, order_count, coupon_count, comment_count, return_order_count,
login_count, attend_count, fans_count, collect_product_count, collect_subject_count,
collect_topic_count, collect_comment_count, invite_friend_count, recent_order_time
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberStatisticsInfoExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_statistics_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_statistics_info
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_statistics_info
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberStatisticsInfoExample">
delete from ums_member_statistics_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberStatisticsInfo">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_statistics_info (member_id, consume_amount, order_count,
coupon_count, comment_count, return_order_count,
login_count, attend_count, fans_count,
collect_product_count, collect_subject_count,
collect_topic_count, collect_comment_count,
invite_friend_count, recent_order_time)
values (#{memberId,jdbcType=BIGINT}, #{consumeAmount,jdbcType=DECIMAL}, #{orderCount,jdbcType=INTEGER},
#{couponCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER}, #{returnOrderCount,jdbcType=INTEGER},
#{loginCount,jdbcType=INTEGER}, #{attendCount,jdbcType=INTEGER}, #{fansCount,jdbcType=INTEGER},
#{collectProductCount,jdbcType=INTEGER}, #{collectSubjectCount,jdbcType=INTEGER},
#{collectTopicCount,jdbcType=INTEGER}, #{collectCommentCount,jdbcType=INTEGER},
#{inviteFriendCount,jdbcType=INTEGER}, #{recentOrderTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberStatisticsInfo">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_statistics_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="consumeAmount != null">
consume_amount,
</if>
<if test="orderCount != null">
order_count,
</if>
<if test="couponCount != null">
coupon_count,
</if>
<if test="commentCount != null">
comment_count,
</if>
<if test="returnOrderCount != null">
return_order_count,
</if>
<if test="loginCount != null">
login_count,
</if>
<if test="attendCount != null">
attend_count,
</if>
<if test="fansCount != null">
fans_count,
</if>
<if test="collectProductCount != null">
collect_product_count,
</if>
<if test="collectSubjectCount != null">
collect_subject_count,
</if>
<if test="collectTopicCount != null">
collect_topic_count,
</if>
<if test="collectCommentCount != null">
collect_comment_count,
</if>
<if test="inviteFriendCount != null">
invite_friend_count,
</if>
<if test="recentOrderTime != null">
recent_order_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="consumeAmount != null">
#{consumeAmount,jdbcType=DECIMAL},
</if>
<if test="orderCount != null">
#{orderCount,jdbcType=INTEGER},
</if>
<if test="couponCount != null">
#{couponCount,jdbcType=INTEGER},
</if>
<if test="commentCount != null">
#{commentCount,jdbcType=INTEGER},
</if>
<if test="returnOrderCount != null">
#{returnOrderCount,jdbcType=INTEGER},
</if>
<if test="loginCount != null">
#{loginCount,jdbcType=INTEGER},
</if>
<if test="attendCount != null">
#{attendCount,jdbcType=INTEGER},
</if>
<if test="fansCount != null">
#{fansCount,jdbcType=INTEGER},
</if>
<if test="collectProductCount != null">
#{collectProductCount,jdbcType=INTEGER},
</if>
<if test="collectSubjectCount != null">
#{collectSubjectCount,jdbcType=INTEGER},
</if>
<if test="collectTopicCount != null">
#{collectTopicCount,jdbcType=INTEGER},
</if>
<if test="collectCommentCount != null">
#{collectCommentCount,jdbcType=INTEGER},
</if>
<if test="inviteFriendCount != null">
#{inviteFriendCount,jdbcType=INTEGER},
</if>
<if test="recentOrderTime != null">
#{recentOrderTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberStatisticsInfoExample" resultType="java.lang.Integer">
select count(*) from ums_member_statistics_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_statistics_info
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.consumeAmount != null">
consume_amount = #{record.consumeAmount,jdbcType=DECIMAL},
</if>
<if test="record.orderCount != null">
order_count = #{record.orderCount,jdbcType=INTEGER},
</if>
<if test="record.couponCount != null">
coupon_count = #{record.couponCount,jdbcType=INTEGER},
</if>
<if test="record.commentCount != null">
comment_count = #{record.commentCount,jdbcType=INTEGER},
</if>
<if test="record.returnOrderCount != null">
return_order_count = #{record.returnOrderCount,jdbcType=INTEGER},
</if>
<if test="record.loginCount != null">
login_count = #{record.loginCount,jdbcType=INTEGER},
</if>
<if test="record.attendCount != null">
attend_count = #{record.attendCount,jdbcType=INTEGER},
</if>
<if test="record.fansCount != null">
fans_count = #{record.fansCount,jdbcType=INTEGER},
</if>
<if test="record.collectProductCount != null">
collect_product_count = #{record.collectProductCount,jdbcType=INTEGER},
</if>
<if test="record.collectSubjectCount != null">
collect_subject_count = #{record.collectSubjectCount,jdbcType=INTEGER},
</if>
<if test="record.collectTopicCount != null">
collect_topic_count = #{record.collectTopicCount,jdbcType=INTEGER},
</if>
<if test="record.collectCommentCount != null">
collect_comment_count = #{record.collectCommentCount,jdbcType=INTEGER},
</if>
<if test="record.inviteFriendCount != null">
invite_friend_count = #{record.inviteFriendCount,jdbcType=INTEGER},
</if>
<if test="record.recentOrderTime != null">
recent_order_time = #{record.recentOrderTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_statistics_info
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
consume_amount = #{record.consumeAmount,jdbcType=DECIMAL},
order_count = #{record.orderCount,jdbcType=INTEGER},
coupon_count = #{record.couponCount,jdbcType=INTEGER},
comment_count = #{record.commentCount,jdbcType=INTEGER},
return_order_count = #{record.returnOrderCount,jdbcType=INTEGER},
login_count = #{record.loginCount,jdbcType=INTEGER},
attend_count = #{record.attendCount,jdbcType=INTEGER},
fans_count = #{record.fansCount,jdbcType=INTEGER},
collect_product_count = #{record.collectProductCount,jdbcType=INTEGER},
collect_subject_count = #{record.collectSubjectCount,jdbcType=INTEGER},
collect_topic_count = #{record.collectTopicCount,jdbcType=INTEGER},
collect_comment_count = #{record.collectCommentCount,jdbcType=INTEGER},
invite_friend_count = #{record.inviteFriendCount,jdbcType=INTEGER},
recent_order_time = #{record.recentOrderTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberStatisticsInfo">
update ums_member_statistics_info
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="consumeAmount != null">
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
</if>
<if test="orderCount != null">
order_count = #{orderCount,jdbcType=INTEGER},
</if>
<if test="couponCount != null">
coupon_count = #{couponCount,jdbcType=INTEGER},
</if>
<if test="commentCount != null">
comment_count = #{commentCount,jdbcType=INTEGER},
</if>
<if test="returnOrderCount != null">
return_order_count = #{returnOrderCount,jdbcType=INTEGER},
</if>
<if test="loginCount != null">
login_count = #{loginCount,jdbcType=INTEGER},
</if>
<if test="attendCount != null">
attend_count = #{attendCount,jdbcType=INTEGER},
</if>
<if test="fansCount != null">
fans_count = #{fansCount,jdbcType=INTEGER},
</if>
<if test="collectProductCount != null">
collect_product_count = #{collectProductCount,jdbcType=INTEGER},
</if>
<if test="collectSubjectCount != null">
collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER},
</if>
<if test="collectTopicCount != null">
collect_topic_count = #{collectTopicCount,jdbcType=INTEGER},
</if>
<if test="collectCommentCount != null">
collect_comment_count = #{collectCommentCount,jdbcType=INTEGER},
</if>
<if test="inviteFriendCount != null">
invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER},
</if>
<if test="recentOrderTime != null">
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberStatisticsInfo">
update ums_member_statistics_info
set member_id = #{memberId,jdbcType=BIGINT},
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
order_count = #{orderCount,jdbcType=INTEGER},
coupon_count = #{couponCount,jdbcType=INTEGER},
comment_count = #{commentCount,jdbcType=INTEGER},
return_order_count = #{returnOrderCount,jdbcType=INTEGER},
login_count = #{loginCount,jdbcType=INTEGER},
attend_count = #{attendCount,jdbcType=INTEGER},
fans_count = #{fansCount,jdbcType=INTEGER},
collect_product_count = #{collectProductCount,jdbcType=INTEGER},
collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER},
collect_topic_count = #{collectTopicCount,jdbcType=INTEGER},
collect_comment_count = #{collectCommentCount,jdbcType=INTEGER},
invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER},
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberStatisticsInfo">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="member_id" jdbcType="BIGINT" property="memberId" />
<result column="consume_amount" jdbcType="DECIMAL" property="consumeAmount" />
<result column="order_count" jdbcType="INTEGER" property="orderCount" />
<result column="coupon_count" jdbcType="INTEGER" property="couponCount" />
<result column="comment_count" jdbcType="INTEGER" property="commentCount" />
<result column="return_order_count" jdbcType="INTEGER" property="returnOrderCount" />
<result column="login_count" jdbcType="INTEGER" property="loginCount" />
<result column="attend_count" jdbcType="INTEGER" property="attendCount" />
<result column="fans_count" jdbcType="INTEGER" property="fansCount" />
<result column="collect_product_count" jdbcType="INTEGER" property="collectProductCount" />
<result column="collect_subject_count" jdbcType="INTEGER" property="collectSubjectCount" />
<result column="collect_topic_count" jdbcType="INTEGER" property="collectTopicCount" />
<result column="collect_comment_count" jdbcType="INTEGER" property="collectCommentCount" />
<result column="invite_friend_count" jdbcType="INTEGER" property="inviteFriendCount" />
<result column="recent_order_time" jdbcType="TIMESTAMP" property="recentOrderTime" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, member_id, consume_amount, order_count, coupon_count, comment_count, return_order_count,
login_count, attend_count, fans_count, collect_product_count, collect_subject_count,
collect_topic_count, collect_comment_count, invite_friend_count, recent_order_time
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberStatisticsInfoExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_statistics_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_statistics_info
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_statistics_info
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberStatisticsInfoExample">
delete from ums_member_statistics_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberStatisticsInfo">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_statistics_info (member_id, consume_amount, order_count,
coupon_count, comment_count, return_order_count,
login_count, attend_count, fans_count,
collect_product_count, collect_subject_count,
collect_topic_count, collect_comment_count,
invite_friend_count, recent_order_time)
values (#{memberId,jdbcType=BIGINT}, #{consumeAmount,jdbcType=DECIMAL}, #{orderCount,jdbcType=INTEGER},
#{couponCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER}, #{returnOrderCount,jdbcType=INTEGER},
#{loginCount,jdbcType=INTEGER}, #{attendCount,jdbcType=INTEGER}, #{fansCount,jdbcType=INTEGER},
#{collectProductCount,jdbcType=INTEGER}, #{collectSubjectCount,jdbcType=INTEGER},
#{collectTopicCount,jdbcType=INTEGER}, #{collectCommentCount,jdbcType=INTEGER},
#{inviteFriendCount,jdbcType=INTEGER}, #{recentOrderTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberStatisticsInfo">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_statistics_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="consumeAmount != null">
consume_amount,
</if>
<if test="orderCount != null">
order_count,
</if>
<if test="couponCount != null">
coupon_count,
</if>
<if test="commentCount != null">
comment_count,
</if>
<if test="returnOrderCount != null">
return_order_count,
</if>
<if test="loginCount != null">
login_count,
</if>
<if test="attendCount != null">
attend_count,
</if>
<if test="fansCount != null">
fans_count,
</if>
<if test="collectProductCount != null">
collect_product_count,
</if>
<if test="collectSubjectCount != null">
collect_subject_count,
</if>
<if test="collectTopicCount != null">
collect_topic_count,
</if>
<if test="collectCommentCount != null">
collect_comment_count,
</if>
<if test="inviteFriendCount != null">
invite_friend_count,
</if>
<if test="recentOrderTime != null">
recent_order_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=BIGINT},
</if>
<if test="consumeAmount != null">
#{consumeAmount,jdbcType=DECIMAL},
</if>
<if test="orderCount != null">
#{orderCount,jdbcType=INTEGER},
</if>
<if test="couponCount != null">
#{couponCount,jdbcType=INTEGER},
</if>
<if test="commentCount != null">
#{commentCount,jdbcType=INTEGER},
</if>
<if test="returnOrderCount != null">
#{returnOrderCount,jdbcType=INTEGER},
</if>
<if test="loginCount != null">
#{loginCount,jdbcType=INTEGER},
</if>
<if test="attendCount != null">
#{attendCount,jdbcType=INTEGER},
</if>
<if test="fansCount != null">
#{fansCount,jdbcType=INTEGER},
</if>
<if test="collectProductCount != null">
#{collectProductCount,jdbcType=INTEGER},
</if>
<if test="collectSubjectCount != null">
#{collectSubjectCount,jdbcType=INTEGER},
</if>
<if test="collectTopicCount != null">
#{collectTopicCount,jdbcType=INTEGER},
</if>
<if test="collectCommentCount != null">
#{collectCommentCount,jdbcType=INTEGER},
</if>
<if test="inviteFriendCount != null">
#{inviteFriendCount,jdbcType=INTEGER},
</if>
<if test="recentOrderTime != null">
#{recentOrderTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberStatisticsInfoExample" resultType="java.lang.Integer">
select count(*) from ums_member_statistics_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_statistics_info
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.memberId != null">
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if test="record.consumeAmount != null">
consume_amount = #{record.consumeAmount,jdbcType=DECIMAL},
</if>
<if test="record.orderCount != null">
order_count = #{record.orderCount,jdbcType=INTEGER},
</if>
<if test="record.couponCount != null">
coupon_count = #{record.couponCount,jdbcType=INTEGER},
</if>
<if test="record.commentCount != null">
comment_count = #{record.commentCount,jdbcType=INTEGER},
</if>
<if test="record.returnOrderCount != null">
return_order_count = #{record.returnOrderCount,jdbcType=INTEGER},
</if>
<if test="record.loginCount != null">
login_count = #{record.loginCount,jdbcType=INTEGER},
</if>
<if test="record.attendCount != null">
attend_count = #{record.attendCount,jdbcType=INTEGER},
</if>
<if test="record.fansCount != null">
fans_count = #{record.fansCount,jdbcType=INTEGER},
</if>
<if test="record.collectProductCount != null">
collect_product_count = #{record.collectProductCount,jdbcType=INTEGER},
</if>
<if test="record.collectSubjectCount != null">
collect_subject_count = #{record.collectSubjectCount,jdbcType=INTEGER},
</if>
<if test="record.collectTopicCount != null">
collect_topic_count = #{record.collectTopicCount,jdbcType=INTEGER},
</if>
<if test="record.collectCommentCount != null">
collect_comment_count = #{record.collectCommentCount,jdbcType=INTEGER},
</if>
<if test="record.inviteFriendCount != null">
invite_friend_count = #{record.inviteFriendCount,jdbcType=INTEGER},
</if>
<if test="record.recentOrderTime != null">
recent_order_time = #{record.recentOrderTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_statistics_info
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
consume_amount = #{record.consumeAmount,jdbcType=DECIMAL},
order_count = #{record.orderCount,jdbcType=INTEGER},
coupon_count = #{record.couponCount,jdbcType=INTEGER},
comment_count = #{record.commentCount,jdbcType=INTEGER},
return_order_count = #{record.returnOrderCount,jdbcType=INTEGER},
login_count = #{record.loginCount,jdbcType=INTEGER},
attend_count = #{record.attendCount,jdbcType=INTEGER},
fans_count = #{record.fansCount,jdbcType=INTEGER},
collect_product_count = #{record.collectProductCount,jdbcType=INTEGER},
collect_subject_count = #{record.collectSubjectCount,jdbcType=INTEGER},
collect_topic_count = #{record.collectTopicCount,jdbcType=INTEGER},
collect_comment_count = #{record.collectCommentCount,jdbcType=INTEGER},
invite_friend_count = #{record.inviteFriendCount,jdbcType=INTEGER},
recent_order_time = #{record.recentOrderTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberStatisticsInfo">
update ums_member_statistics_info
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if test="consumeAmount != null">
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
</if>
<if test="orderCount != null">
order_count = #{orderCount,jdbcType=INTEGER},
</if>
<if test="couponCount != null">
coupon_count = #{couponCount,jdbcType=INTEGER},
</if>
<if test="commentCount != null">
comment_count = #{commentCount,jdbcType=INTEGER},
</if>
<if test="returnOrderCount != null">
return_order_count = #{returnOrderCount,jdbcType=INTEGER},
</if>
<if test="loginCount != null">
login_count = #{loginCount,jdbcType=INTEGER},
</if>
<if test="attendCount != null">
attend_count = #{attendCount,jdbcType=INTEGER},
</if>
<if test="fansCount != null">
fans_count = #{fansCount,jdbcType=INTEGER},
</if>
<if test="collectProductCount != null">
collect_product_count = #{collectProductCount,jdbcType=INTEGER},
</if>
<if test="collectSubjectCount != null">
collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER},
</if>
<if test="collectTopicCount != null">
collect_topic_count = #{collectTopicCount,jdbcType=INTEGER},
</if>
<if test="collectCommentCount != null">
collect_comment_count = #{collectCommentCount,jdbcType=INTEGER},
</if>
<if test="inviteFriendCount != null">
invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER},
</if>
<if test="recentOrderTime != null">
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberStatisticsInfo">
update ums_member_statistics_info
set member_id = #{memberId,jdbcType=BIGINT},
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
order_count = #{orderCount,jdbcType=INTEGER},
coupon_count = #{couponCount,jdbcType=INTEGER},
comment_count = #{commentCount,jdbcType=INTEGER},
return_order_count = #{returnOrderCount,jdbcType=INTEGER},
login_count = #{loginCount,jdbcType=INTEGER},
attend_count = #{attendCount,jdbcType=INTEGER},
fans_count = #{fansCount,jdbcType=INTEGER},
collect_product_count = #{collectProductCount,jdbcType=INTEGER},
collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER},
collect_topic_count = #{collectTopicCount,jdbcType=INTEGER},
collect_comment_count = #{collectCommentCount,jdbcType=INTEGER},
invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER},
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -193,4 +193,388 @@
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberTag">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="finish_order_count" jdbcType="INTEGER" property="finishOrderCount" />
<result column="finish_order_amount" jdbcType="DECIMAL" property="finishOrderAmount" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, finish_order_count, finish_order_amount
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberTagExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_tag
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_tag
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_tag
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberTagExample">
delete from ums_member_tag
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberTag">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_tag (name, finish_order_count, finish_order_amount
)
values (#{name,jdbcType=VARCHAR}, #{finishOrderCount,jdbcType=INTEGER}, #{finishOrderAmount,jdbcType=DECIMAL}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberTag">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_tag
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="finishOrderCount != null">
finish_order_count,
</if>
<if test="finishOrderAmount != null">
finish_order_amount,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="finishOrderCount != null">
#{finishOrderCount,jdbcType=INTEGER},
</if>
<if test="finishOrderAmount != null">
#{finishOrderAmount,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberTagExample" resultType="java.lang.Integer">
select count(*) from ums_member_tag
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_tag
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.finishOrderCount != null">
finish_order_count = #{record.finishOrderCount,jdbcType=INTEGER},
</if>
<if test="record.finishOrderAmount != null">
finish_order_amount = #{record.finishOrderAmount,jdbcType=DECIMAL},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_tag
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
finish_order_count = #{record.finishOrderCount,jdbcType=INTEGER},
finish_order_amount = #{record.finishOrderAmount,jdbcType=DECIMAL}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberTag">
update ums_member_tag
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="finishOrderCount != null">
finish_order_count = #{finishOrderCount,jdbcType=INTEGER},
</if>
<if test="finishOrderAmount != null">
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberTag">
update ums_member_tag
set name = #{name,jdbcType=VARCHAR},
finish_order_count = #{finishOrderCount,jdbcType=INTEGER},
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberTag">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="finish_order_count" jdbcType="INTEGER" property="finishOrderCount" />
<result column="finish_order_amount" jdbcType="DECIMAL" property="finishOrderAmount" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, finish_order_count, finish_order_amount
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberTagExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_tag
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_tag
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_tag
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberTagExample">
delete from ums_member_tag
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberTag">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_tag (name, finish_order_count, finish_order_amount
)
values (#{name,jdbcType=VARCHAR}, #{finishOrderCount,jdbcType=INTEGER}, #{finishOrderAmount,jdbcType=DECIMAL}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberTag">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_tag
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="finishOrderCount != null">
finish_order_count,
</if>
<if test="finishOrderAmount != null">
finish_order_amount,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="finishOrderCount != null">
#{finishOrderCount,jdbcType=INTEGER},
</if>
<if test="finishOrderAmount != null">
#{finishOrderAmount,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberTagExample" resultType="java.lang.Integer">
select count(*) from ums_member_tag
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_tag
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.finishOrderCount != null">
finish_order_count = #{record.finishOrderCount,jdbcType=INTEGER},
</if>
<if test="record.finishOrderAmount != null">
finish_order_amount = #{record.finishOrderAmount,jdbcType=DECIMAL},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_tag
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
finish_order_count = #{record.finishOrderCount,jdbcType=INTEGER},
finish_order_amount = #{record.finishOrderAmount,jdbcType=DECIMAL}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberTag">
update ums_member_tag
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="finishOrderCount != null">
finish_order_count = #{finishOrderCount,jdbcType=INTEGER},
</if>
<if test="finishOrderAmount != null">
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberTag">
update ums_member_tag
set name = #{name,jdbcType=VARCHAR},
finish_order_count = #{finishOrderCount,jdbcType=INTEGER},
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

View File

@ -208,4 +208,418 @@
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberTask">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="growth" jdbcType="INTEGER" property="growth" />
<result column="intergration" jdbcType="INTEGER" property="intergration" />
<result column="type" jdbcType="INTEGER" property="type" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, growth, intergration, type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberTaskExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_task
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_task
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_task
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberTaskExample">
delete from ums_member_task
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberTask">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_task (name, growth, intergration,
type)
values (#{name,jdbcType=VARCHAR}, #{growth,jdbcType=INTEGER}, #{intergration,jdbcType=INTEGER},
#{type,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberTask">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_task
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="growth != null">
growth,
</if>
<if test="intergration != null">
intergration,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="growth != null">
#{growth,jdbcType=INTEGER},
</if>
<if test="intergration != null">
#{intergration,jdbcType=INTEGER},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberTaskExample" resultType="java.lang.Integer">
select count(*) from ums_member_task
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_task
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.growth != null">
growth = #{record.growth,jdbcType=INTEGER},
</if>
<if test="record.intergration != null">
intergration = #{record.intergration,jdbcType=INTEGER},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_task
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
growth = #{record.growth,jdbcType=INTEGER},
intergration = #{record.intergration,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberTask">
update ums_member_task
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="growth != null">
growth = #{growth,jdbcType=INTEGER},
</if>
<if test="intergration != null">
intergration = #{intergration,jdbcType=INTEGER},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberTask">
update ums_member_task
set name = #{name,jdbcType=VARCHAR},
growth = #{growth,jdbcType=INTEGER},
intergration = #{intergration,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap id="BaseResultMap" type="com.macro.mall.model.UmsMemberTask">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="growth" jdbcType="INTEGER" property="growth" />
<result column="intergration" jdbcType="INTEGER" property="intergration" />
<result column="type" jdbcType="INTEGER" property="type" />
</resultMap>
<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">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, growth, intergration, type
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.UmsMemberTaskExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ums_member_task
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ums_member_task
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ums_member_task
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.UmsMemberTaskExample">
delete from ums_member_task
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.UmsMemberTask">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_task (name, growth, intergration,
type)
values (#{name,jdbcType=VARCHAR}, #{growth,jdbcType=INTEGER}, #{intergration,jdbcType=INTEGER},
#{type,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.UmsMemberTask">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_task
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="growth != null">
growth,
</if>
<if test="intergration != null">
intergration,
</if>
<if test="type != null">
type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="growth != null">
#{growth,jdbcType=INTEGER},
</if>
<if test="intergration != null">
#{intergration,jdbcType=INTEGER},
</if>
<if test="type != null">
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.UmsMemberTaskExample" resultType="java.lang.Integer">
select count(*) from ums_member_task
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ums_member_task
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.growth != null">
growth = #{record.growth,jdbcType=INTEGER},
</if>
<if test="record.intergration != null">
intergration = #{record.intergration,jdbcType=INTEGER},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ums_member_task
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
growth = #{record.growth,jdbcType=INTEGER},
intergration = #{record.intergration,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.UmsMemberTask">
update ums_member_task
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="growth != null">
growth = #{growth,jdbcType=INTEGER},
</if>
<if test="intergration != null">
intergration = #{intergration,jdbcType=INTEGER},
</if>
<if test="type != null">
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.UmsMemberTask">
update ums_member_task
set name = #{name,jdbcType=VARCHAR},
growth = #{growth,jdbcType=INTEGER},
intergration = #{intergration,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>