袁野 3 months ago committed by yuanye
parent 8d8ec2b6e0
commit 529336ebbd
  1. 24
      service/src/main/java/com/hfkj/dao/BsOrderStarbucksMapper.java
  2. 28
      service/src/main/java/com/hfkj/dao/BsOrderStarbucksSqlProvider.java
  3. 32
      service/src/main/java/com/hfkj/entity/BsOrderStarbucks.java
  4. 140
      service/src/main/java/com/hfkj/entity/BsOrderStarbucksExample.java

@ -47,9 +47,10 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt {
"img, `name`, order_no, ", "img, `name`, order_no, ",
"child_order_no, mer_id, ", "child_order_no, mer_id, ",
"user_id, user_phone, ", "user_id, user_phone, ",
"price, `status`, create_time, ", "price, store_address, ",
"update_time, ext_1, ", "store_name, `status`, ",
"ext_2, ext_3)", "create_time, update_time, ",
"ext_1, ext_2, ext_3)",
"values (#{storeCode,jdbcType=VARCHAR}, #{platformUniqueId,jdbcType=VARCHAR}, ", "values (#{storeCode,jdbcType=VARCHAR}, #{platformUniqueId,jdbcType=VARCHAR}, ",
"#{productId,jdbcType=INTEGER}, #{cupSize,jdbcType=VARCHAR}, ", "#{productId,jdbcType=INTEGER}, #{cupSize,jdbcType=VARCHAR}, ",
"#{temperature,jdbcType=VARCHAR}, #{cream,jdbcType=VARCHAR}, ", "#{temperature,jdbcType=VARCHAR}, #{cream,jdbcType=VARCHAR}, ",
@ -58,9 +59,10 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt {
"#{img,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ", "#{img,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR}, ",
"#{childOrderNo,jdbcType=VARCHAR}, #{merId,jdbcType=BIGINT}, ", "#{childOrderNo,jdbcType=VARCHAR}, #{merId,jdbcType=BIGINT}, ",
"#{userId,jdbcType=BIGINT}, #{userPhone,jdbcType=VARCHAR}, ", "#{userId,jdbcType=BIGINT}, #{userPhone,jdbcType=VARCHAR}, ",
"#{price,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", "#{price,jdbcType=DECIMAL}, #{storeAddress,jdbcType=VARCHAR}, ",
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", "#{storeName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(BsOrderStarbucks record); int insert(BsOrderStarbucks record);
@ -90,6 +92,8 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt {
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), @Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR),
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
@Result(column="store_address", property="storeAddress", jdbcType=JdbcType.VARCHAR),
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@ -103,8 +107,8 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt {
"select", "select",
"id, store_code, platform_unique_id, product_id, cup_size, temperature, cream, ", "id, store_code, platform_unique_id, product_id, cup_size, temperature, cream, ",
"espresso, milk, milk_bubble, num, img, `name`, order_no, child_order_no, mer_id, ", "espresso, milk, milk_bubble, num, img, `name`, order_no, child_order_no, mer_id, ",
"user_id, user_phone, price, `status`, create_time, update_time, ext_1, ext_2, ", "user_id, user_phone, price, store_address, store_name, `status`, create_time, ",
"ext_3", "update_time, ext_1, ext_2, ext_3",
"from bs_order_starbucks", "from bs_order_starbucks",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
@ -128,6 +132,8 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt {
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), @Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT),
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), @Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR),
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
@Result(column="store_address", property="storeAddress", jdbcType=JdbcType.VARCHAR),
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), @Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
@ -166,6 +172,8 @@ public interface BsOrderStarbucksMapper extends BsOrderStarbucksMapperExt {
"user_id = #{userId,jdbcType=BIGINT},", "user_id = #{userId,jdbcType=BIGINT},",
"user_phone = #{userPhone,jdbcType=VARCHAR},", "user_phone = #{userPhone,jdbcType=VARCHAR},",
"price = #{price,jdbcType=DECIMAL},", "price = #{price,jdbcType=DECIMAL},",
"store_address = #{storeAddress,jdbcType=VARCHAR},",
"store_name = #{storeName,jdbcType=VARCHAR},",
"`status` = #{status,jdbcType=INTEGER},", "`status` = #{status,jdbcType=INTEGER},",
"create_time = #{createTime,jdbcType=TIMESTAMP},", "create_time = #{createTime,jdbcType=TIMESTAMP},",
"update_time = #{updateTime,jdbcType=TIMESTAMP},", "update_time = #{updateTime,jdbcType=TIMESTAMP},",

@ -100,6 +100,14 @@ public class BsOrderStarbucksSqlProvider {
sql.VALUES("price", "#{price,jdbcType=DECIMAL}"); sql.VALUES("price", "#{price,jdbcType=DECIMAL}");
} }
if (record.getStoreAddress() != null) {
sql.VALUES("store_address", "#{storeAddress,jdbcType=VARCHAR}");
}
if (record.getStoreName() != null) {
sql.VALUES("store_name", "#{storeName,jdbcType=VARCHAR}");
}
if (record.getStatus() != null) { if (record.getStatus() != null) {
sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); sql.VALUES("`status`", "#{status,jdbcType=INTEGER}");
} }
@ -152,6 +160,8 @@ public class BsOrderStarbucksSqlProvider {
sql.SELECT("user_id"); sql.SELECT("user_id");
sql.SELECT("user_phone"); sql.SELECT("user_phone");
sql.SELECT("price"); sql.SELECT("price");
sql.SELECT("store_address");
sql.SELECT("store_name");
sql.SELECT("`status`"); sql.SELECT("`status`");
sql.SELECT("create_time"); sql.SELECT("create_time");
sql.SELECT("update_time"); sql.SELECT("update_time");
@ -251,6 +261,14 @@ public class BsOrderStarbucksSqlProvider {
sql.SET("price = #{record.price,jdbcType=DECIMAL}"); sql.SET("price = #{record.price,jdbcType=DECIMAL}");
} }
if (record.getStoreAddress() != null) {
sql.SET("store_address = #{record.storeAddress,jdbcType=VARCHAR}");
}
if (record.getStoreName() != null) {
sql.SET("store_name = #{record.storeName,jdbcType=VARCHAR}");
}
if (record.getStatus() != null) { if (record.getStatus() != null) {
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
} }
@ -302,6 +320,8 @@ public class BsOrderStarbucksSqlProvider {
sql.SET("user_id = #{record.userId,jdbcType=BIGINT}"); sql.SET("user_id = #{record.userId,jdbcType=BIGINT}");
sql.SET("user_phone = #{record.userPhone,jdbcType=VARCHAR}"); sql.SET("user_phone = #{record.userPhone,jdbcType=VARCHAR}");
sql.SET("price = #{record.price,jdbcType=DECIMAL}"); sql.SET("price = #{record.price,jdbcType=DECIMAL}");
sql.SET("store_address = #{record.storeAddress,jdbcType=VARCHAR}");
sql.SET("store_name = #{record.storeName,jdbcType=VARCHAR}");
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}"); sql.SET("update_time = #{record.updateTime,jdbcType=TIMESTAMP}");
@ -390,6 +410,14 @@ public class BsOrderStarbucksSqlProvider {
sql.SET("price = #{price,jdbcType=DECIMAL}"); sql.SET("price = #{price,jdbcType=DECIMAL}");
} }
if (record.getStoreAddress() != null) {
sql.SET("store_address = #{storeAddress,jdbcType=VARCHAR}");
}
if (record.getStoreName() != null) {
sql.SET("store_name = #{storeName,jdbcType=VARCHAR}");
}
if (record.getStatus() != null) { if (record.getStatus() != null) {
sql.SET("`status` = #{status,jdbcType=INTEGER}"); sql.SET("`status` = #{status,jdbcType=INTEGER}");
} }

