|
|
|
@ -41,16 +41,18 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into cms_content (platform_code, code, ", |
|
|
|
|
"`name`, img, jump_type, ", |
|
|
|
|
"show_type, jump_url, ", |
|
|
|
|
"appid, create_time, ", |
|
|
|
|
"update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"show_type, show_data_id, ", |
|
|
|
|
"jump_url, appid, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"values (#{platformCode,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{name,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, #{jumpType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{showType,jdbcType=INTEGER}, #{jumpUrl,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{appid,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{showType,jdbcType=INTEGER}, #{showDataId,jdbcType=INTEGER}, ", |
|
|
|
|
"#{jumpUrl,jdbcType=VARCHAR}, #{appid,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") |
|
|
|
|
int insert(CmsContent record); |
|
|
|
@ -68,6 +70,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="show_data_id", property="showDataId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -81,8 +84,8 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, platform_code, code, `name`, img, jump_type, show_type, jump_url, appid, ", |
|
|
|
|
"create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"id, platform_code, code, `name`, img, jump_type, show_type, show_data_id, jump_url, ", |
|
|
|
|
"appid, create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"from cms_content", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -94,6 +97,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="show_data_id", property="showDataId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="appid", property="appid", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -122,6 +126,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
|
"show_type = #{showType,jdbcType=INTEGER},", |
|
|
|
|
"show_data_id = #{showDataId,jdbcType=INTEGER},", |
|
|
|
|
"jump_url = #{jumpUrl,jdbcType=VARCHAR},", |
|
|
|
|
"appid = #{appid,jdbcType=VARCHAR},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|