|
|
@ -2,12 +2,22 @@ package com.hai.dao; |
|
|
|
|
|
|
|
|
|
|
|
import com.hai.entity.CmsContent; |
|
|
|
import com.hai.entity.CmsContent; |
|
|
|
import com.hai.entity.CmsContentExample; |
|
|
|
import com.hai.entity.CmsContentExample; |
|
|
|
import org.apache.ibatis.annotations.*; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Delete; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.DeleteProvider; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Insert; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.InsertProvider; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Options; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Param; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Result; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Results; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Select; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.SelectProvider; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.Update; |
|
|
|
|
|
|
|
import org.apache.ibatis.annotations.UpdateProvider; |
|
|
|
import org.apache.ibatis.type.JdbcType; |
|
|
|
import org.apache.ibatis.type.JdbcType; |
|
|
|
import org.springframework.stereotype.Repository; |
|
|
|
import org.springframework.stereotype.Repository; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* |
|
|
|
* |
|
|
|
* 代码由工具生成,请勿修改!!! |
|
|
|
* 代码由工具生成,请勿修改!!! |
|
|
@ -33,22 +43,24 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
"title, description, ", |
|
|
|
"title, description, ", |
|
|
|
"create_time, `status`, ", |
|
|
|
"create_time, `status`, ", |
|
|
|
"has_patch, visit_count, ", |
|
|
|
"has_patch, visit_count, ", |
|
|
|
"tag, img_data, jump_name, ", |
|
|
|
"tag, img_data, jump_type, ", |
|
|
|
"jump_url, sort_id, ", |
|
|
|
"jump_name, jump_url, ", |
|
|
|
"update_time, recommend, ", |
|
|
|
"sort_id, update_time, ", |
|
|
|
"company_id, company_name, ", |
|
|
|
"recommend, company_id, ", |
|
|
|
"user_name, op_id, ext_1, ", |
|
|
|
"company_name, user_name, ", |
|
|
|
"ext_2, ext_3, content)", |
|
|
|
"op_id, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3, content)", |
|
|
|
"values (#{categoryId,jdbcType=BIGINT}, #{categoryCode,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{categoryId,jdbcType=BIGINT}, #{categoryCode,jdbcType=VARCHAR}, ", |
|
|
|
"#{title,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, ", |
|
|
|
"#{title,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{hasPatch,jdbcType=INTEGER}, #{visitCount,jdbcType=INTEGER}, ", |
|
|
|
"#{hasPatch,jdbcType=INTEGER}, #{visitCount,jdbcType=INTEGER}, ", |
|
|
|
"#{tag,jdbcType=VARCHAR}, #{imgData,jdbcType=VARCHAR}, #{jumpName,jdbcType=VARCHAR}, ", |
|
|
|
"#{tag,jdbcType=VARCHAR}, #{imgData,jdbcType=VARCHAR}, #{jumpType,jdbcType=INTEGER}, ", |
|
|
|
"#{jumpUrl,jdbcType=VARCHAR}, #{sortId,jdbcType=INTEGER}, ", |
|
|
|
"#{jumpName,jdbcType=VARCHAR}, #{jumpUrl,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{recommend,jdbcType=BIT}, ", |
|
|
|
"#{sortId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{companyId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, ", |
|
|
|
"#{recommend,jdbcType=BIT}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"#{userName,jdbcType=VARCHAR}, #{opId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{companyName,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR})" |
|
|
|
"#{opId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext3,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(CmsContent record); |
|
|
|
int insert(CmsContent record); |
|
|
@ -70,6 +82,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
@Result(column="visit_count", property="visitCount", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="visit_count", property="visitCount", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="tag", property="tag", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="tag", property="tag", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img_data", property="imgData", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img_data", property="imgData", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="jump_name", property="jumpName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="jump_name", property="jumpName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sort_id", property="sortId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sort_id", property="sortId", jdbcType=JdbcType.INTEGER), |
|
|
@ -99,6 +112,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
@Result(column="visit_count", property="visitCount", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="visit_count", property="visitCount", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="tag", property="tag", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="tag", property="tag", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img_data", property="imgData", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img_data", property="imgData", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="jump_name", property="jumpName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="jump_name", property="jumpName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sort_id", property="sortId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sort_id", property="sortId", jdbcType=JdbcType.INTEGER), |
|
|
@ -117,8 +131,9 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, category_id, category_code, title, description, create_time, `status`, has_patch, ", |
|
|
|
"id, category_id, category_code, title, description, create_time, `status`, has_patch, ", |
|
|
|
"visit_count, tag, img_data, jump_name, jump_url, sort_id, update_time, recommend, ", |
|
|
|
"visit_count, tag, img_data, jump_type, jump_name, jump_url, sort_id, update_time, ", |
|
|
|
"company_id, company_name, user_name, op_id, ext_1, ext_2, ext_3, content", |
|
|
|
"recommend, company_id, company_name, user_name, op_id, ext_1, ext_2, ext_3, ", |
|
|
|
|
|
|
|
"content", |
|
|
|
"from cms_content", |
|
|
|
"from cms_content", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -134,6 +149,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
@Result(column="visit_count", property="visitCount", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="visit_count", property="visitCount", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="tag", property="tag", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="tag", property="tag", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img_data", property="imgData", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img_data", property="imgData", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="jump_type", property="jumpType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="jump_name", property="jumpName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="jump_name", property="jumpName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="jump_url", property="jumpUrl", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sort_id", property="sortId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sort_id", property="sortId", jdbcType=JdbcType.INTEGER), |
|
|
@ -174,6 +190,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
"visit_count = #{visitCount,jdbcType=INTEGER},", |
|
|
|
"visit_count = #{visitCount,jdbcType=INTEGER},", |
|
|
|
"tag = #{tag,jdbcType=VARCHAR},", |
|
|
|
"tag = #{tag,jdbcType=VARCHAR},", |
|
|
|
"img_data = #{imgData,jdbcType=VARCHAR},", |
|
|
|
"img_data = #{imgData,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
"jump_name = #{jumpName,jdbcType=VARCHAR},", |
|
|
|
"jump_name = #{jumpName,jdbcType=VARCHAR},", |
|
|
|
"jump_url = #{jumpUrl,jdbcType=VARCHAR},", |
|
|
|
"jump_url = #{jumpUrl,jdbcType=VARCHAR},", |
|
|
|
"sort_id = #{sortId,jdbcType=INTEGER},", |
|
|
|
"sort_id = #{sortId,jdbcType=INTEGER},", |
|
|
@ -203,6 +220,7 @@ public interface CmsContentMapper extends CmsContentMapperExt { |
|
|
|
"visit_count = #{visitCount,jdbcType=INTEGER},", |
|
|
|
"visit_count = #{visitCount,jdbcType=INTEGER},", |
|
|
|
"tag = #{tag,jdbcType=VARCHAR},", |
|
|
|
"tag = #{tag,jdbcType=VARCHAR},", |
|
|
|
"img_data = #{imgData,jdbcType=VARCHAR},", |
|
|
|
"img_data = #{imgData,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"jump_type = #{jumpType,jdbcType=INTEGER},", |
|
|
|
"jump_name = #{jumpName,jdbcType=VARCHAR},", |
|
|
|
"jump_name = #{jumpName,jdbcType=VARCHAR},", |
|
|
|
"jump_url = #{jumpUrl,jdbcType=VARCHAR},", |
|
|
|
"jump_url = #{jumpUrl,jdbcType=VARCHAR},", |
|
|
|
"sort_id = #{sortId,jdbcType=INTEGER},", |
|
|
|
"sort_id = #{sortId,jdbcType=INTEGER},", |
|
|
|