Commit b8eb0102 authored by shiyu's avatar shiyu

预支付下单新增地址

parent 968c2866
package com.wwdz.ch.db.dao.distribution;
import com.wwdz.ch.db.domain.distribution.DistributorProfit;
public interface DistributorProfitDao {
/**
* 插入新记录
*
* @param distributorProfit
* @return
*/
int insert(DistributorProfit distributorProfit);
/**
* 更新记录
*
* @param distributorProfit
* @return
*/
int update(DistributorProfit distributorProfit);
}
package com.wwdz.ch.db.domain.distribution; package com.wwdz.ch.db.domain.distribution;
import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
import com.xxdxxs.entity.Entity; import com.xxdxxs.entity.Entity;
import lombok.Data; import lombok.Data;
/** /**
* @author shiyu * @author shiyu
* @date 2024/01/30 * @date 2024/01/31
*/ */
@Data @Data
public class DistributionOrder implements Entity { public class DistributionOrder implements Entity {
private Integer id; private Integer id;
/** /**
...@@ -66,14 +67,24 @@ public class DistributionOrder implements Entity { ...@@ -66,14 +67,24 @@ public class DistributionOrder implements Entity {
private Long amount; private Long amount;
/** /**
* 买家收货地址id * 收件人收货地址id
*/ */
private Long addressId; private Long addressId;
/** /**
* 买家收货地址 * 收件人名称
*/
private String receiverName;
/**
* 收件人电话
*/
private String receiverPhone;
/**
* 收件人收货地址
*/ */
private String address; private String receiverAddress;
/** /**
* 快递公司编码 * 快递公司编码
...@@ -140,7 +151,9 @@ public class DistributionOrder implements Entity { ...@@ -140,7 +151,9 @@ public class DistributionOrder implements Entity {
sb.append(", sellerId=").append(sellerId); sb.append(", sellerId=").append(sellerId);
sb.append(", amount=").append(amount); sb.append(", amount=").append(amount);
sb.append(", addressId=").append(addressId); sb.append(", addressId=").append(addressId);
sb.append(", address=").append(address); sb.append(", receiverName=").append(receiverName);
sb.append(", receiverPhone=").append(receiverPhone);
sb.append(", receiverAddress=").append(receiverAddress);
sb.append(", logisticsCode=").append(logisticsCode); sb.append(", logisticsCode=").append(logisticsCode);
sb.append(", waybill=").append(waybill); sb.append(", waybill=").append(waybill);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);
...@@ -179,7 +192,9 @@ public class DistributionOrder implements Entity { ...@@ -179,7 +192,9 @@ public class DistributionOrder implements Entity {
&& (this.getSellerId() == null ? other.getSellerId() == null : this.getSellerId().equals(other.getSellerId())) && (this.getSellerId() == null ? other.getSellerId() == null : this.getSellerId().equals(other.getSellerId()))
&& (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount())) && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
&& (this.getAddressId() == null ? other.getAddressId() == null : this.getAddressId().equals(other.getAddressId())) && (this.getAddressId() == null ? other.getAddressId() == null : this.getAddressId().equals(other.getAddressId()))
&& (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress())) && (this.getReceiverName() == null ? other.getReceiverName() == null : this.getReceiverName().equals(other.getReceiverName()))
&& (this.getReceiverPhone() == null ? other.getReceiverPhone() == null : this.getReceiverPhone().equals(other.getReceiverPhone()))
&& (this.getReceiverAddress() == null ? other.getReceiverAddress() == null : this.getReceiverAddress().equals(other.getReceiverAddress()))
&& (this.getLogisticsCode() == null ? other.getLogisticsCode() == null : this.getLogisticsCode().equals(other.getLogisticsCode())) && (this.getLogisticsCode() == null ? other.getLogisticsCode() == null : this.getLogisticsCode().equals(other.getLogisticsCode()))
&& (this.getWaybill() == null ? other.getWaybill() == null : this.getWaybill().equals(other.getWaybill())) && (this.getWaybill() == null ? other.getWaybill() == null : this.getWaybill().equals(other.getWaybill()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
...@@ -207,7 +222,9 @@ public class DistributionOrder implements Entity { ...@@ -207,7 +222,9 @@ public class DistributionOrder implements Entity {
result = prime * result + ((getSellerId() == null) ? 0 : getSellerId().hashCode()); result = prime * result + ((getSellerId() == null) ? 0 : getSellerId().hashCode());
result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode()); result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
result = prime * result + ((getAddressId() == null) ? 0 : getAddressId().hashCode()); result = prime * result + ((getAddressId() == null) ? 0 : getAddressId().hashCode());
result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode()); result = prime * result + ((getReceiverName() == null) ? 0 : getReceiverName().hashCode());
result = prime * result + ((getReceiverPhone() == null) ? 0 : getReceiverPhone().hashCode());
result = prime * result + ((getReceiverAddress() == null) ? 0 : getReceiverAddress().hashCode());
result = prime * result + ((getLogisticsCode() == null) ? 0 : getLogisticsCode().hashCode()); result = prime * result + ((getLogisticsCode() == null) ? 0 : getLogisticsCode().hashCode());
result = prime * result + ((getWaybill() == null) ? 0 : getWaybill().hashCode()); result = prime * result + ((getWaybill() == null) ? 0 : getWaybill().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
...@@ -240,7 +257,9 @@ public class DistributionOrder implements Entity { ...@@ -240,7 +257,9 @@ public class DistributionOrder implements Entity {
sellerId("seller_id", "sellerId", "BIGINT", false), sellerId("seller_id", "sellerId", "BIGINT", false),
amount("amount", "amount", "BIGINT", false), amount("amount", "amount", "BIGINT", false),
addressId("address_id", "addressId", "BIGINT", false), addressId("address_id", "addressId", "BIGINT", false),
address("address", "address", "VARCHAR", false), receiverName("receiver_name", "receiverName", "VARCHAR", false),
receiverPhone("receiver_phone", "receiverPhone", "VARCHAR", false),
receiverAddress("receiver_address", "receiverAddress", "VARCHAR", false),
logisticsCode("logistics_code", "logisticsCode", "VARCHAR", false), logisticsCode("logistics_code", "logisticsCode", "VARCHAR", false),
waybill("waybill", "waybill", "VARCHAR", false), waybill("waybill", "waybill", "VARCHAR", false),
createTime("create_time", "createTime", "TIMESTAMP", false), createTime("create_time", "createTime", "TIMESTAMP", false),
......
...@@ -1772,18 +1772,18 @@ public class DistributionOrderExample { ...@@ -1772,18 +1772,18 @@ public class DistributionOrderExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressIsNull() { public Criteria andReceiverNameIsNull() {
addCriterion("address is null"); addCriterion("receiver_name is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressIsNotNull() { public Criteria andReceiverNameIsNotNull() {
addCriterion("address is not null"); addCriterion("receiver_name is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressEqualTo(String value) { public Criteria andReceiverNameEqualTo(String value) {
addCriterion("address =", value, "address"); addCriterion("receiver_name =", value, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
...@@ -1794,13 +1794,13 @@ public class DistributionOrderExample { ...@@ -1794,13 +1794,13 @@ public class DistributionOrderExample {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria andAddressEqualToColumn(DistributionOrder.Column column) { public Criteria andReceiverNameEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("address = ").append(column.getEscapedColumnName()).toString()); addCriterion(new StringBuilder("receiver_name = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressNotEqualTo(String value) { public Criteria andReceiverNameNotEqualTo(String value) {
addCriterion("address <>", value, "address"); addCriterion("receiver_name <>", value, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
...@@ -1811,13 +1811,13 @@ public class DistributionOrderExample { ...@@ -1811,13 +1811,13 @@ public class DistributionOrderExample {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria andAddressNotEqualToColumn(DistributionOrder.Column column) { public Criteria andReceiverNameNotEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("address <> ").append(column.getEscapedColumnName()).toString()); addCriterion(new StringBuilder("receiver_name <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressGreaterThan(String value) { public Criteria andReceiverNameGreaterThan(String value) {
addCriterion("address >", value, "address"); addCriterion("receiver_name >", value, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
...@@ -1828,13 +1828,13 @@ public class DistributionOrderExample { ...@@ -1828,13 +1828,13 @@ public class DistributionOrderExample {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria andAddressGreaterThanColumn(DistributionOrder.Column column) { public Criteria andReceiverNameGreaterThanColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("address > ").append(column.getEscapedColumnName()).toString()); addCriterion(new StringBuilder("receiver_name > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressGreaterThanOrEqualTo(String value) { public Criteria andReceiverNameGreaterThanOrEqualTo(String value) {
addCriterion("address >=", value, "address"); addCriterion("receiver_name >=", value, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
...@@ -1845,13 +1845,13 @@ public class DistributionOrderExample { ...@@ -1845,13 +1845,13 @@ public class DistributionOrderExample {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria andAddressGreaterThanOrEqualToColumn(DistributionOrder.Column column) { public Criteria andReceiverNameGreaterThanOrEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("address >= ").append(column.getEscapedColumnName()).toString()); addCriterion(new StringBuilder("receiver_name >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressLessThan(String value) { public Criteria andReceiverNameLessThan(String value) {
addCriterion("address <", value, "address"); addCriterion("receiver_name <", value, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
...@@ -1862,13 +1862,13 @@ public class DistributionOrderExample { ...@@ -1862,13 +1862,13 @@ public class DistributionOrderExample {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria andAddressLessThanColumn(DistributionOrder.Column column) { public Criteria andReceiverNameLessThanColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("address < ").append(column.getEscapedColumnName()).toString()); addCriterion(new StringBuilder("receiver_name < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressLessThanOrEqualTo(String value) { public Criteria andReceiverNameLessThanOrEqualTo(String value) {
addCriterion("address <=", value, "address"); addCriterion("receiver_name <=", value, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
...@@ -1879,38 +1879,322 @@ public class DistributionOrderExample { ...@@ -1879,38 +1879,322 @@ public class DistributionOrderExample {
* @mbg.generated * @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
public Criteria andAddressLessThanOrEqualToColumn(DistributionOrder.Column column) { public Criteria andReceiverNameLessThanOrEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("address <= ").append(column.getEscapedColumnName()).toString()); addCriterion(new StringBuilder("receiver_name <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressLike(String value) { public Criteria andReceiverNameLike(String value) {
addCriterion("address like", value, "address"); addCriterion("receiver_name like", value, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressNotLike(String value) { public Criteria andReceiverNameNotLike(String value) {
addCriterion("address not like", value, "address"); addCriterion("receiver_name not like", value, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressIn(List<String> values) { public Criteria andReceiverNameIn(List<String> values) {
addCriterion("address in", values, "address"); addCriterion("receiver_name in", values, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressNotIn(List<String> values) { public Criteria andReceiverNameNotIn(List<String> values) {
addCriterion("address not in", values, "address"); addCriterion("receiver_name not in", values, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressBetween(String value1, String value2) { public Criteria andReceiverNameBetween(String value1, String value2) {
addCriterion("address between", value1, value2, "address"); addCriterion("receiver_name between", value1, value2, "receiverName");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAddressNotBetween(String value1, String value2) { public Criteria andReceiverNameNotBetween(String value1, String value2) {
addCriterion("address not between", value1, value2, "address"); addCriterion("receiver_name not between", value1, value2, "receiverName");
return (Criteria) this;
}
public Criteria andReceiverPhoneIsNull() {
addCriterion("receiver_phone is null");
return (Criteria) this;
}
public Criteria andReceiverPhoneIsNotNull() {
addCriterion("receiver_phone is not null");
return (Criteria) this;
}
public Criteria andReceiverPhoneEqualTo(String value) {
addCriterion("receiver_phone =", value, "receiverPhone");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverPhoneEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_phone = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverPhoneNotEqualTo(String value) {
addCriterion("receiver_phone <>", value, "receiverPhone");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverPhoneNotEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_phone <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverPhoneGreaterThan(String value) {
addCriterion("receiver_phone >", value, "receiverPhone");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverPhoneGreaterThanColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_phone > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverPhoneGreaterThanOrEqualTo(String value) {
addCriterion("receiver_phone >=", value, "receiverPhone");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverPhoneGreaterThanOrEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_phone >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverPhoneLessThan(String value) {
addCriterion("receiver_phone <", value, "receiverPhone");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverPhoneLessThanColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_phone < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverPhoneLessThanOrEqualTo(String value) {
addCriterion("receiver_phone <=", value, "receiverPhone");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverPhoneLessThanOrEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_phone <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverPhoneLike(String value) {
addCriterion("receiver_phone like", value, "receiverPhone");
return (Criteria) this;
}
public Criteria andReceiverPhoneNotLike(String value) {
addCriterion("receiver_phone not like", value, "receiverPhone");
return (Criteria) this;
}
public Criteria andReceiverPhoneIn(List<String> values) {
addCriterion("receiver_phone in", values, "receiverPhone");
return (Criteria) this;
}
public Criteria andReceiverPhoneNotIn(List<String> values) {
addCriterion("receiver_phone not in", values, "receiverPhone");
return (Criteria) this;
}
public Criteria andReceiverPhoneBetween(String value1, String value2) {
addCriterion("receiver_phone between", value1, value2, "receiverPhone");
return (Criteria) this;
}
public Criteria andReceiverPhoneNotBetween(String value1, String value2) {
addCriterion("receiver_phone not between", value1, value2, "receiverPhone");
return (Criteria) this;
}
public Criteria andReceiverAddressIsNull() {
addCriterion("receiver_address is null");
return (Criteria) this;
}
public Criteria andReceiverAddressIsNotNull() {
addCriterion("receiver_address is not null");
return (Criteria) this;
}
public Criteria andReceiverAddressEqualTo(String value) {
addCriterion("receiver_address =", value, "receiverAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverAddressEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_address = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverAddressNotEqualTo(String value) {
addCriterion("receiver_address <>", value, "receiverAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverAddressNotEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_address <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverAddressGreaterThan(String value) {
addCriterion("receiver_address >", value, "receiverAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverAddressGreaterThanColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_address > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverAddressGreaterThanOrEqualTo(String value) {
addCriterion("receiver_address >=", value, "receiverAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverAddressGreaterThanOrEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_address >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverAddressLessThan(String value) {
addCriterion("receiver_address <", value, "receiverAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverAddressLessThanColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_address < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverAddressLessThanOrEqualTo(String value) {
addCriterion("receiver_address <=", value, "receiverAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distribution_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReceiverAddressLessThanOrEqualToColumn(DistributionOrder.Column column) {
addCriterion(new StringBuilder("receiver_address <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReceiverAddressLike(String value) {
addCriterion("receiver_address like", value, "receiverAddress");
return (Criteria) this;
}
public Criteria andReceiverAddressNotLike(String value) {
addCriterion("receiver_address not like", value, "receiverAddress");
return (Criteria) this;
}
public Criteria andReceiverAddressIn(List<String> values) {
addCriterion("receiver_address in", values, "receiverAddress");
return (Criteria) this;
}
public Criteria andReceiverAddressNotIn(List<String> values) {
addCriterion("receiver_address not in", values, "receiverAddress");
return (Criteria) this;
}
public Criteria andReceiverAddressBetween(String value1, String value2) {
addCriterion("receiver_address between", value1, value2, "receiverAddress");
return (Criteria) this;
}
public Criteria andReceiverAddressNotBetween(String value1, String value2) {
addCriterion("receiver_address not between", value1, value2, "receiverAddress");
return (Criteria) this; return (Criteria) this;
} }
......
package com.wwdz.ch.db.domain.distribution;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import com.xxdxxs.entity.Entity;
import lombok.Data;
/**
* @author shiyu
* @date 2024/01/31
*/
@Data
public class DistributorProfit implements Entity {
private Long id;
/**
* 分销单号
*/
private String distributionOrderId;
/**
* 分销商id
*/
private Long distributorId;
/**
* 商品id
*/
private Long itemId;
/**
* 商品数量
*/
private Integer itemNum;
/**
* 订单金额
*/
private Long amount;
/**
* 商品成本,供货价
*/
private Long itemCost;
/**
* 通道费
*/
private Long channelCost;
/**
* 利润
*/
private Long profit;
/**
* 创建时间
*/
private Date createTime;
/**
* 是否有效
*/
private Boolean isValid;
private static final long serialVersionUID = 1L;
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", distributionOrderId=").append(distributionOrderId);
sb.append(", distributorId=").append(distributorId);
sb.append(", itemId=").append(itemId);
sb.append(", itemNum=").append(itemNum);
sb.append(", amount=").append(amount);
sb.append(", itemCost=").append(itemCost);
sb.append(", channelCost=").append(channelCost);
sb.append(", profit=").append(profit);
sb.append(", createTime=").append(createTime);
sb.append(", isValid=").append(isValid);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
DistributorProfit other = (DistributorProfit) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getDistributionOrderId() == null ? other.getDistributionOrderId() == null : this.getDistributionOrderId().equals(other.getDistributionOrderId()))
&& (this.getDistributorId() == null ? other.getDistributorId() == null : this.getDistributorId().equals(other.getDistributorId()))
&& (this.getItemId() == null ? other.getItemId() == null : this.getItemId().equals(other.getItemId()))
&& (this.getItemNum() == null ? other.getItemNum() == null : this.getItemNum().equals(other.getItemNum()))
&& (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
&& (this.getItemCost() == null ? other.getItemCost() == null : this.getItemCost().equals(other.getItemCost()))
&& (this.getChannelCost() == null ? other.getChannelCost() == null : this.getChannelCost().equals(other.getChannelCost()))
&& (this.getProfit() == null ? other.getProfit() == null : this.getProfit().equals(other.getProfit()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getIsValid() == null ? other.getIsValid() == null : this.getIsValid().equals(other.getIsValid()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getDistributionOrderId() == null) ? 0 : getDistributionOrderId().hashCode());
result = prime * result + ((getDistributorId() == null) ? 0 : getDistributorId().hashCode());
result = prime * result + ((getItemId() == null) ? 0 : getItemId().hashCode());
result = prime * result + ((getItemNum() == null) ? 0 : getItemNum().hashCode());
result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
result = prime * result + ((getItemCost() == null) ? 0 : getItemCost().hashCode());
result = prime * result + ((getChannelCost() == null) ? 0 : getChannelCost().hashCode());
result = prime * result + ((getProfit() == null) ? 0 : getProfit().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getIsValid() == null) ? 0 : getIsValid().hashCode());
return result;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id", "id", "BIGINT", false),
distributionOrderId("distribution_order_id", "distributionOrderId", "VARCHAR", false),
distributorId("distributor_id", "distributorId", "BIGINT", false),
itemId("item_id", "itemId", "BIGINT", false),
itemNum("item_num", "itemNum", "INTEGER", false),
amount("amount", "amount", "BIGINT", false),
itemCost("item_cost", "itemCost", "BIGINT", false),
channelCost("channel_cost", "channelCost", "BIGINT", false),
profit("profit", "profit", "BIGINT", false),
createTime("create_time", "createTime", "TIMESTAMP", false),
isValid("is_valid", "isValid", "BIT", false);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private static final String BEGINNING_DELIMITER = "`";
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private static final String ENDING_DELIMITER = "`";
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final boolean isColumnNameDelimited;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String value() {
return this.column;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getValue() {
return this.column;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
this.isColumnNameDelimited = isColumnNameDelimited;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String desc() {
return this.getEscapedColumnName() + " DESC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String asc() {
return this.getEscapedColumnName() + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getEscapedColumnName() {
if (this.isColumnNameDelimited) {
return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
} else {
return this.column;
}
}
}
}
\ No newline at end of file
package com.wwdz.ch.db.domain.distribution;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class DistributorProfitExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DistributorProfitExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public DistributorProfitExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public DistributorProfitExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Criteria newAndCreateCriteria() {
DistributorProfitExample example = new DistributorProfitExample();
return example.createCriteria();
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andDistributionOrderIdIsNull() {
addCriterion("distribution_order_id is null");
return (Criteria) this;
}
public Criteria andDistributionOrderIdIsNotNull() {
addCriterion("distribution_order_id is not null");
return (Criteria) this;
}
public Criteria andDistributionOrderIdEqualTo(String value) {
addCriterion("distribution_order_id =", value, "distributionOrderId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributionOrderIdEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distribution_order_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributionOrderIdNotEqualTo(String value) {
addCriterion("distribution_order_id <>", value, "distributionOrderId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributionOrderIdNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distribution_order_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributionOrderIdGreaterThan(String value) {
addCriterion("distribution_order_id >", value, "distributionOrderId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributionOrderIdGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distribution_order_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributionOrderIdGreaterThanOrEqualTo(String value) {
addCriterion("distribution_order_id >=", value, "distributionOrderId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributionOrderIdGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distribution_order_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributionOrderIdLessThan(String value) {
addCriterion("distribution_order_id <", value, "distributionOrderId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributionOrderIdLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distribution_order_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributionOrderIdLessThanOrEqualTo(String value) {
addCriterion("distribution_order_id <=", value, "distributionOrderId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributionOrderIdLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distribution_order_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributionOrderIdLike(String value) {
addCriterion("distribution_order_id like", value, "distributionOrderId");
return (Criteria) this;
}
public Criteria andDistributionOrderIdNotLike(String value) {
addCriterion("distribution_order_id not like", value, "distributionOrderId");
return (Criteria) this;
}
public Criteria andDistributionOrderIdIn(List<String> values) {
addCriterion("distribution_order_id in", values, "distributionOrderId");
return (Criteria) this;
}
public Criteria andDistributionOrderIdNotIn(List<String> values) {
addCriterion("distribution_order_id not in", values, "distributionOrderId");
return (Criteria) this;
}
public Criteria andDistributionOrderIdBetween(String value1, String value2) {
addCriterion("distribution_order_id between", value1, value2, "distributionOrderId");
return (Criteria) this;
}
public Criteria andDistributionOrderIdNotBetween(String value1, String value2) {
addCriterion("distribution_order_id not between", value1, value2, "distributionOrderId");
return (Criteria) this;
}
public Criteria andDistributorIdIsNull() {
addCriterion("distributor_id is null");
return (Criteria) this;
}
public Criteria andDistributorIdIsNotNull() {
addCriterion("distributor_id is not null");
return (Criteria) this;
}
public Criteria andDistributorIdEqualTo(Long value) {
addCriterion("distributor_id =", value, "distributorId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributorIdEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distributor_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributorIdNotEqualTo(Long value) {
addCriterion("distributor_id <>", value, "distributorId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributorIdNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distributor_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributorIdGreaterThan(Long value) {
addCriterion("distributor_id >", value, "distributorId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributorIdGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distributor_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributorIdGreaterThanOrEqualTo(Long value) {
addCriterion("distributor_id >=", value, "distributorId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributorIdGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distributor_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributorIdLessThan(Long value) {
addCriterion("distributor_id <", value, "distributorId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributorIdLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distributor_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributorIdLessThanOrEqualTo(Long value) {
addCriterion("distributor_id <=", value, "distributorId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDistributorIdLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("distributor_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDistributorIdIn(List<Long> values) {
addCriterion("distributor_id in", values, "distributorId");
return (Criteria) this;
}
public Criteria andDistributorIdNotIn(List<Long> values) {
addCriterion("distributor_id not in", values, "distributorId");
return (Criteria) this;
}
public Criteria andDistributorIdBetween(Long value1, Long value2) {
addCriterion("distributor_id between", value1, value2, "distributorId");
return (Criteria) this;
}
public Criteria andDistributorIdNotBetween(Long value1, Long value2) {
addCriterion("distributor_id not between", value1, value2, "distributorId");
return (Criteria) this;
}
public Criteria andItemIdIsNull() {
addCriterion("item_id is null");
return (Criteria) this;
}
public Criteria andItemIdIsNotNull() {
addCriterion("item_id is not null");
return (Criteria) this;
}
public Criteria andItemIdEqualTo(Long value) {
addCriterion("item_id =", value, "itemId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemIdEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemIdNotEqualTo(Long value) {
addCriterion("item_id <>", value, "itemId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemIdNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemIdGreaterThan(Long value) {
addCriterion("item_id >", value, "itemId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemIdGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemIdGreaterThanOrEqualTo(Long value) {
addCriterion("item_id >=", value, "itemId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemIdGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemIdLessThan(Long value) {
addCriterion("item_id <", value, "itemId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemIdLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemIdLessThanOrEqualTo(Long value) {
addCriterion("item_id <=", value, "itemId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemIdLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemIdIn(List<Long> values) {
addCriterion("item_id in", values, "itemId");
return (Criteria) this;
}
public Criteria andItemIdNotIn(List<Long> values) {
addCriterion("item_id not in", values, "itemId");
return (Criteria) this;
}
public Criteria andItemIdBetween(Long value1, Long value2) {
addCriterion("item_id between", value1, value2, "itemId");
return (Criteria) this;
}
public Criteria andItemIdNotBetween(Long value1, Long value2) {
addCriterion("item_id not between", value1, value2, "itemId");
return (Criteria) this;
}
public Criteria andItemNumIsNull() {
addCriterion("item_num is null");
return (Criteria) this;
}
public Criteria andItemNumIsNotNull() {
addCriterion("item_num is not null");
return (Criteria) this;
}
public Criteria andItemNumEqualTo(Integer value) {
addCriterion("item_num =", value, "itemNum");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemNumEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_num = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemNumNotEqualTo(Integer value) {
addCriterion("item_num <>", value, "itemNum");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemNumNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_num <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemNumGreaterThan(Integer value) {
addCriterion("item_num >", value, "itemNum");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemNumGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_num > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemNumGreaterThanOrEqualTo(Integer value) {
addCriterion("item_num >=", value, "itemNum");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemNumGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_num >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemNumLessThan(Integer value) {
addCriterion("item_num <", value, "itemNum");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemNumLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_num < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemNumLessThanOrEqualTo(Integer value) {
addCriterion("item_num <=", value, "itemNum");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemNumLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_num <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemNumIn(List<Integer> values) {
addCriterion("item_num in", values, "itemNum");
return (Criteria) this;
}
public Criteria andItemNumNotIn(List<Integer> values) {
addCriterion("item_num not in", values, "itemNum");
return (Criteria) this;
}
public Criteria andItemNumBetween(Integer value1, Integer value2) {
addCriterion("item_num between", value1, value2, "itemNum");
return (Criteria) this;
}
public Criteria andItemNumNotBetween(Integer value1, Integer value2) {
addCriterion("item_num not between", value1, value2, "itemNum");
return (Criteria) this;
}
public Criteria andAmountIsNull() {
addCriterion("amount is null");
return (Criteria) this;
}
public Criteria andAmountIsNotNull() {
addCriterion("amount is not null");
return (Criteria) this;
}
public Criteria andAmountEqualTo(Long value) {
addCriterion("amount =", value, "amount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAmountEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("amount = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAmountNotEqualTo(Long value) {
addCriterion("amount <>", value, "amount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAmountNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("amount <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAmountGreaterThan(Long value) {
addCriterion("amount >", value, "amount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAmountGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("amount > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAmountGreaterThanOrEqualTo(Long value) {
addCriterion("amount >=", value, "amount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAmountGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("amount >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAmountLessThan(Long value) {
addCriterion("amount <", value, "amount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAmountLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("amount < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAmountLessThanOrEqualTo(Long value) {
addCriterion("amount <=", value, "amount");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAmountLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("amount <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAmountIn(List<Long> values) {
addCriterion("amount in", values, "amount");
return (Criteria) this;
}
public Criteria andAmountNotIn(List<Long> values) {
addCriterion("amount not in", values, "amount");
return (Criteria) this;
}
public Criteria andAmountBetween(Long value1, Long value2) {
addCriterion("amount between", value1, value2, "amount");
return (Criteria) this;
}
public Criteria andAmountNotBetween(Long value1, Long value2) {
addCriterion("amount not between", value1, value2, "amount");
return (Criteria) this;
}
public Criteria andItemCostIsNull() {
addCriterion("item_cost is null");
return (Criteria) this;
}
public Criteria andItemCostIsNotNull() {
addCriterion("item_cost is not null");
return (Criteria) this;
}
public Criteria andItemCostEqualTo(Long value) {
addCriterion("item_cost =", value, "itemCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemCostEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_cost = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemCostNotEqualTo(Long value) {
addCriterion("item_cost <>", value, "itemCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemCostNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_cost <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemCostGreaterThan(Long value) {
addCriterion("item_cost >", value, "itemCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemCostGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_cost > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemCostGreaterThanOrEqualTo(Long value) {
addCriterion("item_cost >=", value, "itemCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemCostGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_cost >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemCostLessThan(Long value) {
addCriterion("item_cost <", value, "itemCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemCostLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_cost < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemCostLessThanOrEqualTo(Long value) {
addCriterion("item_cost <=", value, "itemCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andItemCostLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("item_cost <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andItemCostIn(List<Long> values) {
addCriterion("item_cost in", values, "itemCost");
return (Criteria) this;
}
public Criteria andItemCostNotIn(List<Long> values) {
addCriterion("item_cost not in", values, "itemCost");
return (Criteria) this;
}
public Criteria andItemCostBetween(Long value1, Long value2) {
addCriterion("item_cost between", value1, value2, "itemCost");
return (Criteria) this;
}
public Criteria andItemCostNotBetween(Long value1, Long value2) {
addCriterion("item_cost not between", value1, value2, "itemCost");
return (Criteria) this;
}
public Criteria andChannelCostIsNull() {
addCriterion("channel_cost is null");
return (Criteria) this;
}
public Criteria andChannelCostIsNotNull() {
addCriterion("channel_cost is not null");
return (Criteria) this;
}
public Criteria andChannelCostEqualTo(Long value) {
addCriterion("channel_cost =", value, "channelCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andChannelCostEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("channel_cost = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andChannelCostNotEqualTo(Long value) {
addCriterion("channel_cost <>", value, "channelCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andChannelCostNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("channel_cost <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andChannelCostGreaterThan(Long value) {
addCriterion("channel_cost >", value, "channelCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andChannelCostGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("channel_cost > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andChannelCostGreaterThanOrEqualTo(Long value) {
addCriterion("channel_cost >=", value, "channelCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andChannelCostGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("channel_cost >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andChannelCostLessThan(Long value) {
addCriterion("channel_cost <", value, "channelCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andChannelCostLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("channel_cost < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andChannelCostLessThanOrEqualTo(Long value) {
addCriterion("channel_cost <=", value, "channelCost");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andChannelCostLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("channel_cost <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andChannelCostIn(List<Long> values) {
addCriterion("channel_cost in", values, "channelCost");
return (Criteria) this;
}
public Criteria andChannelCostNotIn(List<Long> values) {
addCriterion("channel_cost not in", values, "channelCost");
return (Criteria) this;
}
public Criteria andChannelCostBetween(Long value1, Long value2) {
addCriterion("channel_cost between", value1, value2, "channelCost");
return (Criteria) this;
}
public Criteria andChannelCostNotBetween(Long value1, Long value2) {
addCriterion("channel_cost not between", value1, value2, "channelCost");
return (Criteria) this;
}
public Criteria andProfitIsNull() {
addCriterion("profit is null");
return (Criteria) this;
}
public Criteria andProfitIsNotNull() {
addCriterion("profit is not null");
return (Criteria) this;
}
public Criteria andProfitEqualTo(Long value) {
addCriterion("profit =", value, "profit");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andProfitEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("profit = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andProfitNotEqualTo(Long value) {
addCriterion("profit <>", value, "profit");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andProfitNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("profit <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andProfitGreaterThan(Long value) {
addCriterion("profit >", value, "profit");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andProfitGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("profit > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andProfitGreaterThanOrEqualTo(Long value) {
addCriterion("profit >=", value, "profit");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andProfitGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("profit >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andProfitLessThan(Long value) {
addCriterion("profit <", value, "profit");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andProfitLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("profit < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andProfitLessThanOrEqualTo(Long value) {
addCriterion("profit <=", value, "profit");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andProfitLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("profit <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andProfitIn(List<Long> values) {
addCriterion("profit in", values, "profit");
return (Criteria) this;
}
public Criteria andProfitNotIn(List<Long> values) {
addCriterion("profit not in", values, "profit");
return (Criteria) this;
}
public Criteria andProfitBetween(Long value1, Long value2) {
addCriterion("profit between", value1, value2, "profit");
return (Criteria) this;
}
public Criteria andProfitNotBetween(Long value1, Long value2) {
addCriterion("profit not between", value1, value2, "profit");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("create_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("create_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("create_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("create_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("create_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreateTimeLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("create_time <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andIsValidIsNull() {
addCriterion("is_valid is null");
return (Criteria) this;
}
public Criteria andIsValidIsNotNull() {
addCriterion("is_valid is not null");
return (Criteria) this;
}
public Criteria andIsValidEqualTo(Boolean value) {
addCriterion("is_valid =", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("is_valid = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidNotEqualTo(Boolean value) {
addCriterion("is_valid <>", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidNotEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("is_valid <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidGreaterThan(Boolean value) {
addCriterion("is_valid >", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidGreaterThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("is_valid > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidGreaterThanOrEqualTo(Boolean value) {
addCriterion("is_valid >=", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidGreaterThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("is_valid >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidLessThan(Boolean value) {
addCriterion("is_valid <", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidLessThanColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("is_valid < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidLessThanOrEqualTo(Boolean value) {
addCriterion("is_valid <=", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidLessThanOrEqualToColumn(DistributorProfit.Column column) {
addCriterion(new StringBuilder("is_valid <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidIn(List<Boolean> values) {
addCriterion("is_valid in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotIn(List<Boolean> values) {
addCriterion("is_valid not in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidBetween(Boolean value1, Boolean value2) {
addCriterion("is_valid between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotBetween(Boolean value1, Boolean value2) {
addCriterion("is_valid not between", value1, value2, "isValid");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private DistributorProfitExample example;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria(DistributorProfitExample example) {
super();
this.example = example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public DistributorProfitExample example() {
return this.example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
if (ifAdd) {
add.add(this);
}
return this;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public interface ICriteriaAdd {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria add(Criteria add);
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
...@@ -60,14 +60,24 @@ public class DistributionOrderRequestDto extends BaseRequestDto implements Entit ...@@ -60,14 +60,24 @@ public class DistributionOrderRequestDto extends BaseRequestDto implements Entit
private Long sellerId; private Long sellerId;
/** /**
* 买家收货地址 * 收件人收货地址
*/ */
private Long addressId; private Long addressId;
/** /**
* 买家收货地址 * 收件人名称
*/ */
private String address; private String receiverName;
/**
* 收件人电话
*/
private String receiverPhone;
/**
* 收件人收货地址
*/
private String receiverAddress;
/** /**
* 快递公司编码 * 快递公司编码
......
package com.wwdz.ch.db.impl.distribution;
import com.wwdz.ch.db.dao.distribution.DistributorProfitDao;
import com.wwdz.ch.db.domain.distribution.DistributorProfit;
import com.wwdz.ch.db.mapper.distribution.DistributorProfitMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository
public class DistributorProfitDaoImpl implements DistributorProfitDao {
@Autowired
DistributorProfitMapper distributorProfitMapper;
@Override
public int insert(DistributorProfit distributorProfit) {
return 0;
}
@Override
public int update(DistributorProfit distributorProfit) {
return 0;
}
}
package com.wwdz.ch.db.mapper.distribution;
import com.wwdz.ch.db.domain.distribution.DistributorProfit;
import com.wwdz.ch.db.domain.distribution.DistributorProfitExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface DistributorProfitMapper {
long countByExample(DistributorProfitExample example);
int deleteByExample(DistributorProfitExample example);
int deleteByPrimaryKey(Long id);
int insert(DistributorProfit record);
int insertSelective(DistributorProfit record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DistributorProfit selectOneByExample(DistributorProfitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DistributorProfit selectOneByExampleSelective(@Param("example") DistributorProfitExample example, @Param("selective") DistributorProfit.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<DistributorProfit> selectByExampleSelective(@Param("example") DistributorProfitExample example, @Param("selective") DistributorProfit.Column ... selective);
List<DistributorProfit> selectByExample(DistributorProfitExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table distributor_profit
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DistributorProfit selectByPrimaryKeySelective(@Param("id") Long id, @Param("selective") DistributorProfit.Column ... selective);
DistributorProfit selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") DistributorProfit record, @Param("example") DistributorProfitExample example);
int updateByExample(@Param("record") DistributorProfit record, @Param("example") DistributorProfitExample example);
int updateByPrimaryKeySelective(DistributorProfit record);
int updateByPrimaryKey(DistributorProfit record);
}
\ No newline at end of file
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
<result column="seller_id" jdbcType="BIGINT" property="sellerId" /> <result column="seller_id" jdbcType="BIGINT" property="sellerId" />
<result column="amount" jdbcType="BIGINT" property="amount" /> <result column="amount" jdbcType="BIGINT" property="amount" />
<result column="address_id" jdbcType="BIGINT" property="addressId" /> <result column="address_id" jdbcType="BIGINT" property="addressId" />
<result column="address" jdbcType="VARCHAR" property="address" /> <result column="receiver_name" jdbcType="VARCHAR" property="receiverName" />
<result column="receiver_phone" jdbcType="VARCHAR" property="receiverPhone" />
<result column="receiver_address" jdbcType="VARCHAR" property="receiverAddress" />
<result column="logistics_code" jdbcType="VARCHAR" property="logisticsCode" /> <result column="logistics_code" jdbcType="VARCHAR" property="logisticsCode" />
<result column="waybill" jdbcType="VARCHAR" property="waybill" /> <result column="waybill" jdbcType="VARCHAR" property="waybill" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
...@@ -85,9 +87,9 @@ ...@@ -85,9 +87,9 @@
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id, id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
buyer_openid, shop_id, seller_id, amount, address_id, address, logistics_code, waybill, buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
create_time, pay_time, delivery_time, finish_time, update_time, share_record_id, receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
`state` finish_time, update_time, share_record_id, `state`
</sql> </sql>
<select id="selectByExample" parameterType="com.wwdz.ch.db.domain.distribution.DistributionOrderExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.wwdz.ch.db.domain.distribution.DistributionOrderExample" resultMap="BaseResultMap">
select select
...@@ -123,9 +125,9 @@ ...@@ -123,9 +125,9 @@
</when> </when>
<otherwise> <otherwise>
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id, id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
buyer_openid, shop_id, seller_id, amount, address_id, address, logistics_code, buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
waybill, create_time, pay_time, delivery_time, finish_time, update_time, share_record_id, receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
`state` finish_time, update_time, share_record_id, `state`
</otherwise> </otherwise>
</choose> </choose>
from distribution_order from distribution_order
...@@ -157,9 +159,9 @@ ...@@ -157,9 +159,9 @@
</when> </when>
<otherwise> <otherwise>
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id, id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
buyer_openid, shop_id, seller_id, amount, address_id, address, logistics_code, buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
waybill, create_time, pay_time, delivery_time, finish_time, update_time, share_record_id, receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
`state` finish_time, update_time, share_record_id, `state`
</otherwise> </otherwise>
</choose> </choose>
from distribution_order from distribution_order
...@@ -182,19 +184,19 @@ ...@@ -182,19 +184,19 @@
insert into distribution_order (distribution_order_id, prepay_id, transaction_id, insert into distribution_order (distribution_order_id, prepay_id, transaction_id,
item_id, item_num, buyer_id, item_id, item_num, buyer_id,
buyer_openid, shop_id, seller_id, buyer_openid, shop_id, seller_id,
amount, address_id, address, amount, address_id, receiver_name,
logistics_code, waybill, create_time, receiver_phone, receiver_address, logistics_code,
pay_time, delivery_time, finish_time, waybill, create_time, pay_time,
update_time, share_record_id, `state` delivery_time, finish_time, update_time,
) share_record_id, `state`)
values (#{distributionOrderId,jdbcType=VARCHAR}, #{prepayId,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR}, values (#{distributionOrderId,jdbcType=VARCHAR}, #{prepayId,jdbcType=VARCHAR}, #{transactionId,jdbcType=VARCHAR},
#{itemId,jdbcType=BIGINT}, #{itemNum,jdbcType=INTEGER}, #{buyerId,jdbcType=BIGINT}, #{itemId,jdbcType=BIGINT}, #{itemNum,jdbcType=INTEGER}, #{buyerId,jdbcType=BIGINT},
#{buyerOpenid,jdbcType=VARCHAR}, #{shopId,jdbcType=BIGINT}, #{sellerId,jdbcType=BIGINT}, #{buyerOpenid,jdbcType=VARCHAR}, #{shopId,jdbcType=BIGINT}, #{sellerId,jdbcType=BIGINT},
#{amount,jdbcType=BIGINT}, #{addressId,jdbcType=BIGINT}, #{address,jdbcType=VARCHAR}, #{amount,jdbcType=BIGINT}, #{addressId,jdbcType=BIGINT}, #{receiverName,jdbcType=VARCHAR},
#{logisticsCode,jdbcType=VARCHAR}, #{waybill,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{receiverPhone,jdbcType=VARCHAR}, #{receiverAddress,jdbcType=VARCHAR}, #{logisticsCode,jdbcType=VARCHAR},
#{payTime,jdbcType=TIMESTAMP}, #{deliveryTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, #{waybill,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{shareRecordId,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER} #{deliveryTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
) #{shareRecordId,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.distribution.DistributionOrder"> <insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.distribution.DistributionOrder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
...@@ -235,8 +237,14 @@ ...@@ -235,8 +237,14 @@
<if test="addressId != null"> <if test="addressId != null">
address_id, address_id,
</if> </if>
<if test="address != null"> <if test="receiverName != null">
address, receiver_name,
</if>
<if test="receiverPhone != null">
receiver_phone,
</if>
<if test="receiverAddress != null">
receiver_address,
</if> </if>
<if test="logisticsCode != null"> <if test="logisticsCode != null">
logistics_code, logistics_code,
...@@ -300,8 +308,14 @@ ...@@ -300,8 +308,14 @@
<if test="addressId != null"> <if test="addressId != null">
#{addressId,jdbcType=BIGINT}, #{addressId,jdbcType=BIGINT},
</if> </if>
<if test="address != null"> <if test="receiverName != null">
#{address,jdbcType=VARCHAR}, #{receiverName,jdbcType=VARCHAR},
</if>
<if test="receiverPhone != null">
#{receiverPhone,jdbcType=VARCHAR},
</if>
<if test="receiverAddress != null">
#{receiverAddress,jdbcType=VARCHAR},
</if> </if>
<if test="logisticsCode != null"> <if test="logisticsCode != null">
#{logisticsCode,jdbcType=VARCHAR}, #{logisticsCode,jdbcType=VARCHAR},
...@@ -377,8 +391,14 @@ ...@@ -377,8 +391,14 @@
<if test="record.addressId != null"> <if test="record.addressId != null">
address_id = #{record.addressId,jdbcType=BIGINT}, address_id = #{record.addressId,jdbcType=BIGINT},
</if> </if>
<if test="record.address != null"> <if test="record.receiverName != null">
address = #{record.address,jdbcType=VARCHAR}, receiver_name = #{record.receiverName,jdbcType=VARCHAR},
</if>
<if test="record.receiverPhone != null">
receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR},
</if>
<if test="record.receiverAddress != null">
receiver_address = #{record.receiverAddress,jdbcType=VARCHAR},
</if> </if>
<if test="record.logisticsCode != null"> <if test="record.logisticsCode != null">
logistics_code = #{record.logisticsCode,jdbcType=VARCHAR}, logistics_code = #{record.logisticsCode,jdbcType=VARCHAR},
...@@ -426,7 +446,9 @@ ...@@ -426,7 +446,9 @@
seller_id = #{record.sellerId,jdbcType=BIGINT}, seller_id = #{record.sellerId,jdbcType=BIGINT},
amount = #{record.amount,jdbcType=BIGINT}, amount = #{record.amount,jdbcType=BIGINT},
address_id = #{record.addressId,jdbcType=BIGINT}, address_id = #{record.addressId,jdbcType=BIGINT},
address = #{record.address,jdbcType=VARCHAR}, receiver_name = #{record.receiverName,jdbcType=VARCHAR},
receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR},
receiver_address = #{record.receiverAddress,jdbcType=VARCHAR},
logistics_code = #{record.logisticsCode,jdbcType=VARCHAR}, logistics_code = #{record.logisticsCode,jdbcType=VARCHAR},
waybill = #{record.waybill,jdbcType=VARCHAR}, waybill = #{record.waybill,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
...@@ -476,8 +498,14 @@ ...@@ -476,8 +498,14 @@
<if test="addressId != null"> <if test="addressId != null">
address_id = #{addressId,jdbcType=BIGINT}, address_id = #{addressId,jdbcType=BIGINT},
</if> </if>
<if test="address != null"> <if test="receiverName != null">
address = #{address,jdbcType=VARCHAR}, receiver_name = #{receiverName,jdbcType=VARCHAR},
</if>
<if test="receiverPhone != null">
receiver_phone = #{receiverPhone,jdbcType=VARCHAR},
</if>
<if test="receiverAddress != null">
receiver_address = #{receiverAddress,jdbcType=VARCHAR},
</if> </if>
<if test="logisticsCode != null"> <if test="logisticsCode != null">
logistics_code = #{logisticsCode,jdbcType=VARCHAR}, logistics_code = #{logisticsCode,jdbcType=VARCHAR},
...@@ -522,7 +550,9 @@ ...@@ -522,7 +550,9 @@
seller_id = #{sellerId,jdbcType=BIGINT}, seller_id = #{sellerId,jdbcType=BIGINT},
amount = #{amount,jdbcType=BIGINT}, amount = #{amount,jdbcType=BIGINT},
address_id = #{addressId,jdbcType=BIGINT}, address_id = #{addressId,jdbcType=BIGINT},
address = #{address,jdbcType=VARCHAR}, receiver_name = #{receiverName,jdbcType=VARCHAR},
receiver_phone = #{receiverPhone,jdbcType=VARCHAR},
receiver_address = #{receiverAddress,jdbcType=VARCHAR},
logistics_code = #{logisticsCode,jdbcType=VARCHAR}, logistics_code = #{logisticsCode,jdbcType=VARCHAR},
waybill = #{waybill,jdbcType=VARCHAR}, waybill = #{waybill,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
...@@ -568,9 +598,9 @@ ...@@ -568,9 +598,9 @@
</when> </when>
<otherwise> <otherwise>
id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id, id, distribution_order_id, prepay_id, transaction_id, item_id, item_num, buyer_id,
buyer_openid, shop_id, seller_id, amount, address_id, address, logistics_code, buyer_openid, shop_id, seller_id, amount, address_id, receiver_name, receiver_phone,
waybill, create_time, pay_time, delivery_time, finish_time, update_time, share_record_id, receiver_address, logistics_code, waybill, create_time, pay_time, delivery_time,
`state` finish_time, update_time, share_record_id, `state`
</otherwise> </otherwise>
</choose> </choose>
from distribution_order from distribution_order
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.wwdz.ch.db.mapper.distribution.DistributorProfitMapper">
<resultMap id="BaseResultMap" type="com.wwdz.ch.db.domain.distribution.DistributorProfit">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="distribution_order_id" jdbcType="VARCHAR" property="distributionOrderId" />
<result column="distributor_id" jdbcType="BIGINT" property="distributorId" />
<result column="item_id" jdbcType="BIGINT" property="itemId" />
<result column="item_num" jdbcType="INTEGER" property="itemNum" />
<result column="amount" jdbcType="BIGINT" property="amount" />
<result column="item_cost" jdbcType="BIGINT" property="itemCost" />
<result column="channel_cost" jdbcType="BIGINT" property="channelCost" />
<result column="profit" jdbcType="BIGINT" property="profit" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="is_valid" jdbcType="BIT" property="isValid" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, distribution_order_id, distributor_id, item_id, item_num, amount, item_cost,
channel_cost, profit, create_time, is_valid
</sql>
<select id="selectByExample" parameterType="com.wwdz.ch.db.domain.distribution.DistributorProfitExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
'true' as QUERYID,
<include refid="Base_Column_List" />
from distributor_profit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if test="example.distinct">
distinct
</if>
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, distribution_order_id, distributor_id, item_id, item_num, amount, item_cost,
channel_cost, profit, create_time, is_valid
</otherwise>
</choose>
from distributor_profit
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
<if test="example.orderByClause != null">
order by ${example.orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from distributor_profit
where id = #{id,jdbcType=BIGINT}
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, distribution_order_id, distributor_id, item_id, item_num, amount, item_cost,
channel_cost, profit, create_time, is_valid
</otherwise>
</choose>
from distributor_profit
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from distributor_profit
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.wwdz.ch.db.domain.distribution.DistributorProfitExample">
delete from distributor_profit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.wwdz.ch.db.domain.distribution.DistributorProfit">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into distributor_profit (distribution_order_id, distributor_id,
item_id, item_num, amount,
item_cost, channel_cost, profit,
create_time, is_valid)
values (#{distributionOrderId,jdbcType=VARCHAR}, #{distributorId,jdbcType=BIGINT},
#{itemId,jdbcType=BIGINT}, #{itemNum,jdbcType=INTEGER}, #{amount,jdbcType=BIGINT},
#{itemCost,jdbcType=BIGINT}, #{channelCost,jdbcType=BIGINT}, #{profit,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP}, #{isValid,jdbcType=BIT})
</insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.distribution.DistributorProfit">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into distributor_profit
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="distributionOrderId != null">
distribution_order_id,
</if>
<if test="distributorId != null">
distributor_id,
</if>
<if test="itemId != null">
item_id,
</if>
<if test="itemNum != null">
item_num,
</if>
<if test="amount != null">
amount,
</if>
<if test="itemCost != null">
item_cost,
</if>
<if test="channelCost != null">
channel_cost,
</if>
<if test="profit != null">
profit,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="isValid != null">
is_valid,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="distributionOrderId != null">
#{distributionOrderId,jdbcType=VARCHAR},
</if>
<if test="distributorId != null">
#{distributorId,jdbcType=BIGINT},
</if>
<if test="itemId != null">
#{itemId,jdbcType=BIGINT},
</if>
<if test="itemNum != null">
#{itemNum,jdbcType=INTEGER},
</if>
<if test="amount != null">
#{amount,jdbcType=BIGINT},
</if>
<if test="itemCost != null">
#{itemCost,jdbcType=BIGINT},
</if>
<if test="channelCost != null">
#{channelCost,jdbcType=BIGINT},
</if>
<if test="profit != null">
#{profit,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="isValid != null">
#{isValid,jdbcType=BIT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.wwdz.ch.db.domain.distribution.DistributorProfitExample" resultType="java.lang.Long">
select count(*) from distributor_profit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update distributor_profit
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.distributionOrderId != null">
distribution_order_id = #{record.distributionOrderId,jdbcType=VARCHAR},
</if>
<if test="record.distributorId != null">
distributor_id = #{record.distributorId,jdbcType=BIGINT},
</if>
<if test="record.itemId != null">
item_id = #{record.itemId,jdbcType=BIGINT},
</if>
<if test="record.itemNum != null">
item_num = #{record.itemNum,jdbcType=INTEGER},
</if>
<if test="record.amount != null">
amount = #{record.amount,jdbcType=BIGINT},
</if>
<if test="record.itemCost != null">
item_cost = #{record.itemCost,jdbcType=BIGINT},
</if>
<if test="record.channelCost != null">
channel_cost = #{record.channelCost,jdbcType=BIGINT},
</if>
<if test="record.profit != null">
profit = #{record.profit,jdbcType=BIGINT},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.isValid != null">
is_valid = #{record.isValid,jdbcType=BIT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update distributor_profit
set id = #{record.id,jdbcType=BIGINT},
distribution_order_id = #{record.distributionOrderId,jdbcType=VARCHAR},
distributor_id = #{record.distributorId,jdbcType=BIGINT},
item_id = #{record.itemId,jdbcType=BIGINT},
item_num = #{record.itemNum,jdbcType=INTEGER},
amount = #{record.amount,jdbcType=BIGINT},
item_cost = #{record.itemCost,jdbcType=BIGINT},
channel_cost = #{record.channelCost,jdbcType=BIGINT},
profit = #{record.profit,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
is_valid = #{record.isValid,jdbcType=BIT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.wwdz.ch.db.domain.distribution.DistributorProfit">
update distributor_profit
<set>
<if test="distributionOrderId != null">
distribution_order_id = #{distributionOrderId,jdbcType=VARCHAR},
</if>
<if test="distributorId != null">
distributor_id = #{distributorId,jdbcType=BIGINT},
</if>
<if test="itemId != null">
item_id = #{itemId,jdbcType=BIGINT},
</if>
<if test="itemNum != null">
item_num = #{itemNum,jdbcType=INTEGER},
</if>
<if test="amount != null">
amount = #{amount,jdbcType=BIGINT},
</if>
<if test="itemCost != null">
item_cost = #{itemCost,jdbcType=BIGINT},
</if>
<if test="channelCost != null">
channel_cost = #{channelCost,jdbcType=BIGINT},
</if>
<if test="profit != null">
profit = #{profit,jdbcType=BIGINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="isValid != null">
is_valid = #{isValid,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.wwdz.ch.db.domain.distribution.DistributorProfit">
update distributor_profit
set distribution_order_id = #{distributionOrderId,jdbcType=VARCHAR},
distributor_id = #{distributorId,jdbcType=BIGINT},
item_id = #{itemId,jdbcType=BIGINT},
item_num = #{itemNum,jdbcType=INTEGER},
amount = #{amount,jdbcType=BIGINT},
item_cost = #{itemCost,jdbcType=BIGINT},
channel_cost = #{channelCost,jdbcType=BIGINT},
profit = #{profit,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
is_valid = #{isValid,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.distribution.DistributorProfitExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include refid="Base_Column_List" />
from distributor_profit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
limit 1
</select>
<select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, distribution_order_id, distributor_id, item_id, item_num, amount, item_cost,
channel_cost, profit, create_time, is_valid
</otherwise>
</choose>
from distributor_profit
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
<if test="example.orderByClause != null">
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
...@@ -39,7 +39,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer { ...@@ -39,7 +39,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
// 放行路径 // 放行路径
.excludePathPatterns("/*.html", "/**/*.html", "/**/*.css", "/**/*.js" .excludePathPatterns("/*.html", "/**/*.html", "/**/*.css", "/**/*.js"
, "/wx/user/loginByWx", "/wx/user/finishLogin", "/wx/user/loginByMobile", "/wx/user/loginRegCaptcha", "/wx/user/updateRegCaptcha", "/wx/user/login", "/wx/user/fillCode", , "/wx/user/loginByWx", "/wx/user/finishLogin", "/wx/user/loginByMobile", "/wx/user/loginRegCaptcha", "/wx/user/updateRegCaptcha", "/wx/user/login", "/wx/user/fillCode",
"/officialAccountCallback/**", "/officialAccountCallback/**","/wxPayCallback/**",
"/imCallback/**", "/wx/category/**", "/imCallback/**", "/wx/category/**",
"/wx/consignSale/**", "/wx/item/**", "/wx/consignSale/**", "/wx/item/**",
"/wx/returnOrder/**", "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**" "/wx/returnOrder/**", "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**"
......
...@@ -86,7 +86,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService { ...@@ -86,7 +86,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
distributionOrder.setSellerId(distributorShareRecord.getDistributorId()); distributionOrder.setSellerId(distributorShareRecord.getDistributorId());
distributionOrder.setAmount(distributorShareRecord.getPrice() * dto.getItemNum()); distributionOrder.setAmount(distributorShareRecord.getPrice() * dto.getItemNum());
distributionOrder.setAddressId(dto.getAddressId()); distributionOrder.setAddressId(dto.getAddressId());
distributionOrder.setAddress(dto.getAddress()); distributionOrder.setReceiverAddress(dto.getReceiverAddress());
distributionOrder.setReceiverName(dto.getReceiverName());
distributionOrder.setReceiverPhone(dto.getReceiverPhone());
distributionOrder.setCreateTime(new Date()); distributionOrder.setCreateTime(new Date());
distributionOrder.setUpdateTime(new Date()); distributionOrder.setUpdateTime(new Date());
distributionOrder.setState(DistributionEnum.DistributionOrderStateEnum.PRE_PAY.getCode()); distributionOrder.setState(DistributionEnum.DistributionOrderStateEnum.PRE_PAY.getCode());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment