提交代码

dev-discount
胡锐 3 years ago
parent 1f74d6efbb
commit bb87e5c057
  1. 13
      hai-service/src/main/java/com/hai/dao/HighDiscountPackageActualMapper.java
  2. 14
      hai-service/src/main/java/com/hai/dao/HighDiscountPackageActualSqlProvider.java
  3. 16
      hai-service/src/main/java/com/hai/entity/HighDiscountPackageActual.java
  4. 70
      hai-service/src/main/java/com/hai/entity/HighDiscountPackageActualExample.java

@ -42,13 +42,13 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu
"insert into high_discount_package_actual (discount_package_id, created_user_id, ",
"created_time, user_id, ",
"allocation_time, child_order_id, ",
"batch, `status`, ext_1, ",
"ext_2, ext_3)",
"`status`, ext_1, ext_2, ",
"ext_3)",
"values (#{discountPackageId,jdbcType=INTEGER}, #{createdUserId,jdbcType=INTEGER}, ",
"#{createdTime,jdbcType=TIMESTAMP}, #{userId,jdbcType=INTEGER}, ",
"#{allocationTime,jdbcType=TIMESTAMP}, #{childOrderId,jdbcType=BIGINT}, ",
"#{batch,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ",
"#{ext3,jdbcType=VARCHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(HighDiscountPackageActual record);
@ -66,7 +66,6 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu
@Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER),
@Result(column="allocation_time", property="allocationTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT),
@Result(column="batch", property="batch", jdbcType=JdbcType.VARCHAR),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@ -77,7 +76,7 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu
@Select({
"select",
"id, discount_package_id, created_user_id, created_time, user_id, allocation_time, ",
"child_order_id, batch, `status`, ext_1, ext_2, ext_3",
"child_order_id, `status`, ext_1, ext_2, ext_3",
"from high_discount_package_actual",
"where id = #{id,jdbcType=INTEGER}"
})
@ -89,7 +88,6 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu
@Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER),
@Result(column="allocation_time", property="allocationTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT),
@Result(column="batch", property="batch", jdbcType=JdbcType.VARCHAR),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@ -114,7 +112,6 @@ public interface HighDiscountPackageActualMapper extends HighDiscountPackageActu
"user_id = #{userId,jdbcType=INTEGER},",
"allocation_time = #{allocationTime,jdbcType=TIMESTAMP},",
"child_order_id = #{childOrderId,jdbcType=BIGINT},",
"batch = #{batch,jdbcType=VARCHAR},",
"`status` = #{status,jdbcType=INTEGER},",
"ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},",

@ -52,10 +52,6 @@ public class HighDiscountPackageActualSqlProvider {
sql.VALUES("child_order_id", "#{childOrderId,jdbcType=BIGINT}");
}
if (record.getBatch() != null) {
sql.VALUES("batch", "#{batch,jdbcType=VARCHAR}");
}
if (record.getStatus() != null) {
sql.VALUES("`status`", "#{status,jdbcType=INTEGER}");
}
@ -88,7 +84,6 @@ public class HighDiscountPackageActualSqlProvider {
sql.SELECT("user_id");
sql.SELECT("allocation_time");
sql.SELECT("child_order_id");
sql.SELECT("batch");
sql.SELECT("`status`");
sql.SELECT("ext_1");
sql.SELECT("ext_2");
@ -138,10 +133,6 @@ public class HighDiscountPackageActualSqlProvider {
sql.SET("child_order_id = #{record.childOrderId,jdbcType=BIGINT}");
}
if (record.getBatch() != null) {
sql.SET("batch = #{record.batch,jdbcType=VARCHAR}");
}
if (record.getStatus() != null) {
sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
}
@ -173,7 +164,6 @@ public class HighDiscountPackageActualSqlProvider {
sql.SET("user_id = #{record.userId,jdbcType=INTEGER}");
sql.SET("allocation_time = #{record.allocationTime,jdbcType=TIMESTAMP}");
sql.SET("child_order_id = #{record.childOrderId,jdbcType=BIGINT}");
sql.SET("batch = #{record.batch,jdbcType=VARCHAR}");
sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}");
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}");
@ -212,10 +202,6 @@ public class HighDiscountPackageActualSqlProvider {
sql.SET("child_order_id = #{childOrderId,jdbcType=BIGINT}");
}
if (record.getBatch() != null) {
sql.SET("batch = #{batch,jdbcType=VARCHAR}");
}
if (record.getStatus() != null) {
sql.SET("`status` = #{status,jdbcType=INTEGER}");
}

@ -48,11 +48,6 @@ public class HighDiscountPackageActual implements Serializable {
*/
private Long childOrderId;
/**
* 生成批次
*/
private String batch;
/**
* 状态 1: 待分配 2:预分配售卖3:已分配
*/
@ -131,14 +126,6 @@ public class HighDiscountPackageActual implements Serializable {
this.childOrderId = childOrderId;
}
public String getBatch() {
return batch;
}
public void setBatch(String batch) {
this.batch = batch;
}
public Integer getStatus() {
return status;
}
@ -190,7 +177,6 @@ public class HighDiscountPackageActual implements Serializable {
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getAllocationTime() == null ? other.getAllocationTime() == null : this.getAllocationTime().equals(other.getAllocationTime()))
&& (this.getChildOrderId() == null ? other.getChildOrderId() == null : this.getChildOrderId().equals(other.getChildOrderId()))
&& (this.getBatch() == null ? other.getBatch() == null : this.getBatch().equals(other.getBatch()))
&& (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()))
@ -208,7 +194,6 @@ public class HighDiscountPackageActual implements Serializable {
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getAllocationTime() == null) ? 0 : getAllocationTime().hashCode());
result = prime * result + ((getChildOrderId() == null) ? 0 : getChildOrderId().hashCode());
result = prime * result + ((getBatch() == null) ? 0 : getBatch().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());
@ -229,7 +214,6 @@ public class HighDiscountPackageActual implements Serializable {
sb.append(", userId=").append(userId);
sb.append(", allocationTime=").append(allocationTime);
sb.append(", childOrderId=").append(childOrderId);
sb.append(", batch=").append(batch);
sb.append(", status=").append(status);
sb.append(", ext1=").append(ext1);
sb.append(", ext2=").append(ext2);

@ -545,76 +545,6 @@ public class HighDiscountPackageActualExample {
return (Criteria) this;
}
public Criteria andBatchIsNull() {
addCriterion("batch is null");
return (Criteria) this;
}
public Criteria andBatchIsNotNull() {
addCriterion("batch is not null");
return (Criteria) this;
}
public Criteria andBatchEqualTo(String value) {
addCriterion("batch =", value, "batch");
return (Criteria) this;
}
public Criteria andBatchNotEqualTo(String value) {
addCriterion("batch <>", value, "batch");
return (Criteria) this;
}
public Criteria andBatchGreaterThan(String value) {
addCriterion("batch >", value, "batch");
return (Criteria) this;
}
public Criteria andBatchGreaterThanOrEqualTo(String value) {
addCriterion("batch >=", value, "batch");
return (Criteria) this;
}
public Criteria andBatchLessThan(String value) {
addCriterion("batch <", value, "batch");
return (Criteria) this;
}
public Criteria andBatchLessThanOrEqualTo(String value) {
addCriterion("batch <=", value, "batch");
return (Criteria) this;
}
public Criteria andBatchLike(String value) {
addCriterion("batch like", value, "batch");
return (Criteria) this;
}
public Criteria andBatchNotLike(String value) {
addCriterion("batch not like", value, "batch");
return (Criteria) this;
}
public Criteria andBatchIn(List<String> values) {
addCriterion("batch in", values, "batch");
return (Criteria) this;
}
public Criteria andBatchNotIn(List<String> values) {
addCriterion("batch not in", values, "batch");
return (Criteria) this;
}
public Criteria andBatchBetween(String value1, String value2) {
addCriterion("batch between", value1, value2, "batch");
return (Criteria) this;
}
public Criteria andBatchNotBetween(String value1, String value2) {
addCriterion("batch not between", value1, value2, "batch");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;

Loading…
Cancel
Save