@ -52,6 +52,16 @@ public class BsOrderStarbucks implements Serializable {
private BigDecimal price; private BigDecimal price;
/**
* 门店地址
*/
private String storeAddress;
/**
* 门店名称
*/
private String storeName;
private Integer status; private Integer status;
private Date createTime; private Date createTime;
@ -218,6 +228,22 @@ public class BsOrderStarbucks implements Serializable {
this.price = price; this.price = price;
} }
public String getStoreAddress() {
return storeAddress;
}
public void setStoreAddress(String storeAddress) {
this.storeAddress = storeAddress;
}
public String getStoreName() {
return storeName;
}
public void setStoreName(String storeName) {
this.storeName = storeName;
}
public Integer getStatus() { public Integer getStatus() {
return status; return status;
} }
@ -297,6 +323,8 @@ public class BsOrderStarbucks implements Serializable {
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getUserPhone() == null ? other.getUserPhone() == null : this.getUserPhone().equals(other.getUserPhone())) && (this.getUserPhone() == null ? other.getUserPhone() == null : this.getUserPhone().equals(other.getUserPhone()))
&& (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice())) && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
&& (this.getStoreAddress() == null ? other.getStoreAddress() == null : this.getStoreAddress().equals(other.getStoreAddress()))
&& (this.getStoreName() == null ? other.getStoreName() == null : this.getStoreName().equals(other.getStoreName()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
@ -328,6 +356,8 @@ public class BsOrderStarbucks implements Serializable {
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getUserPhone() == null) ? 0 : getUserPhone().hashCode()); result = prime * result + ((getUserPhone() == null) ? 0 : getUserPhone().hashCode());
result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode()); result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
result = prime * result + ((getStoreAddress() == null) ? 0 : getStoreAddress().hashCode());
result = prime * result + ((getStoreName() == null) ? 0 : getStoreName().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
@ -362,6 +392,8 @@ public class BsOrderStarbucks implements Serializable {
sb.append(", userId=").append(userId); sb.append(", userId=").append(userId);
sb.append(", userPhone=").append(userPhone); sb.append(", userPhone=").append(userPhone);
sb.append(", price=").append(price); sb.append(", price=").append(price);
sb.append(", storeAddress=").append(storeAddress);
sb.append(", storeName=").append(storeName);
sb.append(", status=").append(status); sb.append(", status=").append(status);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime); sb.append(", updateTime=").append(updateTime);

@ -1396,6 +1396,146 @@ public class BsOrderStarbucksExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andStoreAddressIsNull() {
addCriterion("store_address is null");
return (Criteria) this;
}
public Criteria andStoreAddressIsNotNull() {
addCriterion("store_address is not null");
return (Criteria) this;
}
public Criteria andStoreAddressEqualTo(String value) {
addCriterion("store_address =", value, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressNotEqualTo(String value) {
addCriterion("store_address <>", value, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressGreaterThan(String value) {
addCriterion("store_address >", value, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressGreaterThanOrEqualTo(String value) {
addCriterion("store_address >=", value, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressLessThan(String value) {
addCriterion("store_address <", value, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressLessThanOrEqualTo(String value) {
addCriterion("store_address <=", value, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressLike(String value) {
addCriterion("store_address like", value, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressNotLike(String value) {
addCriterion("store_address not like", value, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressIn(List<String> values) {
addCriterion("store_address in", values, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressNotIn(List<String> values) {
addCriterion("store_address not in", values, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressBetween(String value1, String value2) {
addCriterion("store_address between", value1, value2, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreAddressNotBetween(String value1, String value2) {
addCriterion("store_address not between", value1, value2, "storeAddress");
return (Criteria) this;
}
public Criteria andStoreNameIsNull() {
addCriterion("store_name is null");
return (Criteria) this;
}
public Criteria andStoreNameIsNotNull() {
addCriterion("store_name is not null");
return (Criteria) this;
}
public Criteria andStoreNameEqualTo(String value) {
addCriterion("store_name =", value, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameNotEqualTo(String value) {
addCriterion("store_name <>", value, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameGreaterThan(String value) {
addCriterion("store_name >", value, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameGreaterThanOrEqualTo(String value) {
addCriterion("store_name >=", value, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameLessThan(String value) {
addCriterion("store_name <", value, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameLessThanOrEqualTo(String value) {
addCriterion("store_name <=", value, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameLike(String value) {
addCriterion("store_name like", value, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameNotLike(String value) {
addCriterion("store_name not like", value, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameIn(List<String> values) {
addCriterion("store_name in", values, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameNotIn(List<String> values) {
addCriterion("store_name not in", values, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameBetween(String value1, String value2) {
addCriterion("store_name between", value1, value2, "storeName");
return (Criteria) this;
}
public Criteria andStoreNameNotBetween(String value1, String value2) {
addCriterion("store_name not between", value1, value2, "storeName");
return (Criteria) this;
}
public Criteria andStatusIsNull() { public Criteria andStatusIsNull() {
addCriterion("`status` is null"); addCriterion("`status` is null");
return (Criteria) this; return (Criteria) this;

Loading…
Cancel
Save