提交代码

new-dev
胡锐 2 years ago
parent 9e5cf88db9
commit cece097ed0
  1. 65
      hai-service/src/main/java/com/hai/dao/HighChildOrderMapper.java
  2. 14
      hai-service/src/main/java/com/hai/dao/HighChildOrderSqlProvider.java
  3. 16
      hai-service/src/main/java/com/hai/entity/HighChildOrder.java
  4. 60
      hai-service/src/main/java/com/hai/entity/HighChildOrderExample.java

@ -44,39 +44,41 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
"child_order_no, store_id, ",
"store_name, store_address, ",
"goods_type, goods_id, ",
"goods_name, goods_desc, ",
"goods_img, sku_id, ",
"goods_spec_name, goods_price, ",
"goods_actual_price, surplus_refund_num, ",
"surplus_refund_price, surplus_refund_integral, ",
"channel_order_no, total_price, ",
"total_actual_price, total_deduction_price, ",
"sale_count, giveaway_type, ",
"child_order_status, praise_status, ",
"create_time, pay_time, ",
"finish_time, refund_time, ",
"refund_remarks, cancel_time, ",
"ext_1, ext_2, ext_3, ",
"ext_4, ext_5, ext_6)",
"sec_user_id, goods_name, ",
"goods_desc, goods_img, ",
"sku_id, goods_spec_name, ",
"goods_price, goods_actual_price, ",
"surplus_refund_num, surplus_refund_price, ",
"surplus_refund_integral, channel_order_no, ",
"total_price, total_actual_price, ",
"total_deduction_price, sale_count, ",
"giveaway_type, child_order_status, ",
"praise_status, create_time, ",
"pay_time, finish_time, ",
"refund_time, refund_remarks, ",
"cancel_time, ext_1, ",
"ext_2, ext_3, ext_4, ",
"ext_5, ext_6)",
"values (#{orderId,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ",
"#{memId,jdbcType=BIGINT}, #{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ",
"#{childOrderNo,jdbcType=VARCHAR}, #{storeId,jdbcType=BIGINT}, ",
"#{storeName,jdbcType=VARCHAR}, #{storeAddress,jdbcType=VARCHAR}, ",
"#{goodsType,jdbcType=INTEGER}, #{goodsId,jdbcType=BIGINT}, ",
"#{goodsName,jdbcType=VARCHAR}, #{goodsDesc,jdbcType=VARCHAR}, ",
"#{goodsImg,jdbcType=VARCHAR}, #{skuId,jdbcType=BIGINT}, ",
"#{goodsSpecName,jdbcType=VARCHAR}, #{goodsPrice,jdbcType=DECIMAL}, ",
"#{goodsActualPrice,jdbcType=DECIMAL}, #{surplusRefundNum,jdbcType=INTEGER}, ",
"#{surplusRefundPrice,jdbcType=DECIMAL}, #{surplusRefundIntegral,jdbcType=INTEGER}, ",
"#{channelOrderNo,jdbcType=VARCHAR}, #{totalPrice,jdbcType=DECIMAL}, ",
"#{totalActualPrice,jdbcType=DECIMAL}, #{totalDeductionPrice,jdbcType=DECIMAL}, ",
"#{saleCount,jdbcType=INTEGER}, #{giveawayType,jdbcType=BIT}, ",
"#{childOrderStatus,jdbcType=INTEGER}, #{praiseStatus,jdbcType=INTEGER}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ",
"#{finishTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ",
"#{refundRemarks,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ",
"#{ext4,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})"
"#{secUserId,jdbcType=BIGINT}, #{goodsName,jdbcType=VARCHAR}, ",
"#{goodsDesc,jdbcType=VARCHAR}, #{goodsImg,jdbcType=VARCHAR}, ",
"#{skuId,jdbcType=BIGINT}, #{goodsSpecName,jdbcType=VARCHAR}, ",
"#{goodsPrice,jdbcType=DECIMAL}, #{goodsActualPrice,jdbcType=DECIMAL}, ",
"#{surplusRefundNum,jdbcType=INTEGER}, #{surplusRefundPrice,jdbcType=DECIMAL}, ",
"#{surplusRefundIntegral,jdbcType=INTEGER}, #{channelOrderNo,jdbcType=VARCHAR}, ",
"#{totalPrice,jdbcType=DECIMAL}, #{totalActualPrice,jdbcType=DECIMAL}, ",
"#{totalDeductionPrice,jdbcType=DECIMAL}, #{saleCount,jdbcType=INTEGER}, ",
"#{giveawayType,jdbcType=BIT}, #{childOrderStatus,jdbcType=INTEGER}, ",
"#{praiseStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{payTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ",
"#{refundTime,jdbcType=TIMESTAMP}, #{refundRemarks,jdbcType=VARCHAR}, ",
"#{cancelTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR}, ",
"#{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(HighChildOrder record);
@ -99,6 +101,7 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
@Result(column="store_address", property="storeAddress", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER),
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT),
@Result(column="sec_user_id", property="secUserId", jdbcType=JdbcType.BIGINT),
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_desc", property="goodsDesc", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_img", property="goodsImg", jdbcType=JdbcType.VARCHAR),
@ -135,8 +138,8 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
@Select({
"select",
"id, order_id, order_no, mem_id, mem_name, mem_phone, child_order_no, store_id, ",
"store_name, store_address, goods_type, goods_id, goods_name, goods_desc, goods_img, ",
"sku_id, goods_spec_name, goods_price, goods_actual_price, surplus_refund_num, ",
"store_name, store_address, goods_type, goods_id, sec_user_id, goods_name, goods_desc, ",
"goods_img, sku_id, goods_spec_name, goods_price, goods_actual_price, surplus_refund_num, ",
"surplus_refund_price, surplus_refund_integral, channel_order_no, total_price, ",
"total_actual_price, total_deduction_price, sale_count, giveaway_type, child_order_status, ",
"praise_status, create_time, pay_time, finish_time, refund_time, refund_remarks, ",
@ -157,6 +160,7 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
@Result(column="store_address", property="storeAddress", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER),
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT),
@Result(column="sec_user_id", property="secUserId", jdbcType=JdbcType.BIGINT),
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_desc", property="goodsDesc", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_img", property="goodsImg", jdbcType=JdbcType.VARCHAR),
@ -212,6 +216,7 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
"store_address = #{storeAddress,jdbcType=VARCHAR},",
"goods_type = #{goodsType,jdbcType=INTEGER},",
"goods_id = #{goodsId,jdbcType=BIGINT},",
"sec_user_id = #{secUserId,jdbcType=BIGINT},",
"goods_name = #{goodsName,jdbcType=VARCHAR},",
"goods_desc = #{goodsDesc,jdbcType=VARCHAR},",
"goods_img = #{goodsImg,jdbcType=VARCHAR},",

