Commit 499d202c by wutong

采购详情新增字段

parent fff62295
......@@ -309,6 +309,35 @@ public class PurchaseDetailDTO {
private String updateTimed;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_purchase_details.alibaba_order_id
*
* @mbg.generated
*/
@JSONField(name = "TaobaoOrderNo")
private String alibabaOrderId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_purchase_details.logistics_order_id
*
* @mbg.generated
*/
@JSONField(name = "ExpressNo")
private String logisticsOrderId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_purchase_details.logistics_company_name
*
* @mbg.generated
*/
@JSONField(name = "ExpressCompany")
private String logisticsCompanyName;
}
......@@ -40,6 +40,9 @@
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
<result column="quantity_not_inbound" jdbcType="INTEGER" property="quantityNotInbound" />
<result column="alibaba_order_id" jdbcType="VARCHAR" property="alibabaOrderId" />
<result column="logistics_order_id" jdbcType="VARCHAR" property="logisticsOrderId" />
<result column="logistics_company_name" jdbcType="VARCHAR" property="logisticsCompanyName" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
......@@ -118,7 +121,8 @@
quantity_return, quantity_inbound, quantity_deliver, quantity_not_deliver, quantity_arrival,
quantity_not_arrival, quantity_inspect, quantity_qualified_inspect, quantity_unqualified_inspect,
quantity_wait_transfer, quantity_exchange, quantity_lose_inbound, create_time, update_time,
gmt_create, gmt_modified, quantity_not_inbound
gmt_create, gmt_modified, quantity_not_inbound, alibaba_order_id, logistics_order_id,
logistics_company_name
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultMap="BaseResultMap">
<!--
......@@ -190,7 +194,8 @@
quantity_qualified_inspect, quantity_unqualified_inspect,
quantity_wait_transfer, quantity_exchange,
quantity_lose_inbound, create_time, update_time,
gmt_create, gmt_modified, quantity_not_inbound
gmt_create, gmt_modified, quantity_not_inbound,
alibaba_order_id, logistics_order_id, logistics_company_name
)
values (#{id,jdbcType=INTEGER}, #{purchaseId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{purchaseCategoryName,jdbcType=VARCHAR}, #{deliverId,jdbcType=INTEGER}, #{deliverName,jdbcType=VARCHAR},
......@@ -203,7 +208,8 @@
#{quantityQualifiedInspect,jdbcType=INTEGER}, #{quantityUnqualifiedInspect,jdbcType=INTEGER},
#{quantityWaitTransfer,jdbcType=INTEGER}, #{quantityExchange,jdbcType=INTEGER},
#{quantityLoseInbound,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityNotInbound,jdbcType=INTEGER}
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityNotInbound,jdbcType=INTEGER},
#{alibabaOrderId,jdbcType=VARCHAR}, #{logisticsOrderId,jdbcType=VARCHAR}, #{logisticsCompanyName,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
......@@ -315,6 +321,15 @@
<if test="quantityNotInbound != null">
quantity_not_inbound,
</if>
<if test="alibabaOrderId != null">
alibaba_order_id,
</if>
<if test="logisticsOrderId != null">
logistics_order_id,
</if>
<if test="logisticsCompanyName != null">
logistics_company_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -419,6 +434,15 @@
<if test="quantityNotInbound != null">
#{quantityNotInbound,jdbcType=INTEGER},
</if>
<if test="alibabaOrderId != null">
#{alibabaOrderId,jdbcType=VARCHAR},
</if>
<if test="logisticsOrderId != null">
#{logisticsOrderId,jdbcType=VARCHAR},
</if>
<if test="logisticsCompanyName != null">
#{logisticsCompanyName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultType="java.lang.Long">
......@@ -540,6 +564,15 @@
<if test="record.quantityNotInbound != null">
quantity_not_inbound = #{record.quantityNotInbound,jdbcType=INTEGER},
</if>
<if test="record.alibabaOrderId != null">
alibaba_order_id = #{record.alibabaOrderId,jdbcType=VARCHAR},
</if>
<if test="record.logisticsOrderId != null">
logistics_order_id = #{record.logisticsOrderId,jdbcType=VARCHAR},
</if>
<if test="record.logisticsCompanyName != null">
logistics_company_name = #{record.logisticsCompanyName,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -584,7 +617,10 @@
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP},
quantity_not_inbound = #{record.quantityNotInbound,jdbcType=INTEGER}
quantity_not_inbound = #{record.quantityNotInbound,jdbcType=INTEGER},
alibaba_order_id = #{record.alibabaOrderId,jdbcType=VARCHAR},
logistics_order_id = #{record.logisticsOrderId,jdbcType=VARCHAR},
logistics_company_name = #{record.logisticsCompanyName,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
......@@ -695,6 +731,15 @@
<if test="quantityNotInbound != null">
quantity_not_inbound = #{quantityNotInbound,jdbcType=INTEGER},
</if>
<if test="alibabaOrderId != null">
alibaba_order_id = #{alibabaOrderId,jdbcType=VARCHAR},
</if>
<if test="logisticsOrderId != null">
logistics_order_id = #{logisticsOrderId,jdbcType=VARCHAR},
</if>
<if test="logisticsCompanyName != null">
logistics_company_name = #{logisticsCompanyName,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -736,7 +781,10 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
quantity_not_inbound = #{quantityNotInbound,jdbcType=INTEGER}
quantity_not_inbound = #{quantityNotInbound,jdbcType=INTEGER},
alibaba_order_id = #{alibabaOrderId,jdbcType=VARCHAR},
logistics_order_id = #{logisticsOrderId,jdbcType=VARCHAR},
logistics_company_name = #{logisticsCompanyName,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
......@@ -849,6 +897,15 @@
<if test="quantityNotInbound != null">
quantity_not_inbound,
</if>
<if test="alibabaOrderId != null">
alibaba_order_id,
</if>
<if test="logisticsOrderId != null">
logistics_order_id,
</if>
<if test="logisticsCompanyName != null">
logistics_company_name,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -954,6 +1011,15 @@
<if test="quantityNotInbound != null">
#{quantityNotInbound,jdbcType=INTEGER},
</if>
<if test="alibabaOrderId != null">
#{alibabaOrderId,jdbcType=VARCHAR},
</if>
<if test="logisticsOrderId != null">
#{logisticsOrderId,jdbcType=VARCHAR},
</if>
<if test="logisticsCompanyName != null">
#{logisticsCompanyName,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
......@@ -1059,6 +1125,15 @@
<if test="quantityNotInbound != null">
quantity_not_inbound = #{quantityNotInbound,jdbcType=INTEGER},
</if>
<if test="alibabaOrderId != null">
alibaba_order_id = #{alibabaOrderId,jdbcType=VARCHAR},
</if>
<if test="logisticsOrderId != null">
logistics_order_id = #{logisticsOrderId,jdbcType=VARCHAR},
</if>
<if test="logisticsCompanyName != null">
logistics_company_name = #{logisticsCompanyName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
......@@ -1074,7 +1149,8 @@
quantity_return, quantity_inbound, quantity_deliver, quantity_not_deliver, quantity_arrival,
quantity_not_arrival, quantity_inspect, quantity_qualified_inspect, quantity_unqualified_inspect,
quantity_wait_transfer, quantity_exchange, quantity_lose_inbound, create_time,
update_time, gmt_create, gmt_modified, quantity_not_inbound)
update_time, gmt_create, gmt_modified, quantity_not_inbound, alibaba_order_id,
logistics_order_id, logistics_company_name)
values
(#{id,jdbcType=INTEGER}, #{purchaseId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{purchaseCategoryName,jdbcType=VARCHAR}, #{deliverId,jdbcType=INTEGER}, #{deliverName,jdbcType=VARCHAR},
......@@ -1087,7 +1163,8 @@
#{quantityQualifiedInspect,jdbcType=INTEGER}, #{quantityUnqualifiedInspect,jdbcType=INTEGER},
#{quantityWaitTransfer,jdbcType=INTEGER}, #{quantityExchange,jdbcType=INTEGER},
#{quantityLoseInbound,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityNotInbound,jdbcType=INTEGER}
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityNotInbound,jdbcType=INTEGER},
#{alibabaOrderId,jdbcType=VARCHAR}, #{logisticsOrderId,jdbcType=VARCHAR}, #{logisticsCompanyName,jdbcType=VARCHAR}
)
on duplicate key update
id = #{id,jdbcType=INTEGER},
......@@ -1123,7 +1200,10 @@
update_time = #{updateTime,jdbcType=TIMESTAMP},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
quantity_not_inbound = #{quantityNotInbound,jdbcType=INTEGER}
quantity_not_inbound = #{quantityNotInbound,jdbcType=INTEGER},
alibaba_order_id = #{alibabaOrderId,jdbcType=VARCHAR},
logistics_order_id = #{logisticsOrderId,jdbcType=VARCHAR},
logistics_company_name = #{logisticsCompanyName,jdbcType=VARCHAR}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultMap="BaseResultMap">
<!--
......
......@@ -314,6 +314,33 @@ public class DcBasePurchaseDetails {
private Integer quantityNotInbound;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_purchase_details.alibaba_order_id
*
* @mbg.generated
*/
private String alibabaOrderId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_purchase_details.logistics_order_id
*
* @mbg.generated
*/
private String logisticsOrderId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_purchase_details.logistics_company_name
*
* @mbg.generated
*/
private String logisticsCompanyName;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_purchase_details
*
......@@ -359,6 +386,9 @@ public class DcBasePurchaseDetails {
sb.append(", gmtCreate=").append(gmtCreate);
sb.append(", gmtModified=").append(gmtModified);
sb.append(", quantityNotInbound=").append(quantityNotInbound);
sb.append(", alibabaOrderId=").append(alibabaOrderId);
sb.append(", logisticsOrderId=").append(logisticsOrderId);
sb.append(", logisticsCompanyName=").append(logisticsCompanyName);
sb.append("]");
return sb.toString();
}
......@@ -414,7 +444,10 @@ public class DcBasePurchaseDetails {
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
&& (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
&& (this.getQuantityNotInbound() == null ? other.getQuantityNotInbound() == null : this.getQuantityNotInbound().equals(other.getQuantityNotInbound()));
&& (this.getQuantityNotInbound() == null ? other.getQuantityNotInbound() == null : this.getQuantityNotInbound().equals(other.getQuantityNotInbound()))
&& (this.getAlibabaOrderId() == null ? other.getAlibabaOrderId() == null : this.getAlibabaOrderId().equals(other.getAlibabaOrderId()))
&& (this.getLogisticsOrderId() == null ? other.getLogisticsOrderId() == null : this.getLogisticsOrderId().equals(other.getLogisticsOrderId()))
&& (this.getLogisticsCompanyName() == null ? other.getLogisticsCompanyName() == null : this.getLogisticsCompanyName().equals(other.getLogisticsCompanyName()));
}
/**
......@@ -461,6 +494,9 @@ public class DcBasePurchaseDetails {
result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
result = prime * result + ((getQuantityNotInbound() == null) ? 0 : getQuantityNotInbound().hashCode());
result = prime * result + ((getAlibabaOrderId() == null) ? 0 : getAlibabaOrderId().hashCode());
result = prime * result + ((getLogisticsOrderId() == null) ? 0 : getLogisticsOrderId().hashCode());
result = prime * result + ((getLogisticsCompanyName() == null) ? 0 : getLogisticsCompanyName().hashCode());
return result;
}
}
\ No newline at end of file
......@@ -2520,6 +2520,216 @@ public class DcBasePurchaseDetailsExample {
addCriterion("quantity_not_inbound not between", value1, value2, "quantityNotInbound");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdIsNull() {
addCriterion("alibaba_order_id is null");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdIsNotNull() {
addCriterion("alibaba_order_id is not null");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdEqualTo(String value) {
addCriterion("alibaba_order_id =", value, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdNotEqualTo(String value) {
addCriterion("alibaba_order_id <>", value, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdGreaterThan(String value) {
addCriterion("alibaba_order_id >", value, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdGreaterThanOrEqualTo(String value) {
addCriterion("alibaba_order_id >=", value, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdLessThan(String value) {
addCriterion("alibaba_order_id <", value, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdLessThanOrEqualTo(String value) {
addCriterion("alibaba_order_id <=", value, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdLike(String value) {
addCriterion("alibaba_order_id like", value, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdNotLike(String value) {
addCriterion("alibaba_order_id not like", value, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdIn(List<String> values) {
addCriterion("alibaba_order_id in", values, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdNotIn(List<String> values) {
addCriterion("alibaba_order_id not in", values, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdBetween(String value1, String value2) {
addCriterion("alibaba_order_id between", value1, value2, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andAlibabaOrderIdNotBetween(String value1, String value2) {
addCriterion("alibaba_order_id not between", value1, value2, "alibabaOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdIsNull() {
addCriterion("logistics_order_id is null");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdIsNotNull() {
addCriterion("logistics_order_id is not null");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdEqualTo(String value) {
addCriterion("logistics_order_id =", value, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdNotEqualTo(String value) {
addCriterion("logistics_order_id <>", value, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdGreaterThan(String value) {
addCriterion("logistics_order_id >", value, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdGreaterThanOrEqualTo(String value) {
addCriterion("logistics_order_id >=", value, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdLessThan(String value) {
addCriterion("logistics_order_id <", value, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdLessThanOrEqualTo(String value) {
addCriterion("logistics_order_id <=", value, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdLike(String value) {
addCriterion("logistics_order_id like", value, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdNotLike(String value) {
addCriterion("logistics_order_id not like", value, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdIn(List<String> values) {
addCriterion("logistics_order_id in", values, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdNotIn(List<String> values) {
addCriterion("logistics_order_id not in", values, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdBetween(String value1, String value2) {
addCriterion("logistics_order_id between", value1, value2, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsOrderIdNotBetween(String value1, String value2) {
addCriterion("logistics_order_id not between", value1, value2, "logisticsOrderId");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameIsNull() {
addCriterion("logistics_company_name is null");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameIsNotNull() {
addCriterion("logistics_company_name is not null");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameEqualTo(String value) {
addCriterion("logistics_company_name =", value, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameNotEqualTo(String value) {
addCriterion("logistics_company_name <>", value, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameGreaterThan(String value) {
addCriterion("logistics_company_name >", value, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameGreaterThanOrEqualTo(String value) {
addCriterion("logistics_company_name >=", value, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameLessThan(String value) {
addCriterion("logistics_company_name <", value, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameLessThanOrEqualTo(String value) {
addCriterion("logistics_company_name <=", value, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameLike(String value) {
addCriterion("logistics_company_name like", value, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameNotLike(String value) {
addCriterion("logistics_company_name not like", value, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameIn(List<String> values) {
addCriterion("logistics_company_name in", values, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameNotIn(List<String> values) {
addCriterion("logistics_company_name not in", values, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameBetween(String value1, String value2) {
addCriterion("logistics_company_name between", value1, value2, "logisticsCompanyName");
return (Criteria) this;
}
public Criteria andLogisticsCompanyNameNotBetween(String value1, String value2) {
addCriterion("logistics_company_name not between", value1, value2, "logisticsCompanyName");
return (Criteria) this;
}
}
/**
......
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