|
|
|
@ -43,24 +43,24 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
"title, description, ", |
|
|
|
|
"create_time, `status`, ", |
|
|
|
|
"has_patch, visit_count, ", |
|
|
|
|
"tag, img_data, jump_type, ", |
|
|
|
|
"jump_name, jump_url, ", |
|
|
|
|
"sort_id, update_time, ", |
|
|
|
|
"recommend, company_id, ", |
|
|
|
|
"company_name, user_name, ", |
|
|
|
|
"op_id, ext_1, ext_2, ", |
|
|
|
|
"ext_3, content)", |
|
|
|
|
"platform, tag, img_data, ", |
|
|
|
|
"jump_type, jump_name, ", |
|
|
|
|
"jump_url, sort_id, ", |
|
|
|
|
"update_time, recommend, ", |
|
|
|
|
"company_id, company_name, ", |
|
|
|
|
"user_name, op_id, ext_1, ", |
|
|
|
|
"ext_2, ext_3, content)", |
|
|
|
|
"values (#{categoryId,jdbcType=BIGINT}, #{categoryCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{title,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{hasPatch,jdbcType=INTEGER}, #{visitCount,jdbcType=INTEGER}, ", |
|
|
|
|
"#{tag,jdbcType=VARCHAR}, #{imgData,jdbcType=VARCHAR}, #{jumpType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{jumpName,jdbcType=VARCHAR}, #{jumpUrl,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{sortId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{recommend,jdbcType=BIT}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{companyName,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{opId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR})" |
|
|
|
|
"#{platform,jdbcType=INTEGER}, #{tag,jdbcType=VARCHAR}, #{imgData,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{jumpType,jdbcType=INTEGER}, #{jumpName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{jumpUrl,jdbcType=VARCHAR}, #{sortId,jdbcType=INTEGER}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{recommend,jdbcType=BIT}, ", |
|
|
|
|
"#{companyId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{userName,jdbcType=VARCHAR}, #{opId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(CmsContent record); |
|
|
|
@ -80,6 +80,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="has_patch", property="hasPatch", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="visit_count", property="visitCount", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="platform", property="platform", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="tag", property="tag", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img_data", property="imgData", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -110,6 +111,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="has_patch", property="hasPatch", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="visit_count", property="visitCount", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="platform", property="platform", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="tag", property="tag", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img_data", property="imgData", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -131,9 +133,9 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, category_id, category_code, title, description, create_time, `status`, has_patch, ", |
|
|
|
|
"visit_count, tag, img_data, jump_type, jump_name, jump_url, sort_id, update_time, ", |
|
|
|
|
"recommend, company_id, company_name, user_name, op_id, ext_1, ext_2, ext_3, ", |
|
|
|
|
"content", |
|
|
|
|
"visit_count, platform, tag, img_data, jump_type, jump_name, jump_url, sort_id, ", |
|
|
|
|
"update_time, recommend, company_id, company_name, user_name, op_id, ext_1, ext_2, ", |
|
|
|
|
"ext_3, content", |
|
|
|
|
"from cms_content", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -147,6 +149,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="has_patch", property="hasPatch", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="visit_count", property="visitCount", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="platform", property="platform", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="tag", property="tag", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img_data", property="imgData", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -188,6 +191,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"has_patch = #{hasPatch,jdbcType=INTEGER},", |
|
|
|
|
"visit_count = #{visitCount,jdbcType=INTEGER},", |
|
|
|
|
"platform = #{platform,jdbcType=INTEGER},", |
|
|
|
|
"tag = #{tag,jdbcType=VARCHAR},", |
|
|
|
|
"img_data = #{imgData,jdbcType=VARCHAR},", |
|
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
@ -218,6 +222,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"has_patch = #{hasPatch,jdbcType=INTEGER},", |
|
|
|
|
"visit_count = #{visitCount,jdbcType=INTEGER},", |
|
|
|
|
"platform = #{platform,jdbcType=INTEGER},", |
|
|
|
|
"tag = #{tag,jdbcType=VARCHAR},", |
|
|
|
|
"img_data = #{imgData,jdbcType=VARCHAR},", |
|
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
|