|
|
|
@ -14,11 +14,14 @@
|
|
|
|
|
<result column="goods_name" jdbcType="VARCHAR" property="goodsName" />
|
|
|
|
|
<result column="goods_type" jdbcType="VARCHAR" property="goodsType" />
|
|
|
|
|
<result column="goods_subcategories" jdbcType="VARCHAR" property="goodsSubcategories" />
|
|
|
|
|
<result column="user_behavior_type" jdbcType="VARCHAR" property="userBehaviorType" />
|
|
|
|
|
<result column="user_behavior_type" jdbcType="INTEGER" property="userBehaviorType" />
|
|
|
|
|
<result column="behavior_date" jdbcType="TIMESTAMP" property="behaviorDate" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.marketing.entity.StuUserBehavior">
|
|
|
|
|
<result column="text" jdbcType="LONGVARCHAR" property="text" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
@ -82,6 +85,25 @@
|
|
|
|
|
goods_name, goods_type, goods_subcategories, user_behavior_type, behavior_date, create_time,
|
|
|
|
|
update_time
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
text
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.marketing.entity.StuUserBehaviorExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
,
|
|
|
|
|
<include refid="Blob_Column_List" />
|
|
|
|
|
from stu_user_behavior
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.marketing.entity.StuUserBehaviorExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
@ -96,9 +118,11 @@
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
,
|
|
|
|
|
<include refid="Blob_Column_List" />
|
|
|
|
|
from stu_user_behavior
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</select>
|
|
|
|
@ -118,13 +142,13 @@
|
|
|
|
|
major, school, role_name,
|
|
|
|
|
goods_name, goods_type, goods_subcategories,
|
|
|
|
|
user_behavior_type, behavior_date, create_time,
|
|
|
|
|
update_time)
|
|
|
|
|
update_time, text)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{loginName,jdbcType=VARCHAR},
|
|
|
|
|
#{userName,jdbcType=VARCHAR}, #{studentId,jdbcType=VARCHAR}, #{stuClass,jdbcType=VARCHAR},
|
|
|
|
|
#{major,jdbcType=VARCHAR}, #{school,jdbcType=VARCHAR}, #{roleName,jdbcType=VARCHAR},
|
|
|
|
|
#{goodsName,jdbcType=VARCHAR}, #{goodsType,jdbcType=VARCHAR}, #{goodsSubcategories,jdbcType=VARCHAR},
|
|
|
|
|
#{userBehaviorType,jdbcType=VARCHAR}, #{behaviorDate,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP})
|
|
|
|
|
#{userBehaviorType,jdbcType=INTEGER}, #{behaviorDate,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{text,jdbcType=LONGVARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.marketing.entity.StuUserBehavior">
|
|
|
|
|
insert into stu_user_behavior
|
|
|
|
@ -177,6 +201,9 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text != null">
|
|
|
|
|
text,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
@ -216,7 +243,7 @@
|
|
|
|
|
#{goodsSubcategories,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userBehaviorType != null">
|
|
|
|
|
#{userBehaviorType,jdbcType=VARCHAR},
|
|
|
|
|
#{userBehaviorType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="behaviorDate != null">
|
|
|
|
|
#{behaviorDate,jdbcType=TIMESTAMP},
|
|
|
|
@ -227,6 +254,9 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text != null">
|
|
|
|
|
#{text,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.marketing.entity.StuUserBehaviorExample" resultType="java.lang.Long">
|
|
|
|
@ -275,7 +305,7 @@
|
|
|
|
|
goods_subcategories = #{record.goodsSubcategories,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.userBehaviorType != null">
|
|
|
|
|
user_behavior_type = #{record.userBehaviorType,jdbcType=VARCHAR},
|
|
|
|
|
user_behavior_type = #{record.userBehaviorType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.behaviorDate != null">
|
|
|
|
|
behavior_date = #{record.behaviorDate,jdbcType=TIMESTAMP},
|
|
|
|
@ -286,11 +316,37 @@
|
|
|
|
|
<if test="record.updateTime != null">
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.text != null">
|
|
|
|
|
text = #{record.text,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
|
|
update stu_user_behavior
|
|
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
login_name = #{record.loginName,jdbcType=VARCHAR},
|
|
|
|
|
user_name = #{record.userName,jdbcType=VARCHAR},
|
|
|
|
|
student_id = #{record.studentId,jdbcType=VARCHAR},
|
|
|
|
|
stu_class = #{record.stuClass,jdbcType=VARCHAR},
|
|
|
|
|
major = #{record.major,jdbcType=VARCHAR},
|
|
|
|
|
school = #{record.school,jdbcType=VARCHAR},
|
|
|
|
|
role_name = #{record.roleName,jdbcType=VARCHAR},
|
|
|
|
|
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
|
|
|
|
goods_type = #{record.goodsType,jdbcType=VARCHAR},
|
|
|
|
|
goods_subcategories = #{record.goodsSubcategories,jdbcType=VARCHAR},
|
|
|
|
|
user_behavior_type = #{record.userBehaviorType,jdbcType=INTEGER},
|
|
|
|
|
behavior_date = #{record.behaviorDate,jdbcType=TIMESTAMP},
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
text = #{record.text,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update stu_user_behavior
|
|
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
@ -305,7 +361,7 @@
|
|
|
|
|
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
|
|
|
|
goods_type = #{record.goodsType,jdbcType=VARCHAR},
|
|
|
|
|
goods_subcategories = #{record.goodsSubcategories,jdbcType=VARCHAR},
|
|
|
|
|
user_behavior_type = #{record.userBehaviorType,jdbcType=VARCHAR},
|
|
|
|
|
user_behavior_type = #{record.userBehaviorType,jdbcType=INTEGER},
|
|
|
|
|
behavior_date = #{record.behaviorDate,jdbcType=TIMESTAMP},
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
@ -350,7 +406,7 @@
|
|
|
|
|
goods_subcategories = #{goodsSubcategories,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userBehaviorType != null">
|
|
|
|
|
user_behavior_type = #{userBehaviorType,jdbcType=VARCHAR},
|
|
|
|
|
user_behavior_type = #{userBehaviorType,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="behaviorDate != null">
|
|
|
|
|
behavior_date = #{behaviorDate,jdbcType=TIMESTAMP},
|
|
|
|
@ -361,9 +417,32 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text != null">
|
|
|
|
|
text = #{text,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.marketing.entity.StuUserBehavior">
|
|
|
|
|
update stu_user_behavior
|
|
|
|
|
set user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
login_name = #{loginName,jdbcType=VARCHAR},
|
|
|
|
|
user_name = #{userName,jdbcType=VARCHAR},
|
|
|
|
|
student_id = #{studentId,jdbcType=VARCHAR},
|
|
|
|
|
stu_class = #{stuClass,jdbcType=VARCHAR},
|
|
|
|
|
major = #{major,jdbcType=VARCHAR},
|
|
|
|
|
school = #{school,jdbcType=VARCHAR},
|
|
|
|
|
role_name = #{roleName,jdbcType=VARCHAR},
|
|
|
|
|
goods_name = #{goodsName,jdbcType=VARCHAR},
|
|
|
|
|
goods_type = #{goodsType,jdbcType=VARCHAR},
|
|
|
|
|
goods_subcategories = #{goodsSubcategories,jdbcType=VARCHAR},
|
|
|
|
|
user_behavior_type = #{userBehaviorType,jdbcType=INTEGER},
|
|
|
|
|
behavior_date = #{behaviorDate,jdbcType=TIMESTAMP},
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
text = #{text,jdbcType=LONGVARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.marketing.entity.StuUserBehavior">
|
|
|
|
|
update stu_user_behavior
|
|
|
|
|
set user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
@ -377,7 +456,7 @@
|
|
|
|
|
goods_name = #{goodsName,jdbcType=VARCHAR},
|
|
|
|
|
goods_type = #{goodsType,jdbcType=VARCHAR},
|
|
|
|
|
goods_subcategories = #{goodsSubcategories,jdbcType=VARCHAR},
|
|
|
|
|
user_behavior_type = #{userBehaviorType,jdbcType=VARCHAR},
|
|
|
|
|
user_behavior_type = #{userBehaviorType,jdbcType=INTEGER},
|
|
|
|
|
behavior_date = #{behaviorDate,jdbcType=TIMESTAMP},
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|