|
|
@ -39,16 +39,18 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into cms_content (code, `name`, ", |
|
|
|
"insert into cms_content (platform_code, code, ", |
|
|
|
"img, jump_type, jump_url, ", |
|
|
|
"`name`, img, jump_type, ", |
|
|
|
"appid, create_time, ", |
|
|
|
"jump_url, appid, ", |
|
|
|
"update_time, `status`, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"values (#{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", |
|
|
|
"ext_3)", |
|
|
|
"#{img,jdbcType=VARCHAR}, #{jumpType,jdbcType=INTEGER}, #{jumpUrl,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{platformCode,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, ", |
|
|
|
"#{appid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{name,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, #{jumpType,jdbcType=INTEGER}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{jumpUrl,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(CmsContent record); |
|
|
|
int insert(CmsContent record); |
|
|
@ -60,6 +62,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
@SelectProvider(type=CmsContentSqlProvider.class, method="selectByExample") |
|
|
|
@SelectProvider(type=CmsContentSqlProvider.class, method="selectByExample") |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
@ -77,13 +80,14 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, code, `name`, img, jump_type, jump_url, appid, create_time, update_time, ", |
|
|
|
"id, platform_code, code, `name`, img, jump_type, jump_url, appid, create_time, ", |
|
|
|
"`status`, ext_1, ext_2, ext_3", |
|
|
|
"update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from cms_content", |
|
|
|
"from cms_content", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
@ -110,7 +114,8 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update cms_content", |
|
|
|
"update cms_content", |
|
|
|
"set code = #{code,jdbcType=VARCHAR},", |
|
|
|
"set platform_code = #{platformCode,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"code = #{code,jdbcType=VARCHAR},", |
|
|
|
"`name` = #{name,jdbcType=VARCHAR},", |
|
|
|
"`name` = #{name,jdbcType=VARCHAR},", |
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|