|
@@ -13,8 +13,8 @@
|
|
|
<result column="content_" property="content"/>
|
|
|
<result column="real_name_" property="realName"/>
|
|
|
<result column="avatar_" property="avatar"/>
|
|
|
- <result column="is_top_" property="isTop" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
- <result column="del_flag_" property="delFlag" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
+ <result column="is_top_" property="isTop"/>
|
|
|
+ <result column="del_flag_" property="delFlag"/>
|
|
|
<result column="create_time_" property="createTime"/>
|
|
|
<result column="operator_id_" property="operatorId"/>
|
|
|
<result column="update_time_" property="updateTime"/>
|
|
@@ -35,8 +35,8 @@
|
|
|
keyProperty="id">
|
|
|
INSERT INTO im_group_notice (im_group_id_,title_,content_,is_top_,
|
|
|
del_flag_,create_time_,update_time_,operator_id_)
|
|
|
- VALUES(#{imGroupId},#{title},#{content},#{isTop, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
- #{delFlag, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},now(),now(),#{operatorId})
|
|
|
+ VALUES(#{imGroupId},#{title},#{content},#{isTop},
|
|
|
+ #{delFlag},now(),now(),#{operatorId})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -44,7 +44,7 @@
|
|
|
UPDATE im_group_notice
|
|
|
<set>
|
|
|
<if test="delFlag != null">
|
|
|
- del_flag_ = #{delFlag, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ del_flag_ = #{delFlag},
|
|
|
</if>
|
|
|
<if test="title != null">
|
|
|
title_ = #{title},
|
|
@@ -53,7 +53,7 @@
|
|
|
content_ = content,
|
|
|
</if>
|
|
|
<if test="isTop != null">
|
|
|
- is_top_ = #{isTop, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ is_top_ = #{isTop},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time_ = NOW()
|