Commit b33b811d by yinyong

采购明细--供应商value值

parent fcbc2c35
...@@ -58,6 +58,9 @@ public class PurchaseDetailDTO { ...@@ -58,6 +58,9 @@ public class PurchaseDetailDTO {
@JSONField(name = "SupplierName") @JSONField(name = "SupplierName")
private String deliverName; private String deliverName;
@JSONField(name = "SupplierValue")
private Integer deliverValue;
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
......
...@@ -64,6 +64,15 @@ public class DcBasePurchaseDetails { ...@@ -64,6 +64,15 @@ public class DcBasePurchaseDetails {
/** /**
* *
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_purchase_details.deliver_value
*
* @mbg.generated
*/
private Integer deliverValue;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_purchase_details.buyer_name * This field corresponds to the database column dc_base_purchase_details.buyer_name
* *
* @mbg.generated * @mbg.generated
...@@ -365,7 +374,7 @@ public class DcBasePurchaseDetails { ...@@ -365,7 +374,7 @@ public class DcBasePurchaseDetails {
* *
* @mbg.generated * @mbg.generated
*/ */
private Boolean isallot; private Integer isallot;
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
...@@ -385,6 +394,7 @@ public class DcBasePurchaseDetails { ...@@ -385,6 +394,7 @@ public class DcBasePurchaseDetails {
sb.append(", purchaseCategoryName=").append(purchaseCategoryName); sb.append(", purchaseCategoryName=").append(purchaseCategoryName);
sb.append(", deliverId=").append(deliverId); sb.append(", deliverId=").append(deliverId);
sb.append(", deliverName=").append(deliverName); sb.append(", deliverName=").append(deliverName);
sb.append(", deliverValue=").append(deliverValue);
sb.append(", buyerName=").append(buyerName); sb.append(", buyerName=").append(buyerName);
sb.append(", warehouseFromCode=").append(warehouseFromCode); sb.append(", warehouseFromCode=").append(warehouseFromCode);
sb.append(", warehouseFromName=").append(warehouseFromName); sb.append(", warehouseFromName=").append(warehouseFromName);
...@@ -447,6 +457,7 @@ public class DcBasePurchaseDetails { ...@@ -447,6 +457,7 @@ public class DcBasePurchaseDetails {
&& (this.getPurchaseCategoryName() == null ? other.getPurchaseCategoryName() == null : this.getPurchaseCategoryName().equals(other.getPurchaseCategoryName())) && (this.getPurchaseCategoryName() == null ? other.getPurchaseCategoryName() == null : this.getPurchaseCategoryName().equals(other.getPurchaseCategoryName()))
&& (this.getDeliverId() == null ? other.getDeliverId() == null : this.getDeliverId().equals(other.getDeliverId())) && (this.getDeliverId() == null ? other.getDeliverId() == null : this.getDeliverId().equals(other.getDeliverId()))
&& (this.getDeliverName() == null ? other.getDeliverName() == null : this.getDeliverName().equals(other.getDeliverName())) && (this.getDeliverName() == null ? other.getDeliverName() == null : this.getDeliverName().equals(other.getDeliverName()))
&& (this.getDeliverValue() == null ? other.getDeliverValue() == null : this.getDeliverValue().equals(other.getDeliverValue()))
&& (this.getBuyerName() == null ? other.getBuyerName() == null : this.getBuyerName().equals(other.getBuyerName())) && (this.getBuyerName() == null ? other.getBuyerName() == null : this.getBuyerName().equals(other.getBuyerName()))
&& (this.getWarehouseFromCode() == null ? other.getWarehouseFromCode() == null : this.getWarehouseFromCode().equals(other.getWarehouseFromCode())) && (this.getWarehouseFromCode() == null ? other.getWarehouseFromCode() == null : this.getWarehouseFromCode().equals(other.getWarehouseFromCode()))
&& (this.getWarehouseFromName() == null ? other.getWarehouseFromName() == null : this.getWarehouseFromName().equals(other.getWarehouseFromName())) && (this.getWarehouseFromName() == null ? other.getWarehouseFromName() == null : this.getWarehouseFromName().equals(other.getWarehouseFromName()))
...@@ -499,6 +510,7 @@ public class DcBasePurchaseDetails { ...@@ -499,6 +510,7 @@ public class DcBasePurchaseDetails {
result = prime * result + ((getPurchaseCategoryName() == null) ? 0 : getPurchaseCategoryName().hashCode()); result = prime * result + ((getPurchaseCategoryName() == null) ? 0 : getPurchaseCategoryName().hashCode());
result = prime * result + ((getDeliverId() == null) ? 0 : getDeliverId().hashCode()); result = prime * result + ((getDeliverId() == null) ? 0 : getDeliverId().hashCode());
result = prime * result + ((getDeliverName() == null) ? 0 : getDeliverName().hashCode()); result = prime * result + ((getDeliverName() == null) ? 0 : getDeliverName().hashCode());
result = prime * result + ((getDeliverValue() == null) ? 0 : getDeliverValue().hashCode());
result = prime * result + ((getBuyerName() == null) ? 0 : getBuyerName().hashCode()); result = prime * result + ((getBuyerName() == null) ? 0 : getBuyerName().hashCode());
result = prime * result + ((getWarehouseFromCode() == null) ? 0 : getWarehouseFromCode().hashCode()); result = prime * result + ((getWarehouseFromCode() == null) ? 0 : getWarehouseFromCode().hashCode());
result = prime * result + ((getWarehouseFromName() == null) ? 0 : getWarehouseFromName().hashCode()); result = prime * result + ((getWarehouseFromName() == null) ? 0 : getWarehouseFromName().hashCode());
......
...@@ -761,6 +761,66 @@ public class DcBasePurchaseDetailsExample { ...@@ -761,6 +761,66 @@ public class DcBasePurchaseDetailsExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDeliverValueIsNull() {
addCriterion("deliver_value is null");
return (Criteria) this;
}
public Criteria andDeliverValueIsNotNull() {
addCriterion("deliver_value is not null");
return (Criteria) this;
}
public Criteria andDeliverValueEqualTo(Integer value) {
addCriterion("deliver_value =", value, "deliverValue");
return (Criteria) this;
}
public Criteria andDeliverValueNotEqualTo(Integer value) {
addCriterion("deliver_value <>", value, "deliverValue");
return (Criteria) this;
}
public Criteria andDeliverValueGreaterThan(Integer value) {
addCriterion("deliver_value >", value, "deliverValue");
return (Criteria) this;
}
public Criteria andDeliverValueGreaterThanOrEqualTo(Integer value) {
addCriterion("deliver_value >=", value, "deliverValue");
return (Criteria) this;
}
public Criteria andDeliverValueLessThan(Integer value) {
addCriterion("deliver_value <", value, "deliverValue");
return (Criteria) this;
}
public Criteria andDeliverValueLessThanOrEqualTo(Integer value) {
addCriterion("deliver_value <=", value, "deliverValue");
return (Criteria) this;
}
public Criteria andDeliverValueIn(List<Integer> values) {
addCriterion("deliver_value in", values, "deliverValue");
return (Criteria) this;
}
public Criteria andDeliverValueNotIn(List<Integer> values) {
addCriterion("deliver_value not in", values, "deliverValue");
return (Criteria) this;
}
public Criteria andDeliverValueBetween(Integer value1, Integer value2) {
addCriterion("deliver_value between", value1, value2, "deliverValue");
return (Criteria) this;
}
public Criteria andDeliverValueNotBetween(Integer value1, Integer value2) {
addCriterion("deliver_value not between", value1, value2, "deliverValue");
return (Criteria) this;
}
public Criteria andBuyerNameIsNull() { public Criteria andBuyerNameIsNull() {
addCriterion("buyer_name is null"); addCriterion("buyer_name is null");
return (Criteria) this; return (Criteria) this;
...@@ -2801,52 +2861,52 @@ public class DcBasePurchaseDetailsExample { ...@@ -2801,52 +2861,52 @@ public class DcBasePurchaseDetailsExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushEqualTo(Boolean value) { public Criteria andIspushEqualTo(Integer value) {
addCriterion("ispush =", value, "ispush"); addCriterion("ispush =", value, "ispush");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushNotEqualTo(Boolean value) { public Criteria andIspushNotEqualTo(Integer value) {
addCriterion("ispush <>", value, "ispush"); addCriterion("ispush <>", value, "ispush");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushGreaterThan(Boolean value) { public Criteria andIspushGreaterThan(Integer value) {
addCriterion("ispush >", value, "ispush"); addCriterion("ispush >", value, "ispush");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushGreaterThanOrEqualTo(Boolean value) { public Criteria andIspushGreaterThanOrEqualTo(Integer value) {
addCriterion("ispush >=", value, "ispush"); addCriterion("ispush >=", value, "ispush");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushLessThan(Boolean value) { public Criteria andIspushLessThan(Integer value) {
addCriterion("ispush <", value, "ispush"); addCriterion("ispush <", value, "ispush");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushLessThanOrEqualTo(Boolean value) { public Criteria andIspushLessThanOrEqualTo(Integer value) {
addCriterion("ispush <=", value, "ispush"); addCriterion("ispush <=", value, "ispush");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushIn(List<Boolean> values) { public Criteria andIspushIn(List<Integer> values) {
addCriterion("ispush in", values, "ispush"); addCriterion("ispush in", values, "ispush");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushNotIn(List<Boolean> values) { public Criteria andIspushNotIn(List<Integer> values) {
addCriterion("ispush not in", values, "ispush"); addCriterion("ispush not in", values, "ispush");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushBetween(Boolean value1, Boolean value2) { public Criteria andIspushBetween(Integer value1, Integer value2) {
addCriterion("ispush between", value1, value2, "ispush"); addCriterion("ispush between", value1, value2, "ispush");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIspushNotBetween(Boolean value1, Boolean value2) { public Criteria andIspushNotBetween(Integer value1, Integer value2) {
addCriterion("ispush not between", value1, value2, "ispush"); addCriterion("ispush not between", value1, value2, "ispush");
return (Criteria) this; return (Criteria) this;
} }
...@@ -2861,52 +2921,52 @@ public class DcBasePurchaseDetailsExample { ...@@ -2861,52 +2921,52 @@ public class DcBasePurchaseDetailsExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotEqualTo(Boolean value) { public Criteria andIsallotEqualTo(Integer value) {
addCriterion("isallot =", value, "isallot"); addCriterion("isallot =", value, "isallot");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotNotEqualTo(Boolean value) { public Criteria andIsallotNotEqualTo(Integer value) {
addCriterion("isallot <>", value, "isallot"); addCriterion("isallot <>", value, "isallot");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotGreaterThan(Boolean value) { public Criteria andIsallotGreaterThan(Integer value) {
addCriterion("isallot >", value, "isallot"); addCriterion("isallot >", value, "isallot");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotGreaterThanOrEqualTo(Boolean value) { public Criteria andIsallotGreaterThanOrEqualTo(Integer value) {
addCriterion("isallot >=", value, "isallot"); addCriterion("isallot >=", value, "isallot");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotLessThan(Boolean value) { public Criteria andIsallotLessThan(Integer value) {
addCriterion("isallot <", value, "isallot"); addCriterion("isallot <", value, "isallot");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotLessThanOrEqualTo(Boolean value) { public Criteria andIsallotLessThanOrEqualTo(Integer value) {
addCriterion("isallot <=", value, "isallot"); addCriterion("isallot <=", value, "isallot");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotIn(List<Boolean> values) { public Criteria andIsallotIn(List<Integer> values) {
addCriterion("isallot in", values, "isallot"); addCriterion("isallot in", values, "isallot");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotNotIn(List<Boolean> values) { public Criteria andIsallotNotIn(List<Integer> values) {
addCriterion("isallot not in", values, "isallot"); addCriterion("isallot not in", values, "isallot");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotBetween(Boolean value1, Boolean value2) { public Criteria andIsallotBetween(Integer value1, Integer value2) {
addCriterion("isallot between", value1, value2, "isallot"); addCriterion("isallot between", value1, value2, "isallot");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsallotNotBetween(Boolean value1, Boolean value2) { public Criteria andIsallotNotBetween(Integer value1, Integer value2) {
addCriterion("isallot not between", value1, value2, "isallot"); addCriterion("isallot not between", value1, value2, "isallot");
return (Criteria) this; return (Criteria) this;
} }
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<result column="purchase_category_name" jdbcType="VARCHAR" property="purchaseCategoryName" /> <result column="purchase_category_name" jdbcType="VARCHAR" property="purchaseCategoryName" />
<result column="deliver_id" jdbcType="INTEGER" property="deliverId" /> <result column="deliver_id" jdbcType="INTEGER" property="deliverId" />
<result column="deliver_name" jdbcType="VARCHAR" property="deliverName" /> <result column="deliver_name" jdbcType="VARCHAR" property="deliverName" />
<result column="deliver_value" jdbcType="INTEGER" property="deliverValue" />
<result column="buyer_name" jdbcType="VARCHAR" property="buyerName" /> <result column="buyer_name" jdbcType="VARCHAR" property="buyerName" />
<result column="warehouse_from_code" jdbcType="VARCHAR" property="warehouseFromCode" /> <result column="warehouse_from_code" jdbcType="VARCHAR" property="warehouseFromCode" />
<result column="warehouse_from_name" jdbcType="VARCHAR" property="warehouseFromName" /> <result column="warehouse_from_name" jdbcType="VARCHAR" property="warehouseFromName" />
...@@ -45,7 +46,7 @@ ...@@ -45,7 +46,7 @@
<result column="logistics_company_name" jdbcType="VARCHAR" property="logisticsCompanyName" /> <result column="logistics_company_name" jdbcType="VARCHAR" property="logisticsCompanyName" />
<result column="company_id" jdbcType="INTEGER" property="companyId" /> <result column="company_id" jdbcType="INTEGER" property="companyId" />
<result column="ispush" jdbcType="INTEGER" property="ispush" /> <result column="ispush" jdbcType="INTEGER" property="ispush" />
<result column="isallot" jdbcType="BIT" property="isallot" /> <result column="isallot" jdbcType="TINYINT" property="isallot" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
...@@ -118,8 +119,8 @@ ...@@ -118,8 +119,8 @@
WARNING - @mbg.generated WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
id, purchase_id, status, purchase_category_name, deliver_id, deliver_name, buyer_name, id, purchase_id, status, purchase_category_name, deliver_id, deliver_name, deliver_value,
warehouse_from_code, warehouse_from_name, warehouse_into_code, warehouse_into_name, buyer_name, warehouse_from_code, warehouse_from_name, warehouse_into_code, warehouse_into_name,
bailun_sku, quantity_purchase, unit_price, amount_paid, currency_code, currency_name, bailun_sku, quantity_purchase, unit_price, amount_paid, currency_code, currency_name,
quantity_return, quantity_inbound, quantity_deliver, quantity_not_deliver, quantity_arrival, quantity_return, quantity_inbound, quantity_deliver, quantity_not_deliver, quantity_arrival,
quantity_not_arrival, quantity_inspect, quantity_qualified_inspect, quantity_unqualified_inspect, quantity_not_arrival, quantity_inspect, quantity_qualified_inspect, quantity_unqualified_inspect,
...@@ -188,33 +189,35 @@ ...@@ -188,33 +189,35 @@
--> -->
insert into dc_base_purchase_details (id, purchase_id, status, insert into dc_base_purchase_details (id, purchase_id, status,
purchase_category_name, deliver_id, deliver_name, purchase_category_name, deliver_id, deliver_name,
buyer_name, warehouse_from_code, warehouse_from_name, deliver_value, buyer_name, warehouse_from_code,
warehouse_into_code, warehouse_into_name, bailun_sku, warehouse_from_name, warehouse_into_code, warehouse_into_name,
quantity_purchase, unit_price, amount_paid, bailun_sku, quantity_purchase, unit_price,
currency_code, currency_name, quantity_return, amount_paid, currency_code, currency_name,
quantity_inbound, quantity_deliver, quantity_not_deliver, quantity_return, quantity_inbound, quantity_deliver,
quantity_arrival, quantity_not_arrival, quantity_inspect, quantity_not_deliver, quantity_arrival, quantity_not_arrival,
quantity_qualified_inspect, quantity_unqualified_inspect, quantity_inspect, quantity_qualified_inspect,
quantity_wait_transfer, quantity_exchange, quantity_unqualified_inspect, quantity_wait_transfer,
quantity_lose_inbound, create_time, update_time, quantity_exchange, quantity_lose_inbound,
gmt_create, gmt_modified, quantity_not_inbound, create_time, update_time, gmt_create,
alibaba_order_id, logistics_order_id, logistics_company_name, gmt_modified, quantity_not_inbound, alibaba_order_id,
logistics_order_id, logistics_company_name,
company_id, ispush, isallot company_id, ispush, isallot
) )
values (#{id,jdbcType=INTEGER}, #{purchaseId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, values (#{id,jdbcType=INTEGER}, #{purchaseId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{purchaseCategoryName,jdbcType=VARCHAR}, #{deliverId,jdbcType=INTEGER}, #{deliverName,jdbcType=VARCHAR}, #{purchaseCategoryName,jdbcType=VARCHAR}, #{deliverId,jdbcType=INTEGER}, #{deliverName,jdbcType=VARCHAR},
#{buyerName,jdbcType=VARCHAR}, #{warehouseFromCode,jdbcType=VARCHAR}, #{warehouseFromName,jdbcType=VARCHAR}, #{deliverValue,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR}, #{warehouseFromCode,jdbcType=VARCHAR},
#{warehouseIntoCode,jdbcType=VARCHAR}, #{warehouseIntoName,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR}, #{warehouseFromName,jdbcType=VARCHAR}, #{warehouseIntoCode,jdbcType=VARCHAR}, #{warehouseIntoName,jdbcType=VARCHAR},
#{quantityPurchase,jdbcType=INTEGER}, #{unitPrice,jdbcType=DECIMAL}, #{amountPaid,jdbcType=DECIMAL}, #{bailunSku,jdbcType=VARCHAR}, #{quantityPurchase,jdbcType=INTEGER}, #{unitPrice,jdbcType=DECIMAL},
#{currencyCode,jdbcType=VARCHAR}, #{currencyName,jdbcType=VARCHAR}, #{quantityReturn,jdbcType=INTEGER}, #{amountPaid,jdbcType=DECIMAL}, #{currencyCode,jdbcType=VARCHAR}, #{currencyName,jdbcType=VARCHAR},
#{quantityInbound,jdbcType=INTEGER}, #{quantityDeliver,jdbcType=INTEGER}, #{quantityNotDeliver,jdbcType=INTEGER}, #{quantityReturn,jdbcType=INTEGER}, #{quantityInbound,jdbcType=INTEGER}, #{quantityDeliver,jdbcType=INTEGER},
#{quantityArrival,jdbcType=INTEGER}, #{quantityNotArrival,jdbcType=INTEGER}, #{quantityInspect,jdbcType=INTEGER}, #{quantityNotDeliver,jdbcType=INTEGER}, #{quantityArrival,jdbcType=INTEGER}, #{quantityNotArrival,jdbcType=INTEGER},
#{quantityQualifiedInspect,jdbcType=INTEGER}, #{quantityUnqualifiedInspect,jdbcType=INTEGER}, #{quantityInspect,jdbcType=INTEGER}, #{quantityQualifiedInspect,jdbcType=INTEGER},
#{quantityWaitTransfer,jdbcType=INTEGER}, #{quantityExchange,jdbcType=INTEGER}, #{quantityUnqualifiedInspect,jdbcType=INTEGER}, #{quantityWaitTransfer,jdbcType=INTEGER},
#{quantityLoseInbound,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{quantityExchange,jdbcType=INTEGER}, #{quantityLoseInbound,jdbcType=INTEGER},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityNotInbound,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP},
#{alibabaOrderId,jdbcType=VARCHAR}, #{logisticsOrderId,jdbcType=VARCHAR}, #{logisticsCompanyName,jdbcType=VARCHAR}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityNotInbound,jdbcType=INTEGER}, #{alibabaOrderId,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER}, #{ispush,jdbcType=INTEGER}, #{isallot,jdbcType=BIT} #{logisticsOrderId,jdbcType=VARCHAR}, #{logisticsCompanyName,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER}, #{ispush,jdbcType=INTEGER}, #{isallot,jdbcType=TINYINT}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails"> <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
...@@ -242,6 +245,9 @@ ...@@ -242,6 +245,9 @@
<if test="deliverName != null"> <if test="deliverName != null">
deliver_name, deliver_name,
</if> </if>
<if test="deliverValue != null">
deliver_value,
</if>
<if test="buyerName != null"> <if test="buyerName != null">
buyer_name, buyer_name,
</if> </if>
...@@ -364,6 +370,9 @@ ...@@ -364,6 +370,9 @@
<if test="deliverName != null"> <if test="deliverName != null">
#{deliverName,jdbcType=VARCHAR}, #{deliverName,jdbcType=VARCHAR},
</if> </if>
<if test="deliverValue != null">
#{deliverValue,jdbcType=INTEGER},
</if>
<if test="buyerName != null"> <if test="buyerName != null">
#{buyerName,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
</if> </if>
...@@ -464,7 +473,7 @@ ...@@ -464,7 +473,7 @@
#{ispush,jdbcType=INTEGER}, #{ispush,jdbcType=INTEGER},
</if> </if>
<if test="isallot != null"> <if test="isallot != null">
#{isallot,jdbcType=BIT}, #{isallot,jdbcType=TINYINT},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -503,6 +512,9 @@ ...@@ -503,6 +512,9 @@
<if test="record.deliverName != null"> <if test="record.deliverName != null">
deliver_name = #{record.deliverName,jdbcType=VARCHAR}, deliver_name = #{record.deliverName,jdbcType=VARCHAR},
</if> </if>
<if test="record.deliverValue != null">
deliver_value = #{record.deliverValue,jdbcType=INTEGER},
</if>
<if test="record.buyerName != null"> <if test="record.buyerName != null">
buyer_name = #{record.buyerName,jdbcType=VARCHAR}, buyer_name = #{record.buyerName,jdbcType=VARCHAR},
</if> </if>
...@@ -603,7 +615,7 @@ ...@@ -603,7 +615,7 @@
ispush = #{record.ispush,jdbcType=INTEGER}, ispush = #{record.ispush,jdbcType=INTEGER},
</if> </if>
<if test="record.isallot != null"> <if test="record.isallot != null">
isallot = #{record.isallot,jdbcType=BIT}, isallot = #{record.isallot,jdbcType=TINYINT},
</if> </if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
...@@ -622,6 +634,7 @@ ...@@ -622,6 +634,7 @@
purchase_category_name = #{record.purchaseCategoryName,jdbcType=VARCHAR}, purchase_category_name = #{record.purchaseCategoryName,jdbcType=VARCHAR},
deliver_id = #{record.deliverId,jdbcType=INTEGER}, deliver_id = #{record.deliverId,jdbcType=INTEGER},
deliver_name = #{record.deliverName,jdbcType=VARCHAR}, deliver_name = #{record.deliverName,jdbcType=VARCHAR},
deliver_value = #{record.deliverValue,jdbcType=INTEGER},
buyer_name = #{record.buyerName,jdbcType=VARCHAR}, buyer_name = #{record.buyerName,jdbcType=VARCHAR},
warehouse_from_code = #{record.warehouseFromCode,jdbcType=VARCHAR}, warehouse_from_code = #{record.warehouseFromCode,jdbcType=VARCHAR},
warehouse_from_name = #{record.warehouseFromName,jdbcType=VARCHAR}, warehouse_from_name = #{record.warehouseFromName,jdbcType=VARCHAR},
...@@ -655,7 +668,7 @@ ...@@ -655,7 +668,7 @@
logistics_company_name = #{record.logisticsCompanyName,jdbcType=VARCHAR}, logistics_company_name = #{record.logisticsCompanyName,jdbcType=VARCHAR},
company_id = #{record.companyId,jdbcType=INTEGER}, company_id = #{record.companyId,jdbcType=INTEGER},
ispush = #{record.ispush,jdbcType=INTEGER}, ispush = #{record.ispush,jdbcType=INTEGER},
isallot = #{record.isallot,jdbcType=BIT} isallot = #{record.isallot,jdbcType=TINYINT}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -682,6 +695,9 @@ ...@@ -682,6 +695,9 @@
<if test="deliverName != null"> <if test="deliverName != null">
deliver_name = #{deliverName,jdbcType=VARCHAR}, deliver_name = #{deliverName,jdbcType=VARCHAR},
</if> </if>
<if test="deliverValue != null">
deliver_value = #{deliverValue,jdbcType=INTEGER},
</if>
<if test="buyerName != null"> <if test="buyerName != null">
buyer_name = #{buyerName,jdbcType=VARCHAR}, buyer_name = #{buyerName,jdbcType=VARCHAR},
</if> </if>
...@@ -782,7 +798,7 @@ ...@@ -782,7 +798,7 @@
ispush = #{ispush,jdbcType=INTEGER}, ispush = #{ispush,jdbcType=INTEGER},
</if> </if>
<if test="isallot != null"> <if test="isallot != null">
isallot = #{isallot,jdbcType=BIT}, isallot = #{isallot,jdbcType=TINYINT},
</if> </if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
...@@ -798,6 +814,7 @@ ...@@ -798,6 +814,7 @@
purchase_category_name = #{purchaseCategoryName,jdbcType=VARCHAR}, purchase_category_name = #{purchaseCategoryName,jdbcType=VARCHAR},
deliver_id = #{deliverId,jdbcType=INTEGER}, deliver_id = #{deliverId,jdbcType=INTEGER},
deliver_name = #{deliverName,jdbcType=VARCHAR}, deliver_name = #{deliverName,jdbcType=VARCHAR},
deliver_value = #{deliverValue,jdbcType=INTEGER},
buyer_name = #{buyerName,jdbcType=VARCHAR}, buyer_name = #{buyerName,jdbcType=VARCHAR},
warehouse_from_code = #{warehouseFromCode,jdbcType=VARCHAR}, warehouse_from_code = #{warehouseFromCode,jdbcType=VARCHAR},
warehouse_from_name = #{warehouseFromName,jdbcType=VARCHAR}, warehouse_from_name = #{warehouseFromName,jdbcType=VARCHAR},
...@@ -831,7 +848,7 @@ ...@@ -831,7 +848,7 @@
logistics_company_name = #{logisticsCompanyName,jdbcType=VARCHAR}, logistics_company_name = #{logisticsCompanyName,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=INTEGER}, company_id = #{companyId,jdbcType=INTEGER},
ispush = #{ispush,jdbcType=INTEGER}, ispush = #{ispush,jdbcType=INTEGER},
isallot = #{isallot,jdbcType=BIT} isallot = #{isallot,jdbcType=TINYINT}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails"> <insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
...@@ -860,6 +877,9 @@ ...@@ -860,6 +877,9 @@
<if test="deliverName != null"> <if test="deliverName != null">
deliver_name, deliver_name,
</if> </if>
<if test="deliverValue != null">
deliver_value,
</if>
<if test="buyerName != null"> <if test="buyerName != null">
buyer_name, buyer_name,
</if> </if>
...@@ -983,6 +1003,9 @@ ...@@ -983,6 +1003,9 @@
<if test="deliverName != null"> <if test="deliverName != null">
#{deliverName,jdbcType=VARCHAR}, #{deliverName,jdbcType=VARCHAR},
</if> </if>
<if test="deliverValue != null">
#{deliverValue,jdbcType=INTEGER},
</if>
<if test="buyerName != null"> <if test="buyerName != null">
#{buyerName,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
</if> </if>
...@@ -1083,7 +1106,7 @@ ...@@ -1083,7 +1106,7 @@
#{ispush,jdbcType=INTEGER}, #{ispush,jdbcType=INTEGER},
</if> </if>
<if test="isallot != null"> <if test="isallot != null">
#{isallot,jdbcType=BIT}, #{isallot,jdbcType=TINYINT},
</if> </if>
</trim> </trim>
on duplicate key update on duplicate key update
...@@ -1106,6 +1129,9 @@ ...@@ -1106,6 +1129,9 @@
<if test="deliverName != null"> <if test="deliverName != null">
deliver_name = #{deliverName,jdbcType=VARCHAR}, deliver_name = #{deliverName,jdbcType=VARCHAR},
</if> </if>
<if test="deliverValue != null">
deliver_value = #{deliverValue,jdbcType=INTEGER},
</if>
<if test="buyerName != null"> <if test="buyerName != null">
buyer_name = #{buyerName,jdbcType=VARCHAR}, buyer_name = #{buyerName,jdbcType=VARCHAR},
</if> </if>
...@@ -1206,7 +1232,7 @@ ...@@ -1206,7 +1232,7 @@
ispush = #{ispush,jdbcType=INTEGER}, ispush = #{ispush,jdbcType=INTEGER},
</if> </if>
<if test="isallot != null"> <if test="isallot != null">
isallot = #{isallot,jdbcType=BIT}, isallot = #{isallot,jdbcType=TINYINT},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -1217,8 +1243,8 @@ ...@@ -1217,8 +1243,8 @@
@project https://github.com/itfsw/mybatis-generator-plugin @project https://github.com/itfsw/mybatis-generator-plugin
--> -->
insert into dc_base_purchase_details insert into dc_base_purchase_details
(id, purchase_id, status, purchase_category_name, deliver_id, deliver_name, buyer_name, (id, purchase_id, status, purchase_category_name, deliver_id, deliver_name, deliver_value,
warehouse_from_code, warehouse_from_name, warehouse_into_code, warehouse_into_name, buyer_name, warehouse_from_code, warehouse_from_name, warehouse_into_code, warehouse_into_name,
bailun_sku, quantity_purchase, unit_price, amount_paid, currency_code, currency_name, bailun_sku, quantity_purchase, unit_price, amount_paid, currency_code, currency_name,
quantity_return, quantity_inbound, quantity_deliver, quantity_not_deliver, quantity_arrival, quantity_return, quantity_inbound, quantity_deliver, quantity_not_deliver, quantity_arrival,
quantity_not_arrival, quantity_inspect, quantity_qualified_inspect, quantity_unqualified_inspect, quantity_not_arrival, quantity_inspect, quantity_qualified_inspect, quantity_unqualified_inspect,
...@@ -1228,18 +1254,19 @@ ...@@ -1228,18 +1254,19 @@
values values
(#{id,jdbcType=INTEGER}, #{purchaseId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, (#{id,jdbcType=INTEGER}, #{purchaseId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{purchaseCategoryName,jdbcType=VARCHAR}, #{deliverId,jdbcType=INTEGER}, #{deliverName,jdbcType=VARCHAR}, #{purchaseCategoryName,jdbcType=VARCHAR}, #{deliverId,jdbcType=INTEGER}, #{deliverName,jdbcType=VARCHAR},
#{buyerName,jdbcType=VARCHAR}, #{warehouseFromCode,jdbcType=VARCHAR}, #{warehouseFromName,jdbcType=VARCHAR}, #{deliverValue,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR}, #{warehouseFromCode,jdbcType=VARCHAR},
#{warehouseIntoCode,jdbcType=VARCHAR}, #{warehouseIntoName,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR}, #{warehouseFromName,jdbcType=VARCHAR}, #{warehouseIntoCode,jdbcType=VARCHAR}, #{warehouseIntoName,jdbcType=VARCHAR},
#{quantityPurchase,jdbcType=INTEGER}, #{unitPrice,jdbcType=DECIMAL}, #{amountPaid,jdbcType=DECIMAL}, #{bailunSku,jdbcType=VARCHAR}, #{quantityPurchase,jdbcType=INTEGER}, #{unitPrice,jdbcType=DECIMAL},
#{currencyCode,jdbcType=VARCHAR}, #{currencyName,jdbcType=VARCHAR}, #{quantityReturn,jdbcType=INTEGER}, #{amountPaid,jdbcType=DECIMAL}, #{currencyCode,jdbcType=VARCHAR}, #{currencyName,jdbcType=VARCHAR},
#{quantityInbound,jdbcType=INTEGER}, #{quantityDeliver,jdbcType=INTEGER}, #{quantityNotDeliver,jdbcType=INTEGER}, #{quantityReturn,jdbcType=INTEGER}, #{quantityInbound,jdbcType=INTEGER}, #{quantityDeliver,jdbcType=INTEGER},
#{quantityArrival,jdbcType=INTEGER}, #{quantityNotArrival,jdbcType=INTEGER}, #{quantityInspect,jdbcType=INTEGER}, #{quantityNotDeliver,jdbcType=INTEGER}, #{quantityArrival,jdbcType=INTEGER}, #{quantityNotArrival,jdbcType=INTEGER},
#{quantityQualifiedInspect,jdbcType=INTEGER}, #{quantityUnqualifiedInspect,jdbcType=INTEGER}, #{quantityInspect,jdbcType=INTEGER}, #{quantityQualifiedInspect,jdbcType=INTEGER},
#{quantityWaitTransfer,jdbcType=INTEGER}, #{quantityExchange,jdbcType=INTEGER}, #{quantityUnqualifiedInspect,jdbcType=INTEGER}, #{quantityWaitTransfer,jdbcType=INTEGER},
#{quantityLoseInbound,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{quantityExchange,jdbcType=INTEGER}, #{quantityLoseInbound,jdbcType=INTEGER},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityNotInbound,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{gmtCreate,jdbcType=TIMESTAMP},
#{alibabaOrderId,jdbcType=VARCHAR}, #{logisticsOrderId,jdbcType=VARCHAR}, #{logisticsCompanyName,jdbcType=VARCHAR}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityNotInbound,jdbcType=INTEGER}, #{alibabaOrderId,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER}, #{ispush,jdbcType=INTEGER}, #{isallot,jdbcType=BIT} #{logisticsOrderId,jdbcType=VARCHAR}, #{logisticsCompanyName,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER}, #{ispush,jdbcType=INTEGER}, #{isallot,jdbcType=TINYINT}
) )
on duplicate key update on duplicate key update
id = #{id,jdbcType=INTEGER}, id = #{id,jdbcType=INTEGER},
...@@ -1248,6 +1275,7 @@ ...@@ -1248,6 +1275,7 @@
purchase_category_name = #{purchaseCategoryName,jdbcType=VARCHAR}, purchase_category_name = #{purchaseCategoryName,jdbcType=VARCHAR},
deliver_id = #{deliverId,jdbcType=INTEGER}, deliver_id = #{deliverId,jdbcType=INTEGER},
deliver_name = #{deliverName,jdbcType=VARCHAR}, deliver_name = #{deliverName,jdbcType=VARCHAR},
deliver_value = #{deliverValue,jdbcType=INTEGER},
buyer_name = #{buyerName,jdbcType=VARCHAR}, buyer_name = #{buyerName,jdbcType=VARCHAR},
warehouse_from_code = #{warehouseFromCode,jdbcType=VARCHAR}, warehouse_from_code = #{warehouseFromCode,jdbcType=VARCHAR},
warehouse_from_name = #{warehouseFromName,jdbcType=VARCHAR}, warehouse_from_name = #{warehouseFromName,jdbcType=VARCHAR},
...@@ -1281,7 +1309,7 @@ ...@@ -1281,7 +1309,7 @@
logistics_company_name = #{logisticsCompanyName,jdbcType=VARCHAR}, logistics_company_name = #{logisticsCompanyName,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=INTEGER}, company_id = #{companyId,jdbcType=INTEGER},
ispush = #{ispush,jdbcType=INTEGER}, ispush = #{ispush,jdbcType=INTEGER},
isallot = #{isallot,jdbcType=BIT} isallot = #{isallot,jdbcType=TINYINT}
</insert> </insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultMap="BaseResultMap"> <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultMap="BaseResultMap">
<!-- <!--
......
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