|
|
@ -41,18 +41,18 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into bs_msg (title, `type`, ", |
|
|
|
"insert into bs_msg (title, `type`, ", |
|
|
|
"jump_type, msg_type, ", |
|
|
|
"jump_type, msg_type, ", |
|
|
|
"object_id, image, ", |
|
|
|
"object_id, object_type, ", |
|
|
|
"content, update_time, ", |
|
|
|
"image, content, ", |
|
|
|
"op_name, company_id, ", |
|
|
|
"op_id, op_name, company_id, ", |
|
|
|
"create_time, op_id, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"ext_3)", |
|
|
|
"ext_3)", |
|
|
|
"values (#{title,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, ", |
|
|
|
"values (#{title,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, ", |
|
|
|
"#{jumpType,jdbcType=INTEGER}, #{msgType,jdbcType=INTEGER}, ", |
|
|
|
"#{jumpType,jdbcType=INTEGER}, #{msgType,jdbcType=INTEGER}, ", |
|
|
|
"#{objectId,jdbcType=BIGINT}, #{image,jdbcType=VARCHAR}, ", |
|
|
|
"#{objectId,jdbcType=BIGINT}, #{objectType,jdbcType=INTEGER}, ", |
|
|
|
"#{content,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{image,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, ", |
|
|
|
"#{opName,jdbcType=VARCHAR}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -71,13 +71,14 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="msg_type", property="msgType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="msg_type", property="msgType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="image", property="image", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="image", property="image", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
@ -87,8 +88,9 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, title, `type`, jump_type, msg_type, object_id, image, content, update_time, ", |
|
|
|
"id, title, `type`, jump_type, msg_type, object_id, object_type, image, content, ", |
|
|
|
"op_name, company_id, create_time, op_id, `status`, ext_1, ext_2, ext_3", |
|
|
|
"op_id, op_name, company_id, create_time, update_time, `status`, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3", |
|
|
|
"from bs_msg", |
|
|
|
"from bs_msg", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -99,13 +101,14 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="msg_type", property="msgType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="msg_type", property="msgType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="object_id", property="objectId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="object_type", property="objectType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="image", property="image", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="image", property="image", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="op_name", property="opName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
@ -129,13 +132,14 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
"msg_type = #{msgType,jdbcType=INTEGER},", |
|
|
|
"msg_type = #{msgType,jdbcType=INTEGER},", |
|
|
|
"object_id = #{objectId,jdbcType=BIGINT},", |
|
|
|
"object_id = #{objectId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"object_type = #{objectType,jdbcType=INTEGER},", |
|
|
|
"image = #{image,jdbcType=VARCHAR},", |
|
|
|
"image = #{image,jdbcType=VARCHAR},", |
|
|
|
"content = #{content,jdbcType=VARCHAR},", |
|
|
|
"content = #{content,jdbcType=VARCHAR},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
"op_name = #{opName,jdbcType=VARCHAR},", |
|
|
|
"op_name = #{opName,jdbcType=VARCHAR},", |
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|