袁野 2 weeks ago
parent 020c971322
commit e4b0e7ca3c
  1. 27
      service/src/main/java/com/hfkj/dao/CmsContentMapper.java
  2. 14
      service/src/main/java/com/hfkj/dao/CmsContentSqlProvider.java
  3. 98
      service/src/main/java/com/hfkj/entity/CmsContent.java
  4. 60
      service/src/main/java/com/hfkj/entity/CmsContentExample.java

@ -41,18 +41,18 @@ public interface CmsContentMapper extends CmsContentMapperExt {
@Insert({
"insert into cms_content (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)",
"show_type, automatic, ",
"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}, #{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})"
"#{showType,jdbcType=INTEGER}, #{automatic,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);
@ -70,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="automatic", property="automatic", 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),
@ -84,8 +85,8 @@ public interface CmsContentMapper extends CmsContentMapperExt {
@Select({
"select",
"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",
"id, platform_code, code, `name`, img, jump_type, show_type, automatic, 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}"
})
@ -97,6 +98,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="automatic", property="automatic", 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),
@ -126,6 +128,7 @@ public interface CmsContentMapper extends CmsContentMapperExt {
"img = #{img,jdbcType=VARCHAR},",
"jump_type = #{jumpType,jdbcType=INTEGER},",
"show_type = #{showType,jdbcType=INTEGER},",
"automatic = #{automatic,jdbcType=INTEGER},",
"show_data_id = #{showDataId,jdbcType=INTEGER},",
"jump_url = #{jumpUrl,jdbcType=VARCHAR},",
"appid = #{appid,jdbcType=VARCHAR},",

@ -52,6 +52,10 @@ public class CmsContentSqlProvider {
sql.VALUES("show_type", "#{showType,jdbcType=INTEGER}");
}
if (record.getAutomatic() != null) {
sql.VALUES("automatic", "#{automatic,jdbcType=INTEGER}");
}
if (record.getShowDataId() != null) {
sql.VALUES("show_data_id", "#{showDataId,jdbcType=INTEGER}");
}
@ -104,6 +108,7 @@ public class CmsContentSqlProvider {
sql.SELECT("img");
sql.SELECT("jump_type");
sql.SELECT("show_type");
sql.SELECT("automatic");
sql.SELECT("show_data_id");
sql.SELECT("jump_url");
sql.SELECT("appid");
@ -158,6 +163,10 @@ public class CmsContentSqlProvider {
sql.SET("show_type = #{record.showType,jdbcType=INTEGER}");
}
if (record.getAutomatic() != null) {
sql.SET("automatic = #{record.automatic,jdbcType=INTEGER}");
}
if (record.getShowDataId() != null) {
sql.SET("show_data_id = #{record.showDataId,jdbcType=INTEGER}");
}
@ -209,6 +218,7 @@ public class CmsContentSqlProvider {
sql.SET("img = #{record.img,jdbcType=VARCHAR}");
sql.SET("jump_type = #{record.jumpType,jdbcType=INTEGER}");
sql.SET("show_type = #{record.showType,jdbcType=INTEGER}");
sql.SET("automatic = #{record.automatic,jdbcType=INTEGER}");
sql.SET("show_data_id = #{record.showDataId,jdbcType=INTEGER}");
sql.SET("jump_url = #{record.jumpUrl,jdbcType=VARCHAR}");
sql.SET("appid = #{record.appid,jdbcType=VARCHAR}");
@ -252,6 +262,10 @@ public class CmsContentSqlProvider {
sql.SET("show_type = #{showType,jdbcType=INTEGER}");
}
if (record.getAutomatic() != null) {
sql.SET("automatic = #{automatic,jdbcType=INTEGER}");
}
if (record.getShowDataId() != null) {
sql.SET("show_data_id = #{showDataId,jdbcType=INTEGER}");
}

@ -44,10 +44,15 @@ public class CmsContent implements Serializable {
private Integer jumpType;
/**
* 展示类型1双数据 2:四数据 3:横版多数据
* 展示类型1数据展示
*/
private Integer showType;
/**
* 是否自动调用数据
*/
private Integer automatic;
/**
* 数据编码
*/
@ -142,6 +147,14 @@ public class CmsContent implements Serializable {
this.showType = showType;
}
public Integer getAutomatic() {
return automatic;
}
public void setAutomatic(Integer automatic) {
this.automatic = automatic;
}
public Integer getShowDataId() {
return showDataId;
}
@ -213,4 +226,87 @@ public class CmsContent implements Serializable {
public void setExt3(String ext3) {
this.ext3 = ext3;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
CmsContent other = (CmsContent) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getPlatformCode() == null ? other.getPlatformCode() == null : this.getPlatformCode().equals(other.getPlatformCode()))
&& (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg()))
&& (this.getJumpType() == null ? other.getJumpType() == null : this.getJumpType().equals(other.getJumpType()))
&& (this.getShowType() == null ? other.getShowType() == null : this.getShowType().equals(other.getShowType()))
&& (this.getAutomatic() == null ? other.getAutomatic() == null : this.getAutomatic().equals(other.getAutomatic()))
&& (this.getShowDataId() == null ? other.getShowDataId() == null : this.getShowDataId().equals(other.getShowDataId()))
&& (this.getJumpUrl() == null ? other.getJumpUrl() == null : this.getJumpUrl().equals(other.getJumpUrl()))
&& (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1()))
&& (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2()))
&& (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getPlatformCode() == null) ? 0 : getPlatformCode().hashCode());
result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode());
result = prime * result + ((getJumpType() == null) ? 0 : getJumpType().hashCode());
result = prime * result + ((getShowType() == null) ? 0 : getShowType().hashCode());
result = prime * result + ((getAutomatic() == null) ? 0 : getAutomatic().hashCode());
result = prime * result + ((getShowDataId() == null) ? 0 : getShowDataId().hashCode());
result = prime * result + ((getJumpUrl() == null) ? 0 : getJumpUrl().hashCode());
result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode());
result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode());
result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", platformCode=").append(platformCode);
sb.append(", code=").append(code);
sb.append(", name=").append(name);
sb.append(", img=").append(img);
sb.append(", jumpType=").append(jumpType);
sb.append(", showType=").append(showType);
sb.append(", automatic=").append(automatic);
sb.append(", showDataId=").append(showDataId);
sb.append(", jumpUrl=").append(jumpUrl);
sb.append(", appid=").append(appid);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", status=").append(status);
sb.append(", ext1=").append(ext1);
sb.append(", ext2=").append(ext2);
sb.append(", ext3=").append(ext3);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

