test
This commit is contained in:
parent
8ddd3529a0
commit
a5faaf1567
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -83,6 +83,13 @@ public class SmsCoupon implements Serializable {
|
||||
*/
|
||||
private Integer useCount;
|
||||
|
||||
/**
|
||||
* 领取数量
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Integer receiveCount;
|
||||
|
||||
/**
|
||||
* 可以领取的日期
|
||||
*
|
||||
@ -218,6 +225,14 @@ public class SmsCoupon implements Serializable {
|
||||
this.useCount = useCount;
|
||||
}
|
||||
|
||||
public Integer getReceiveCount() {
|
||||
return receiveCount;
|
||||
}
|
||||
|
||||
public void setReceiveCount(Integer receiveCount) {
|
||||
this.receiveCount = receiveCount;
|
||||
}
|
||||
|
||||
public Date getEnableTime() {
|
||||
return enableTime;
|
||||
}
|
||||
@ -262,6 +277,7 @@ public class SmsCoupon implements Serializable {
|
||||
sb.append(", note=").append(note);
|
||||
sb.append(", publishCount=").append(publishCount);
|
||||
sb.append(", useCount=").append(useCount);
|
||||
sb.append(", receiveCount=").append(receiveCount);
|
||||
sb.append(", enableTime=").append(enableTime);
|
||||
sb.append(", code=").append(code);
|
||||
sb.append(", memberLevel=").append(memberLevel);
|
||||
|
@ -976,6 +976,66 @@ public class SmsCouponExample {
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountIsNull() {
|
||||
addCriterion("receive_count is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountIsNotNull() {
|
||||
addCriterion("receive_count is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountEqualTo(Integer value) {
|
||||
addCriterion("receive_count =", value, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountNotEqualTo(Integer value) {
|
||||
addCriterion("receive_count <>", value, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountGreaterThan(Integer value) {
|
||||
addCriterion("receive_count >", value, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("receive_count >=", value, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountLessThan(Integer value) {
|
||||
addCriterion("receive_count <", value, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("receive_count <=", value, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountIn(List<Integer> values) {
|
||||
addCriterion("receive_count in", values, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountNotIn(List<Integer> values) {
|
||||
addCriterion("receive_count not in", values, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountBetween(Integer value1, Integer value2) {
|
||||
addCriterion("receive_count between", value1, value2, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReceiveCountNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("receive_count not between", value1, value2, "receiveCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnableTimeIsNull() {
|
||||
addCriterion("enable_time is null");
|
||||
return (Criteria) this;
|
||||
|
@ -16,6 +16,7 @@
|
||||
<result column="note" jdbcType="VARCHAR" property="note" />
|
||||
<result column="publish_count" jdbcType="INTEGER" property="publishCount" />
|
||||
<result column="use_count" jdbcType="INTEGER" property="useCount" />
|
||||
<result column="receive_count" jdbcType="INTEGER" property="receiveCount" />
|
||||
<result column="enable_time" jdbcType="TIMESTAMP" property="enableTime" />
|
||||
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||
<result column="member_level" jdbcType="INTEGER" property="memberLevel" />
|
||||
@ -80,7 +81,7 @@
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, type, name, platform, count, amount, per_limit, min_point, start_time, end_time,
|
||||
use_type, note, publish_count, use_count, enable_time, code, member_level
|
||||
use_type, note, publish_count, use_count, receive_count, enable_time, code, member_level
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.macro.mall.model.SmsCouponExample" resultMap="BaseResultMap">
|
||||
select
|
||||
@ -120,14 +121,14 @@
|
||||
count, amount, per_limit,
|
||||
min_point, start_time, end_time,
|
||||
use_type, note, publish_count,
|
||||
use_count, enable_time, code,
|
||||
member_level)
|
||||
use_count, receive_count, enable_time,
|
||||
code, member_level)
|
||||
values (#{type,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR},
|
||||
#{count,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, #{perLimit,jdbcType=INTEGER},
|
||||
#{minPoint,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
|
||||
#{useType,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}, #{publishCount,jdbcType=INTEGER},
|
||||
#{useCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP}, #{code,jdbcType=VARCHAR},
|
||||
#{memberLevel,jdbcType=INTEGER})
|
||||
#{useCount,jdbcType=INTEGER}, #{receiveCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP},
|
||||
#{code,jdbcType=VARCHAR}, #{memberLevel,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsCoupon">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
@ -174,6 +175,9 @@
|
||||
<if test="useCount != null">
|
||||
use_count,
|
||||
</if>
|
||||
<if test="receiveCount != null">
|
||||
receive_count,
|
||||
</if>
|
||||
<if test="enableTime != null">
|
||||
enable_time,
|
||||
</if>
|
||||
@ -224,6 +228,9 @@
|
||||
<if test="useCount != null">
|
||||
#{useCount,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="receiveCount != null">
|
||||
#{receiveCount,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="enableTime != null">
|
||||
#{enableTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
@ -286,6 +293,9 @@
|
||||
<if test="record.useCount != null">
|
||||
use_count = #{record.useCount,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.receiveCount != null">
|
||||
receive_count = #{record.receiveCount,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.enableTime != null">
|
||||
enable_time = #{record.enableTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
@ -316,6 +326,7 @@
|
||||
note = #{record.note,jdbcType=VARCHAR},
|
||||
publish_count = #{record.publishCount,jdbcType=INTEGER},
|
||||
use_count = #{record.useCount,jdbcType=INTEGER},
|
||||
receive_count = #{record.receiveCount,jdbcType=INTEGER},
|
||||
enable_time = #{record.enableTime,jdbcType=TIMESTAMP},
|
||||
code = #{record.code,jdbcType=VARCHAR},
|
||||
member_level = #{record.memberLevel,jdbcType=INTEGER}
|
||||
@ -365,6 +376,9 @@
|
||||
<if test="useCount != null">
|
||||
use_count = #{useCount,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="receiveCount != null">
|
||||
receive_count = #{receiveCount,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="enableTime != null">
|
||||
enable_time = #{enableTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
@ -392,6 +406,7 @@
|
||||
note = #{note,jdbcType=VARCHAR},
|
||||
publish_count = #{publishCount,jdbcType=INTEGER},
|
||||
use_count = #{useCount,jdbcType=INTEGER},
|
||||
receive_count = #{receiveCount,jdbcType=INTEGER},
|
||||
enable_time = #{enableTime,jdbcType=TIMESTAMP},
|
||||
code = #{code,jdbcType=VARCHAR},
|
||||
member_level = #{memberLevel,jdbcType=INTEGER}
|
||||
|
Loading…
x
Reference in New Issue
Block a user