首页管理接口添加
This commit is contained in:
@@ -56,6 +56,13 @@ public class SmsHomeAdvertise implements Serializable {
|
||||
*/
|
||||
private String note;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getId() {
|
||||
@@ -146,6 +153,14 @@ public class SmsHomeAdvertise implements Serializable {
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public Integer getSort() {
|
||||
return sort;
|
||||
}
|
||||
|
||||
public void setSort(Integer sort) {
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
@@ -163,6 +178,7 @@ public class SmsHomeAdvertise implements Serializable {
|
||||
sb.append(", orderCount=").append(orderCount);
|
||||
sb.append(", url=").append(url);
|
||||
sb.append(", note=").append(note);
|
||||
sb.append(", sort=").append(sort);
|
||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
|
||||
@@ -804,6 +804,66 @@ public class SmsHomeAdvertiseExample {
|
||||
addCriterion("note not between", value1, value2, "note");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIsNull() {
|
||||
addCriterion("sort is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIsNotNull() {
|
||||
addCriterion("sort is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortEqualTo(Integer value) {
|
||||
addCriterion("sort =", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotEqualTo(Integer value) {
|
||||
addCriterion("sort <>", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortGreaterThan(Integer value) {
|
||||
addCriterion("sort >", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("sort >=", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLessThan(Integer value) {
|
||||
addCriterion("sort <", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("sort <=", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIn(List<Integer> values) {
|
||||
addCriterion("sort in", values, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotIn(List<Integer> values) {
|
||||
addCriterion("sort not in", values, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortBetween(Integer value1, Integer value2) {
|
||||
addCriterion("sort between", value1, value2, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("sort not between", value1, value2, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<result column="order_count" jdbcType="INTEGER" property="orderCount" />
|
||||
<result column="url" jdbcType="VARCHAR" property="url" />
|
||||
<result column="note" jdbcType="VARCHAR" property="note" />
|
||||
<result column="sort" jdbcType="INTEGER" property="sort" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
@@ -74,7 +75,7 @@
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, name, type, pic, start_time, end_time, status, click_count, order_count, url,
|
||||
note
|
||||
note, sort
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample" resultMap="BaseResultMap">
|
||||
select
|
||||
@@ -113,11 +114,11 @@
|
||||
insert into sms_home_advertise (name, type, pic,
|
||||
start_time, end_time, status,
|
||||
click_count, order_count, url,
|
||||
note)
|
||||
note, sort)
|
||||
values (#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{pic,jdbcType=VARCHAR},
|
||||
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
|
||||
#{clickCount,jdbcType=INTEGER}, #{orderCount,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR},
|
||||
#{note,jdbcType=VARCHAR})
|
||||
#{note,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeAdvertise">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
@@ -155,6 +156,9 @@
|
||||
<if test="note != null">
|
||||
note,
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">
|
||||
@@ -187,6 +191,9 @@
|
||||
<if test="note != null">
|
||||
#{note,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
#{sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample" resultType="java.lang.Integer">
|
||||
@@ -231,6 +238,9 @@
|
||||
<if test="record.note != null">
|
||||
note = #{record.note,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.sort != null">
|
||||
sort = #{record.sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -248,7 +258,8 @@
|
||||
click_count = #{record.clickCount,jdbcType=INTEGER},
|
||||
order_count = #{record.orderCount,jdbcType=INTEGER},
|
||||
url = #{record.url,jdbcType=VARCHAR},
|
||||
note = #{record.note,jdbcType=VARCHAR}
|
||||
note = #{record.note,jdbcType=VARCHAR},
|
||||
sort = #{record.sort,jdbcType=INTEGER}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -286,6 +297,9 @@
|
||||
<if test="note != null">
|
||||
note = #{note,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort = #{sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -300,7 +314,8 @@
|
||||
click_count = #{clickCount,jdbcType=INTEGER},
|
||||
order_count = #{orderCount,jdbcType=INTEGER},
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
note = #{note,jdbcType=VARCHAR}
|
||||
note = #{note,jdbcType=VARCHAR},
|
||||
sort = #{sort,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user