@ -72,6 +72,10 @@ public class HighChildOrderSqlProvider {
sql.VALUES("goods_id", "#{goodsId,jdbcType=BIGINT}");
}
if (record.getSecUserId() != null) {
sql.VALUES("sec_user_id", "#{secUserId,jdbcType=BIGINT}");
}
if (record.getGoodsName() != null) {
sql.VALUES("goods_name", "#{goodsName,jdbcType=VARCHAR}");
}
@ -213,6 +217,7 @@ public class HighChildOrderSqlProvider {
sql.SELECT("store_address");
sql.SELECT("goods_type");
sql.SELECT("goods_id");
sql.SELECT("sec_user_id");
sql.SELECT("goods_name");
sql.SELECT("goods_desc");
sql.SELECT("goods_img");
@ -308,6 +313,10 @@ public class HighChildOrderSqlProvider {
sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}");
}
if (record.getSecUserId() != null) {
sql.SET("sec_user_id = #{record.secUserId,jdbcType=BIGINT}");
}
if (record.getGoodsName() != null) {
sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}");
}
@ -448,6 +457,7 @@ public class HighChildOrderSqlProvider {
sql.SET("store_address = #{record.storeAddress,jdbcType=VARCHAR}");
sql.SET("goods_type = #{record.goodsType,jdbcType=INTEGER}");
sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}");
sql.SET("sec_user_id = #{record.secUserId,jdbcType=BIGINT}");
sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}");
sql.SET("goods_desc = #{record.goodsDesc,jdbcType=VARCHAR}");
sql.SET("goods_img = #{record.goodsImg,jdbcType=VARCHAR}");
@ -532,6 +542,10 @@ public class HighChildOrderSqlProvider {
sql.SET("goods_id = #{goodsId,jdbcType=BIGINT}");
}
if (record.getSecUserId() != null) {
sql.SET("sec_user_id = #{secUserId,jdbcType=BIGINT}");
}
if (record.getGoodsName() != null) {
sql.SET("goods_name = #{goodsName,jdbcType=VARCHAR}");
}

