|
|
@ -43,14 +43,16 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
"jump_type, msg_type, ", |
|
|
|
"jump_type, msg_type, ", |
|
|
|
"object_id, image, ", |
|
|
|
"object_id, image, ", |
|
|
|
"content, op_id, op_name, ", |
|
|
|
"content, op_id, op_name, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"company_id, create_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"update_time, ext_1, ", |
|
|
|
|
|
|
|
"ext_2, 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}, #{image,jdbcType=VARCHAR}, ", |
|
|
|
"#{content,jdbcType=VARCHAR}, #{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, ", |
|
|
|
"#{content,jdbcType=VARCHAR}, #{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{companyId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsMsg record); |
|
|
|
int insert(BsMsg record); |
|
|
@ -71,6 +73,7 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@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="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -82,7 +85,7 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, title, `type`, jump_type, msg_type, object_id, image, content, op_id, op_name, ", |
|
|
|
"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", |
|
|
|
"company_id, create_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
"from bs_msg", |
|
|
|
"from bs_msg", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -97,6 +100,7 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), |
|
|
|
@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="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
@ -125,6 +129,7 @@ public interface BsMsgMapper extends BsMsgMapperExt { |
|
|
|
"content = #{content,jdbcType=VARCHAR},", |
|
|
|
"content = #{content,jdbcType=VARCHAR},", |
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
"op_id = #{opId,jdbcType=BIGINT},", |
|
|
|
"op_name = #{opName,jdbcType=VARCHAR},", |
|
|
|
"op_name = #{opName,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|