...
|
...
|
@@ -12,6 +12,7 @@ |
|
|
<result column="is_del" property="isDel" jdbcType="CHAR"/>
|
|
|
<result column="content" property="content" jdbcType="LONGVARCHAR"/>
|
|
|
<result column="business_type" property="businessType" jdbcType="INTEGER" />
|
|
|
<result column="action" property="action" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<resultMap id="TypeCountInboxMap" type="com.yohoufo.dal.user.model.TypeCountInbox">
|
|
|
<result column="type" property="type" jdbcType="INTEGER"/>
|
...
|
...
|
@@ -19,13 +20,13 @@ |
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
id, uid, title, type, is_read, create_time, read_time, is_del,content,business_type
|
|
|
id, uid, title, type, is_read, create_time, read_time, is_del,content,business_type,action
|
|
|
</sql>
|
|
|
<insert id="insertInbox">
|
|
|
INSERT INTO ${tableName} (uid,title,content,type,is_read,create_time,is_del, business_type)
|
|
|
INSERT INTO ${tableName} (uid,title,content,type,is_read,create_time,is_del, business_type,action)
|
|
|
values
|
|
|
(#{inBox.uid},#{inBox.title},#{inBox.content},#{inBox.type},#{inBox.isRead},
|
|
|
#{inBox.createTime},#{inBox.isDel},#{inBox.businessType})
|
|
|
#{inBox.createTime},#{inBox.isDel},#{inBox.businessType}),#{inBox.action}
|
|
|
</insert>
|
|
|
<update id="updateReadedByUidAndType">
|
|
|
update ${tableName} set is_read='Y', read_time=#{readTime} where uid = ${uid} and is_read='N'
|
...
|
...
|
|