@ -84,6 +84,11 @@ public class HighChildOrder implements Serializable {
*/
private Long goodsId;
/**
* 后台用户ID
*/
private Long secUserId;
/**
* 商品的名称
*/
@ -321,6 +326,14 @@ public class HighChildOrder implements Serializable {
this.goodsId = goodsId;
}
public Long getSecUserId() {
return secUserId;
}
public void setSecUserId(Long secUserId) {
this.secUserId = secUserId;
}
public String getGoodsName() {
return goodsName;
}
@ -585,6 +598,7 @@ public class HighChildOrder implements Serializable {
&& (this.getStoreAddress() == null ? other.getStoreAddress() == null : this.getStoreAddress().equals(other.getStoreAddress()))
&& (this.getGoodsType() == null ? other.getGoodsType() == null : this.getGoodsType().equals(other.getGoodsType()))
&& (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))
&& (this.getSecUserId() == null ? other.getSecUserId() == null : this.getSecUserId().equals(other.getSecUserId()))
&& (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName()))
&& (this.getGoodsDesc() == null ? other.getGoodsDesc() == null : this.getGoodsDesc().equals(other.getGoodsDesc()))
&& (this.getGoodsImg() == null ? other.getGoodsImg() == null : this.getGoodsImg().equals(other.getGoodsImg()))
@ -633,6 +647,7 @@ public class HighChildOrder implements Serializable {
result = prime * result + ((getStoreAddress() == null) ? 0 : getStoreAddress().hashCode());
result = prime * result + ((getGoodsType() == null) ? 0 : getGoodsType().hashCode());
result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode());
result = prime * result + ((getSecUserId() == null) ? 0 : getSecUserId().hashCode());
result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode());
result = prime * result + ((getGoodsDesc() == null) ? 0 : getGoodsDesc().hashCode());
result = prime * result + ((getGoodsImg() == null) ? 0 : getGoodsImg().hashCode());
@ -684,6 +699,7 @@ public class HighChildOrder implements Serializable {
sb.append(", storeAddress=").append(storeAddress);
sb.append(", goodsType=").append(goodsType);
sb.append(", goodsId=").append(goodsId);
sb.append(", secUserId=").append(secUserId);
sb.append(", goodsName=").append(goodsName);
sb.append(", goodsDesc=").append(goodsDesc);
sb.append(", goodsImg=").append(goodsImg);

@ -906,6 +906,66 @@ public class HighChildOrderExample {
return (Criteria) this;
}
public Criteria andSecUserIdIsNull() {
addCriterion("sec_user_id is null");
return (Criteria) this;
}
public Criteria andSecUserIdIsNotNull() {
addCriterion("sec_user_id is not null");
return (Criteria) this;
}
public Criteria andSecUserIdEqualTo(Long value) {
addCriterion("sec_user_id =", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdNotEqualTo(Long value) {
addCriterion("sec_user_id <>", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdGreaterThan(Long value) {
addCriterion("sec_user_id >", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("sec_user_id >=", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdLessThan(Long value) {
addCriterion("sec_user_id <", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdLessThanOrEqualTo(Long value) {
addCriterion("sec_user_id <=", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdIn(List<Long> values) {
addCriterion("sec_user_id in", values, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdNotIn(List<Long> values) {
addCriterion("sec_user_id not in", values, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdBetween(Long value1, Long value2) {
addCriterion("sec_user_id between", value1, value2, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdNotBetween(Long value1, Long value2) {
addCriterion("sec_user_id not between", value1, value2, "secUserId");
return (Criteria) this;
}
public Criteria andGoodsNameIsNull() {
addCriterion("goods_name is null");
return (Criteria) this;

Loading…
Cancel
Save