dev-discount
袁野 3 years ago
parent 3246414803
commit e6fa3f74e8
  1. 19
      hai-service/src/main/java/com/hai/dao/OutRechargeChildOrderMapper.java
  2. 14
      hai-service/src/main/java/com/hai/dao/OutRechargeChildOrderSqlProvider.java
  3. 18
      hai-service/src/main/java/com/hai/entity/OutRechargeChildOrder.java
  4. 60
      hai-service/src/main/java/com/hai/entity/OutRechargeChildOrderExample.java

@ -40,13 +40,13 @@ public interface OutRechargeChildOrderMapper extends OutRechargeChildOrderMapper
@Insert({
"insert into out_recharge_child_order (parent_order_id, order_no, ",
"recharge_platform, create_time, ",
"`status`, ext_1, ext_2, ",
"ext_3)",
"recharge_platform, update_time, ",
"create_time, `status`, ",
"ext_1, ext_2, ext_3)",
"values (#{parentOrderId,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ",
"#{rechargePlatform,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ",
"#{ext3,jdbcType=VARCHAR})"
"#{rechargePlatform,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(OutRechargeChildOrder record);
@ -61,6 +61,7 @@ public interface OutRechargeChildOrderMapper extends OutRechargeChildOrderMapper
@Result(column="parent_order_id", property="parentOrderId", jdbcType=JdbcType.BIGINT),
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
@Result(column="recharge_platform", property="rechargePlatform", jdbcType=JdbcType.INTEGER),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@ -71,8 +72,8 @@ public interface OutRechargeChildOrderMapper extends OutRechargeChildOrderMapper
@Select({
"select",
"id, parent_order_id, order_no, recharge_platform, create_time, `status`, ext_1, ",
"ext_2, ext_3",
"id, parent_order_id, order_no, recharge_platform, update_time, create_time, ",
"`status`, ext_1, ext_2, ext_3",
"from out_recharge_child_order",
"where id = #{id,jdbcType=BIGINT}"
})
@ -81,6 +82,7 @@ public interface OutRechargeChildOrderMapper extends OutRechargeChildOrderMapper
@Result(column="parent_order_id", property="parentOrderId", jdbcType=JdbcType.BIGINT),
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
@Result(column="recharge_platform", property="rechargePlatform", jdbcType=JdbcType.INTEGER),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@ -103,6 +105,7 @@ public interface OutRechargeChildOrderMapper extends OutRechargeChildOrderMapper
"set parent_order_id = #{parentOrderId,jdbcType=BIGINT},",
"order_no = #{orderNo,jdbcType=VARCHAR},",
"recharge_platform = #{rechargePlatform,jdbcType=INTEGER},",
"update_time = #{updateTime,jdbcType=TIMESTAMP},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",
"`status` = #{status,jdbcType=INTEGER},",
"ext_1 = #{ext1,jdbcType=VARCHAR},",

@ -40,6 +40,10 @@ public class OutRechargeChildOrderSqlProvider {
sql.VALUES("recharge_platform", "#{rechargePlatform,jdbcType=INTEGER}");
}
if (record.getUpdateTime() != null) {
sql.VALUES("update_time", "#{updateTime,jdbcType=TIMESTAMP}");
}
if (record.getCreateTime() != null) {
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
}
@ -73,6 +77,7 @@ public class OutRechargeChildOrderSqlProvider {
sql.SELECT("parent_order_id");
sql.SELECT("order_no");
sql.SELECT("recharge_platform");
sql.SELECT("update_time");
sql.SELECT("create_time");
sql.SELECT("`status`");
sql.SELECT("ext_1");
@ -111,6 +116,10 @@ public class OutRechargeChildOrderSqlProvider {
sql.SET("recharge_platform = #{record.rechargePlatform,jdbcType=INTEGER}");
}
if (record.getUpdateTime() != null) {
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
}
@ -143,6 +152,7 @@ public class OutRechargeChildOrderSqlProvider {
sql.SET("parent_order_id = #{record.parentOrderId,jdbcType=BIGINT}");
sql.SET("order_no = #{record.orderNo,jdbcType=VARCHAR}");
sql.SET("recharge_platform = #{record.rechargePlatform,jdbcType=INTEGER}");
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}");
@ -170,6 +180,10 @@ public class OutRechargeChildOrderSqlProvider {
sql.SET("recharge_platform = #{rechargePlatform,jdbcType=INTEGER}");
}
if (record.getUpdateTime() != null) {
sql.SET("update_time = #{updateTime,jdbcType=TIMESTAMP}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
}

@ -33,13 +33,18 @@ public class OutRechargeChildOrder implements Serializable {
*/
private Integer rechargePlatform;
/**
* 更新时间
*/
private Date updateTime;
/**
* 创建时间
*/
private Date createTime;
/**
* 101:充值成功 102: 充值中 103充值失败
* 101:充值成功 102: 充值中 103充值失败 104 未充值
*/
private Integer status;
@ -92,6 +97,14 @@ public class OutRechargeChildOrder implements Serializable {
this.rechargePlatform = rechargePlatform;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Date getCreateTime() {
return createTime;
}
@ -148,6 +161,7 @@ public class OutRechargeChildOrder implements Serializable {
&& (this.getParentOrderId() == null ? other.getParentOrderId() == null : this.getParentOrderId().equals(other.getParentOrderId()))
&& (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo()))
&& (this.getRechargePlatform() == null ? other.getRechargePlatform() == null : this.getRechargePlatform().equals(other.getRechargePlatform()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1()))
@ -163,6 +177,7 @@ public class OutRechargeChildOrder implements Serializable {
result = prime * result + ((getParentOrderId() == null) ? 0 : getParentOrderId().hashCode());
result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
result = prime * result + ((getRechargePlatform() == null) ? 0 : getRechargePlatform().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode());
@ -181,6 +196,7 @@ public class OutRechargeChildOrder implements Serializable {
sb.append(", parentOrderId=").append(parentOrderId);
sb.append(", orderNo=").append(orderNo);
sb.append(", rechargePlatform=").append(rechargePlatform);
sb.append(", updateTime=").append(updateTime);
sb.append(", createTime=").append(createTime);
sb.append(", status=").append(status);
sb.append(", ext1=").append(ext1);

@ -375,6 +375,66 @@ public class OutRechargeChildOrderExample {
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;

Loading…
Cancel
Save