dev-discount
袁野 2 years ago
parent a6b17daa62
commit 3787961b31
  1. 39
      hai-service/src/main/java/com/hai/dao/CmsContentMapper.java
  2. 16
      hai-service/src/main/java/com/hai/dao/CmsContentSqlProvider.java
  3. 16
      hai-service/src/main/java/com/hai/entity/CmsContent.java
  4. 60
      hai-service/src/main/java/com/hai/entity/CmsContentExample.java

@ -43,24 +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_type, ", "platform, tag, img_data, ",
"jump_name, jump_url, ", "jump_type, jump_name, ",
"sort_id, update_time, ", "jump_url, sort_id, ",
"recommend, company_id, ", "update_time, recommend, ",
"company_name, user_name, ", "company_id, company_name, ",
"op_id, ext_1, ext_2, ", "user_name, op_id, ext_1, ",
"ext_3, content)", "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}, #{jumpType,jdbcType=INTEGER}, ", "#{platform,jdbcType=INTEGER}, #{tag,jdbcType=VARCHAR}, #{imgData,jdbcType=VARCHAR}, ",
"#{jumpName,jdbcType=VARCHAR}, #{jumpUrl,jdbcType=VARCHAR}, ", "#{jumpType,jdbcType=INTEGER}, #{jumpName,jdbcType=VARCHAR}, ",
"#{sortId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{jumpUrl,jdbcType=VARCHAR}, #{sortId,jdbcType=INTEGER}, ",
"#{recommend,jdbcType=BIT}, #{companyId,jdbcType=BIGINT}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{recommend,jdbcType=BIT}, ",
"#{companyName,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, ", "#{companyId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, ",
"#{opId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", "#{userName,jdbcType=VARCHAR}, #{opId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext3,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR})" "#{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);
@ -80,6 +80,7 @@ public interface CmsContentMapper extends CmsContentMapperExt {
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="has_patch", property="hasPatch", jdbcType=JdbcType.INTEGER), @Result(column="has_patch", property="hasPatch", jdbcType=JdbcType.INTEGER),
@Result(column="visit_count", property="visitCount", 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="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_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="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="has_patch", property="hasPatch", jdbcType=JdbcType.INTEGER), @Result(column="has_patch", property="hasPatch", jdbcType=JdbcType.INTEGER),
@Result(column="visit_count", property="visitCount", 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="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_type", property="jumpType", jdbcType=JdbcType.INTEGER),
@ -131,9 +133,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_type, jump_name, jump_url, sort_id, update_time, ", "visit_count, platform, tag, img_data, jump_type, jump_name, jump_url, sort_id, ",
"recommend, company_id, company_name, user_name, op_id, ext_1, ext_2, ext_3, ", "update_time, recommend, company_id, company_name, user_name, op_id, ext_1, ext_2, ",
"content", "ext_3, content",
"from cms_content", "from cms_content",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
@ -147,6 +149,7 @@ public interface CmsContentMapper extends CmsContentMapperExt {
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="has_patch", property="hasPatch", jdbcType=JdbcType.INTEGER), @Result(column="has_patch", property="hasPatch", jdbcType=JdbcType.INTEGER),
@Result(column="visit_count", property="visitCount", 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="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_type", property="jumpType", jdbcType=JdbcType.INTEGER),
@ -188,6 +191,7 @@ public interface CmsContentMapper extends CmsContentMapperExt {
"`status` = #{status,jdbcType=INTEGER},", "`status` = #{status,jdbcType=INTEGER},",
"has_patch = #{hasPatch,jdbcType=INTEGER},", "has_patch = #{hasPatch,jdbcType=INTEGER},",
"visit_count = #{visitCount,jdbcType=INTEGER},", "visit_count = #{visitCount,jdbcType=INTEGER},",
"platform = #{platform,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_type = #{jumpType,jdbcType=INTEGER},",
@ -218,6 +222,7 @@ public interface CmsContentMapper extends CmsContentMapperExt {
"`status` = #{status,jdbcType=INTEGER},", "`status` = #{status,jdbcType=INTEGER},",
"has_patch = #{hasPatch,jdbcType=INTEGER},", "has_patch = #{hasPatch,jdbcType=INTEGER},",
"visit_count = #{visitCount,jdbcType=INTEGER},", "visit_count = #{visitCount,jdbcType=INTEGER},",
"platform = #{platform,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_type = #{jumpType,jdbcType=INTEGER},",

@ -60,6 +60,10 @@ public class CmsContentSqlProvider {
sql.VALUES("visit_count", "#{visitCount,jdbcType=INTEGER}"); sql.VALUES("visit_count", "#{visitCount,jdbcType=INTEGER}");
} }
if (record.getPlatform() != null) {
sql.VALUES("platform", "#{platform,jdbcType=INTEGER}");
}
if (record.getTag() != null) { if (record.getTag() != null) {
sql.VALUES("tag", "#{tag,jdbcType=VARCHAR}"); sql.VALUES("tag", "#{tag,jdbcType=VARCHAR}");
} }
@ -142,6 +146,7 @@ public class CmsContentSqlProvider {
sql.SELECT("`status`"); sql.SELECT("`status`");
sql.SELECT("has_patch"); sql.SELECT("has_patch");
sql.SELECT("visit_count"); sql.SELECT("visit_count");
sql.SELECT("platform");
sql.SELECT("tag"); sql.SELECT("tag");
sql.SELECT("img_data"); sql.SELECT("img_data");
sql.SELECT("jump_type"); sql.SELECT("jump_type");
@ -183,6 +188,7 @@ public class CmsContentSqlProvider {
sql.SELECT("`status`"); sql.SELECT("`status`");
sql.SELECT("has_patch"); sql.SELECT("has_patch");
sql.SELECT("visit_count"); sql.SELECT("visit_count");
sql.SELECT("platform");
sql.SELECT("tag"); sql.SELECT("tag");
sql.SELECT("img_data"); sql.SELECT("img_data");
sql.SELECT("jump_type"); sql.SELECT("jump_type");
@ -251,6 +257,10 @@ public class CmsContentSqlProvider {
sql.SET("visit_count = #{record.visitCount,jdbcType=INTEGER}"); sql.SET("visit_count = #{record.visitCount,jdbcType=INTEGER}");
} }
if (record.getPlatform() != null) {
sql.SET("platform = #{record.platform,jdbcType=INTEGER}");
}
if (record.getTag() != null) { if (record.getTag() != null) {
sql.SET("tag = #{record.tag,jdbcType=VARCHAR}"); sql.SET("tag = #{record.tag,jdbcType=VARCHAR}");
} }
@ -332,6 +342,7 @@ public class CmsContentSqlProvider {
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
sql.SET("has_patch = #{record.hasPatch,jdbcType=INTEGER}"); sql.SET("has_patch = #{record.hasPatch,jdbcType=INTEGER}");
sql.SET("visit_count = #{record.visitCount,jdbcType=INTEGER}"); sql.SET("visit_count = #{record.visitCount,jdbcType=INTEGER}");
sql.SET("platform = #{record.platform,jdbcType=INTEGER}");
sql.SET("tag = #{record.tag,jdbcType=VARCHAR}"); sql.SET("tag = #{record.tag,jdbcType=VARCHAR}");
sql.SET("img_data = #{record.imgData,jdbcType=VARCHAR}"); sql.SET("img_data = #{record.imgData,jdbcType=VARCHAR}");
sql.SET("jump_type = #{record.jumpType,jdbcType=INTEGER}"); sql.SET("jump_type = #{record.jumpType,jdbcType=INTEGER}");
@ -367,6 +378,7 @@ public class CmsContentSqlProvider {
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
sql.SET("has_patch = #{record.hasPatch,jdbcType=INTEGER}"); sql.SET("has_patch = #{record.hasPatch,jdbcType=INTEGER}");
sql.SET("visit_count = #{record.visitCount,jdbcType=INTEGER}"); sql.SET("visit_count = #{record.visitCount,jdbcType=INTEGER}");
sql.SET("platform = #{record.platform,jdbcType=INTEGER}");
sql.SET("tag = #{record.tag,jdbcType=VARCHAR}"); sql.SET("tag = #{record.tag,jdbcType=VARCHAR}");
sql.SET("img_data = #{record.imgData,jdbcType=VARCHAR}"); sql.SET("img_data = #{record.imgData,jdbcType=VARCHAR}");
sql.SET("jump_type = #{record.jumpType,jdbcType=INTEGER}"); sql.SET("jump_type = #{record.jumpType,jdbcType=INTEGER}");
@ -424,6 +436,10 @@ public class CmsContentSqlProvider {
sql.SET("visit_count = #{visitCount,jdbcType=INTEGER}"); sql.SET("visit_count = #{visitCount,jdbcType=INTEGER}");
} }
if (record.getPlatform() != null) {
sql.SET("platform = #{platform,jdbcType=INTEGER}");
}
if (record.getTag() != null) { if (record.getTag() != null) {
sql.SET("tag = #{tag,jdbcType=VARCHAR}"); sql.SET("tag = #{tag,jdbcType=VARCHAR}");
} }

@ -58,6 +58,11 @@ public class CmsContent implements Serializable {
*/ */
private Integer visitCount; private Integer visitCount;
/**
* 平台类型 1微信小程序 2h5 3银联小程序
*/
private Integer platform;
/** /**
* 标签格式为流行,古典 * 标签格式为流行,古典
*/ */
@ -203,6 +208,14 @@ public class CmsContent implements Serializable {
this.visitCount = visitCount; this.visitCount = visitCount;
} }
public Integer getPlatform() {
return platform;
}
public void setPlatform(Integer platform) {
this.platform = platform;
}
public String getTag() { public String getTag() {
return tag; return tag;
} }
@ -352,6 +365,7 @@ public class CmsContent implements Serializable {
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getHasPatch() == null ? other.getHasPatch() == null : this.getHasPatch().equals(other.getHasPatch())) && (this.getHasPatch() == null ? other.getHasPatch() == null : this.getHasPatch().equals(other.getHasPatch()))
&& (this.getVisitCount() == null ? other.getVisitCount() == null : this.getVisitCount().equals(other.getVisitCount())) && (this.getVisitCount() == null ? other.getVisitCount() == null : this.getVisitCount().equals(other.getVisitCount()))
&& (this.getPlatform() == null ? other.getPlatform() == null : this.getPlatform().equals(other.getPlatform()))
&& (this.getTag() == null ? other.getTag() == null : this.getTag().equals(other.getTag())) && (this.getTag() == null ? other.getTag() == null : this.getTag().equals(other.getTag()))
&& (this.getImgData() == null ? other.getImgData() == null : this.getImgData().equals(other.getImgData())) && (this.getImgData() == null ? other.getImgData() == null : this.getImgData().equals(other.getImgData()))
&& (this.getJumpType() == null ? other.getJumpType() == null : this.getJumpType().equals(other.getJumpType())) && (this.getJumpType() == null ? other.getJumpType() == null : this.getJumpType().equals(other.getJumpType()))
@ -383,6 +397,7 @@ public class CmsContent implements Serializable {
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getHasPatch() == null) ? 0 : getHasPatch().hashCode()); result = prime * result + ((getHasPatch() == null) ? 0 : getHasPatch().hashCode());
result = prime * result + ((getVisitCount() == null) ? 0 : getVisitCount().hashCode()); result = prime * result + ((getVisitCount() == null) ? 0 : getVisitCount().hashCode());
result = prime * result + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
result = prime * result + ((getTag() == null) ? 0 : getTag().hashCode()); result = prime * result + ((getTag() == null) ? 0 : getTag().hashCode());
result = prime * result + ((getImgData() == null) ? 0 : getImgData().hashCode()); result = prime * result + ((getImgData() == null) ? 0 : getImgData().hashCode());
result = prime * result + ((getJumpType() == null) ? 0 : getJumpType().hashCode()); result = prime * result + ((getJumpType() == null) ? 0 : getJumpType().hashCode());
@ -417,6 +432,7 @@ public class CmsContent implements Serializable {
sb.append(", status=").append(status); sb.append(", status=").append(status);
sb.append(", hasPatch=").append(hasPatch); sb.append(", hasPatch=").append(hasPatch);
sb.append(", visitCount=").append(visitCount); sb.append(", visitCount=").append(visitCount);
sb.append(", platform=").append(platform);
sb.append(", tag=").append(tag); sb.append(", tag=").append(tag);
sb.append(", imgData=").append(imgData); sb.append(", imgData=").append(imgData);
sb.append(", jumpType=").append(jumpType); sb.append(", jumpType=").append(jumpType);

@ -695,6 +695,66 @@ public class CmsContentExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andPlatformIsNull() {
addCriterion("platform is null");
return (Criteria) this;
}
public Criteria andPlatformIsNotNull() {
addCriterion("platform is not null");
return (Criteria) this;
}
public Criteria andPlatformEqualTo(Integer value) {
addCriterion("platform =", value, "platform");
return (Criteria) this;
}
public Criteria andPlatformNotEqualTo(Integer value) {
addCriterion("platform <>", value, "platform");
return (Criteria) this;
}
public Criteria andPlatformGreaterThan(Integer value) {
addCriterion("platform >", value, "platform");
return (Criteria) this;
}
public Criteria andPlatformGreaterThanOrEqualTo(Integer value) {
addCriterion("platform >=", value, "platform");
return (Criteria) this;
}
public Criteria andPlatformLessThan(Integer value) {
addCriterion("platform <", value, "platform");
return (Criteria) this;
}
public Criteria andPlatformLessThanOrEqualTo(Integer value) {
addCriterion("platform <=", value, "platform");
return (Criteria) this;
}
public Criteria andPlatformIn(List<Integer> values) {
addCriterion("platform in", values, "platform");
return (Criteria) this;
}
public Criteria andPlatformNotIn(List<Integer> values) {
addCriterion("platform not in", values, "platform");
return (Criteria) this;
}
public Criteria andPlatformBetween(Integer value1, Integer value2) {
addCriterion("platform between", value1, value2, "platform");
return (Criteria) this;
}
public Criteria andPlatformNotBetween(Integer value1, Integer value2) {
addCriterion("platform not between", value1, value2, "platform");
return (Criteria) this;
}
public Criteria andTagIsNull() { public Criteria andTagIsNull() {
addCriterion("tag is null"); addCriterion("tag is null");
return (Criteria) this; return (Criteria) this;

Loading…
Cancel
Save