@ -585,6 +585,66 @@ public class CmsContentExample {
return (Criteria) this;
}
public Criteria andAutomaticIsNull() {
addCriterion("automatic is null");
return (Criteria) this;
}
public Criteria andAutomaticIsNotNull() {
addCriterion("automatic is not null");
return (Criteria) this;
}
public Criteria andAutomaticEqualTo(Integer value) {
addCriterion("automatic =", value, "automatic");
return (Criteria) this;
}
public Criteria andAutomaticNotEqualTo(Integer value) {
addCriterion("automatic <>", value, "automatic");
return (Criteria) this;
}
public Criteria andAutomaticGreaterThan(Integer value) {
addCriterion("automatic >", value, "automatic");
return (Criteria) this;
}
public Criteria andAutomaticGreaterThanOrEqualTo(Integer value) {
addCriterion("automatic >=", value, "automatic");
return (Criteria) this;
}
public Criteria andAutomaticLessThan(Integer value) {
addCriterion("automatic <", value, "automatic");
return (Criteria) this;
}
public Criteria andAutomaticLessThanOrEqualTo(Integer value) {
addCriterion("automatic <=", value, "automatic");
return (Criteria) this;
}
public Criteria andAutomaticIn(List<Integer> values) {
addCriterion("automatic in", values, "automatic");
return (Criteria) this;
}
public Criteria andAutomaticNotIn(List<Integer> values) {
addCriterion("automatic not in", values, "automatic");
return (Criteria) this;
}
public Criteria andAutomaticBetween(Integer value1, Integer value2) {
addCriterion("automatic between", value1, value2, "automatic");
return (Criteria) this;
}
public Criteria andAutomaticNotBetween(Integer value1, Integer value2) {
addCriterion("automatic not between", value1, value2, "automatic");
return (Criteria) this;
}
public Criteria andShowDataIdIsNull() {
addCriterion("show_data_id is null");
return (Criteria) this;

Loading…
Cancel
Save