|
|
|
@ -42,15 +42,15 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
|
"insert into bs_msg (title, `type`, ", |
|
|
|
|
"jump_type, msg_type, ", |
|
|
|
|
"object_id, image, ", |
|
|
|
|
"content, create_time, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"content, op_id, op_name, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{title,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, ", |
|
|
|
|
"#{jumpType,jdbcType=INTEGER}, #{msgType,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{jumpType,jdbcType=INTEGER}, #{msgType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{objectId,jdbcType=BIGINT}, #{image,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{content,jdbcType=VARCHAR}, #{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsMsg record); |
|
|
|
@ -65,10 +65,12 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="msg_type", property="msgType", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="msg_type", property="msgType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="image", property="image", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -79,8 +81,8 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, title, `type`, jump_type, msg_type, object_id, image, content, create_time, ", |
|
|
|
|
"update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"id, title, `type`, jump_type, msg_type, object_id, image, content, op_id, op_name, ", |
|
|
|
|
"create_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_msg", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -89,10 +91,12 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
|
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="msg_type", property="msgType", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="msg_type", property="msgType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="image", property="image", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -115,10 +119,12 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
|
"set title = #{title,jdbcType=VARCHAR},", |
|
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
|
"msg_type = #{msgType,jdbcType=VARCHAR},", |
|
|
|
|
"msg_type = #{msgType,jdbcType=INTEGER},", |
|
|
|
|
"object_id = #{objectId,jdbcType=BIGINT},", |
|
|
|
|
"image = #{image,jdbcType=VARCHAR},", |
|
|
|
|
"content = #{content,jdbcType=VARCHAR},", |
|
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
|
"op_name = #{opName,jdbcType=VARCHAR},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|