Commit 251b9d30 by huluobin

# 更新

parent 63e42dc7
......@@ -405,15 +405,6 @@ public class DcAutoTurnover {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.transfer_sail_days
*
* @mbg.generated
*/
private Integer transferSailDays;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.supplementary_sales
*
* @mbg.generated
......@@ -801,6 +792,15 @@ public class DcAutoTurnover {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.transfer_sail_days
*
* @mbg.generated
*/
private Integer transferSailDays;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.transfer_order_days
*
* @mbg.generated
......@@ -808,6 +808,51 @@ public class DcAutoTurnover {
private Integer transferOrderDays;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.is_mother_sku
*
* @mbg.generated
*/
private Integer isMotherSku;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.bailun_sku_warehouse_code
*
* @mbg.generated
*/
private String bailunSkuWarehouseCode;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.history_sevenday_sales_walmart
*
* @mbg.generated
*/
private BigDecimal historySevendaySalesWalmart;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.history_fourteenday_sales_walmart
*
* @mbg.generated
*/
private BigDecimal historyFourteendaySalesWalmart;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.history_thirtyday_sales_walmart
*
* @mbg.generated
*/
private BigDecimal historyThirtydaySalesWalmart;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_auto_turnover
*
......@@ -863,7 +908,6 @@ public class DcAutoTurnover {
sb.append(", transferBaleDeliverySource=").append(transferBaleDeliverySource);
sb.append(", abroadInboundDelivery=").append(abroadInboundDelivery);
sb.append(", abroadInboundDeliverySource=").append(abroadInboundDeliverySource);
sb.append(", transferSailDays=").append(transferSailDays);
sb.append(", supplementarySales=").append(supplementarySales);
sb.append(", turnoverSales=").append(turnoverSales);
sb.append(", turnoverInbound=").append(turnoverInbound);
......@@ -907,7 +951,13 @@ public class DcAutoTurnover {
sb.append(", ordersAvg=").append(ordersAvg);
sb.append(", advUid=").append(advUid);
sb.append(", purchaseCreateOrderDays=").append(purchaseCreateOrderDays);
sb.append(", transferSailDays=").append(transferSailDays);
sb.append(", transferOrderDays=").append(transferOrderDays);
sb.append(", isMotherSku=").append(isMotherSku);
sb.append(", bailunSkuWarehouseCode=").append(bailunSkuWarehouseCode);
sb.append(", historySevendaySalesWalmart=").append(historySevendaySalesWalmart);
sb.append(", historyFourteendaySalesWalmart=").append(historyFourteendaySalesWalmart);
sb.append(", historyThirtydaySalesWalmart=").append(historyThirtydaySalesWalmart);
sb.append("]");
return sb.toString();
}
......@@ -974,7 +1024,6 @@ public class DcAutoTurnover {
&& (this.getTransferBaleDeliverySource() == null ? other.getTransferBaleDeliverySource() == null : this.getTransferBaleDeliverySource().equals(other.getTransferBaleDeliverySource()))
&& (this.getAbroadInboundDelivery() == null ? other.getAbroadInboundDelivery() == null : this.getAbroadInboundDelivery().equals(other.getAbroadInboundDelivery()))
&& (this.getAbroadInboundDeliverySource() == null ? other.getAbroadInboundDeliverySource() == null : this.getAbroadInboundDeliverySource().equals(other.getAbroadInboundDeliverySource()))
&& (this.getTransferSailDays() == null ? other.getTransferSailDays() == null : this.getTransferSailDays().equals(other.getTransferSailDays()))
&& (this.getSupplementarySales() == null ? other.getSupplementarySales() == null : this.getSupplementarySales().equals(other.getSupplementarySales()))
&& (this.getTurnoverSales() == null ? other.getTurnoverSales() == null : this.getTurnoverSales().equals(other.getTurnoverSales()))
&& (this.getTurnoverInbound() == null ? other.getTurnoverInbound() == null : this.getTurnoverInbound().equals(other.getTurnoverInbound()))
......@@ -1018,7 +1067,13 @@ public class DcAutoTurnover {
&& (this.getOrdersAvg() == null ? other.getOrdersAvg() == null : this.getOrdersAvg().equals(other.getOrdersAvg()))
&& (this.getAdvUid() == null ? other.getAdvUid() == null : this.getAdvUid().equals(other.getAdvUid()))
&& (this.getPurchaseCreateOrderDays() == null ? other.getPurchaseCreateOrderDays() == null : this.getPurchaseCreateOrderDays().equals(other.getPurchaseCreateOrderDays()))
&& (this.getTransferOrderDays() == null ? other.getTransferOrderDays() == null : this.getTransferOrderDays().equals(other.getTransferOrderDays()));
&& (this.getTransferSailDays() == null ? other.getTransferSailDays() == null : this.getTransferSailDays().equals(other.getTransferSailDays()))
&& (this.getTransferOrderDays() == null ? other.getTransferOrderDays() == null : this.getTransferOrderDays().equals(other.getTransferOrderDays()))
&& (this.getIsMotherSku() == null ? other.getIsMotherSku() == null : this.getIsMotherSku().equals(other.getIsMotherSku()))
&& (this.getBailunSkuWarehouseCode() == null ? other.getBailunSkuWarehouseCode() == null : this.getBailunSkuWarehouseCode().equals(other.getBailunSkuWarehouseCode()))
&& (this.getHistorySevendaySalesWalmart() == null ? other.getHistorySevendaySalesWalmart() == null : this.getHistorySevendaySalesWalmart().equals(other.getHistorySevendaySalesWalmart()))
&& (this.getHistoryFourteendaySalesWalmart() == null ? other.getHistoryFourteendaySalesWalmart() == null : this.getHistoryFourteendaySalesWalmart().equals(other.getHistoryFourteendaySalesWalmart()))
&& (this.getHistoryThirtydaySalesWalmart() == null ? other.getHistoryThirtydaySalesWalmart() == null : this.getHistoryThirtydaySalesWalmart().equals(other.getHistoryThirtydaySalesWalmart()));
}
/**
......@@ -1075,7 +1130,6 @@ public class DcAutoTurnover {
result = prime * result + ((getTransferBaleDeliverySource() == null) ? 0 : getTransferBaleDeliverySource().hashCode());
result = prime * result + ((getAbroadInboundDelivery() == null) ? 0 : getAbroadInboundDelivery().hashCode());
result = prime * result + ((getAbroadInboundDeliverySource() == null) ? 0 : getAbroadInboundDeliverySource().hashCode());
result = prime * result + ((getTransferSailDays() == null) ? 0 : getTransferSailDays().hashCode());
result = prime * result + ((getSupplementarySales() == null) ? 0 : getSupplementarySales().hashCode());
result = prime * result + ((getTurnoverSales() == null) ? 0 : getTurnoverSales().hashCode());
result = prime * result + ((getTurnoverInbound() == null) ? 0 : getTurnoverInbound().hashCode());
......@@ -1119,7 +1173,13 @@ public class DcAutoTurnover {
result = prime * result + ((getOrdersAvg() == null) ? 0 : getOrdersAvg().hashCode());
result = prime * result + ((getAdvUid() == null) ? 0 : getAdvUid().hashCode());
result = prime * result + ((getPurchaseCreateOrderDays() == null) ? 0 : getPurchaseCreateOrderDays().hashCode());
result = prime * result + ((getTransferSailDays() == null) ? 0 : getTransferSailDays().hashCode());
result = prime * result + ((getTransferOrderDays() == null) ? 0 : getTransferOrderDays().hashCode());
result = prime * result + ((getIsMotherSku() == null) ? 0 : getIsMotherSku().hashCode());
result = prime * result + ((getBailunSkuWarehouseCode() == null) ? 0 : getBailunSkuWarehouseCode().hashCode());
result = prime * result + ((getHistorySevendaySalesWalmart() == null) ? 0 : getHistorySevendaySalesWalmart().hashCode());
result = prime * result + ((getHistoryFourteendaySalesWalmart() == null) ? 0 : getHistoryFourteendaySalesWalmart().hashCode());
result = prime * result + ((getHistoryThirtydaySalesWalmart() == null) ? 0 : getHistoryThirtydaySalesWalmart().hashCode());
return result;
}
}
\ No newline at end of file
......@@ -116,7 +116,6 @@ public class DcAutoTurnoverWithBLOBs extends DcAutoTurnover {
&& (this.getTransferBaleDeliverySource() == null ? other.getTransferBaleDeliverySource() == null : this.getTransferBaleDeliverySource().equals(other.getTransferBaleDeliverySource()))
&& (this.getAbroadInboundDelivery() == null ? other.getAbroadInboundDelivery() == null : this.getAbroadInboundDelivery().equals(other.getAbroadInboundDelivery()))
&& (this.getAbroadInboundDeliverySource() == null ? other.getAbroadInboundDeliverySource() == null : this.getAbroadInboundDeliverySource().equals(other.getAbroadInboundDeliverySource()))
&& (this.getTransferSailDays() == null ? other.getTransferSailDays() == null : this.getTransferSailDays().equals(other.getTransferSailDays()))
&& (this.getSupplementarySales() == null ? other.getSupplementarySales() == null : this.getSupplementarySales().equals(other.getSupplementarySales()))
&& (this.getTurnoverSales() == null ? other.getTurnoverSales() == null : this.getTurnoverSales().equals(other.getTurnoverSales()))
&& (this.getTurnoverInbound() == null ? other.getTurnoverInbound() == null : this.getTurnoverInbound().equals(other.getTurnoverInbound()))
......@@ -160,7 +159,13 @@ public class DcAutoTurnoverWithBLOBs extends DcAutoTurnover {
&& (this.getOrdersAvg() == null ? other.getOrdersAvg() == null : this.getOrdersAvg().equals(other.getOrdersAvg()))
&& (this.getAdvUid() == null ? other.getAdvUid() == null : this.getAdvUid().equals(other.getAdvUid()))
&& (this.getPurchaseCreateOrderDays() == null ? other.getPurchaseCreateOrderDays() == null : this.getPurchaseCreateOrderDays().equals(other.getPurchaseCreateOrderDays()))
&& (this.getTransferSailDays() == null ? other.getTransferSailDays() == null : this.getTransferSailDays().equals(other.getTransferSailDays()))
&& (this.getTransferOrderDays() == null ? other.getTransferOrderDays() == null : this.getTransferOrderDays().equals(other.getTransferOrderDays()))
&& (this.getIsMotherSku() == null ? other.getIsMotherSku() == null : this.getIsMotherSku().equals(other.getIsMotherSku()))
&& (this.getBailunSkuWarehouseCode() == null ? other.getBailunSkuWarehouseCode() == null : this.getBailunSkuWarehouseCode().equals(other.getBailunSkuWarehouseCode()))
&& (this.getHistorySevendaySalesWalmart() == null ? other.getHistorySevendaySalesWalmart() == null : this.getHistorySevendaySalesWalmart().equals(other.getHistorySevendaySalesWalmart()))
&& (this.getHistoryFourteendaySalesWalmart() == null ? other.getHistoryFourteendaySalesWalmart() == null : this.getHistoryFourteendaySalesWalmart().equals(other.getHistoryFourteendaySalesWalmart()))
&& (this.getHistoryThirtydaySalesWalmart() == null ? other.getHistoryThirtydaySalesWalmart() == null : this.getHistoryThirtydaySalesWalmart().equals(other.getHistoryThirtydaySalesWalmart()))
&& (this.getSalesDetails() == null ? other.getSalesDetails() == null : this.getSalesDetails().equals(other.getSalesDetails()))
&& (this.getShortSupplyDetails() == null ? other.getShortSupplyDetails() == null : this.getShortSupplyDetails().equals(other.getShortSupplyDetails()))
&& (this.getSalesDetailsFormula() == null ? other.getSalesDetailsFormula() == null : this.getSalesDetailsFormula().equals(other.getSalesDetailsFormula()));
......@@ -220,7 +225,6 @@ public class DcAutoTurnoverWithBLOBs extends DcAutoTurnover {
result = prime * result + ((getTransferBaleDeliverySource() == null) ? 0 : getTransferBaleDeliverySource().hashCode());
result = prime * result + ((getAbroadInboundDelivery() == null) ? 0 : getAbroadInboundDelivery().hashCode());
result = prime * result + ((getAbroadInboundDeliverySource() == null) ? 0 : getAbroadInboundDeliverySource().hashCode());
result = prime * result + ((getTransferSailDays() == null) ? 0 : getTransferSailDays().hashCode());
result = prime * result + ((getSupplementarySales() == null) ? 0 : getSupplementarySales().hashCode());
result = prime * result + ((getTurnoverSales() == null) ? 0 : getTurnoverSales().hashCode());
result = prime * result + ((getTurnoverInbound() == null) ? 0 : getTurnoverInbound().hashCode());
......@@ -264,7 +268,13 @@ public class DcAutoTurnoverWithBLOBs extends DcAutoTurnover {
result = prime * result + ((getOrdersAvg() == null) ? 0 : getOrdersAvg().hashCode());
result = prime * result + ((getAdvUid() == null) ? 0 : getAdvUid().hashCode());
result = prime * result + ((getPurchaseCreateOrderDays() == null) ? 0 : getPurchaseCreateOrderDays().hashCode());
result = prime * result + ((getTransferSailDays() == null) ? 0 : getTransferSailDays().hashCode());
result = prime * result + ((getTransferOrderDays() == null) ? 0 : getTransferOrderDays().hashCode());
result = prime * result + ((getIsMotherSku() == null) ? 0 : getIsMotherSku().hashCode());
result = prime * result + ((getBailunSkuWarehouseCode() == null) ? 0 : getBailunSkuWarehouseCode().hashCode());
result = prime * result + ((getHistorySevendaySalesWalmart() == null) ? 0 : getHistorySevendaySalesWalmart().hashCode());
result = prime * result + ((getHistoryFourteendaySalesWalmart() == null) ? 0 : getHistoryFourteendaySalesWalmart().hashCode());
result = prime * result + ((getHistoryThirtydaySalesWalmart() == null) ? 0 : getHistoryThirtydaySalesWalmart().hashCode());
result = prime * result + ((getSalesDetails() == null) ? 0 : getSalesDetails().hashCode());
result = prime * result + ((getShortSupplyDetails() == null) ? 0 : getShortSupplyDetails().hashCode());
result = prime * result + ((getSalesDetailsFormula() == null) ? 0 : getSalesDetailsFormula().hashCode());
......
......@@ -3141,66 +3141,6 @@ public class DcAutoTurnoverExample {
return (Criteria) this;
}
public Criteria andTransferSailDaysIsNull() {
addCriterion("transfer_sail_days is null");
return (Criteria) this;
}
public Criteria andTransferSailDaysIsNotNull() {
addCriterion("transfer_sail_days is not null");
return (Criteria) this;
}
public Criteria andTransferSailDaysEqualTo(Integer value) {
addCriterion("transfer_sail_days =", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysNotEqualTo(Integer value) {
addCriterion("transfer_sail_days <>", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysGreaterThan(Integer value) {
addCriterion("transfer_sail_days >", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysGreaterThanOrEqualTo(Integer value) {
addCriterion("transfer_sail_days >=", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysLessThan(Integer value) {
addCriterion("transfer_sail_days <", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysLessThanOrEqualTo(Integer value) {
addCriterion("transfer_sail_days <=", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysIn(List<Integer> values) {
addCriterion("transfer_sail_days in", values, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysNotIn(List<Integer> values) {
addCriterion("transfer_sail_days not in", values, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysBetween(Integer value1, Integer value2) {
addCriterion("transfer_sail_days between", value1, value2, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysNotBetween(Integer value1, Integer value2) {
addCriterion("transfer_sail_days not between", value1, value2, "transferSailDays");
return (Criteria) this;
}
public Criteria andSupplementarySalesIsNull() {
addCriterion("supplementary_sales is null");
return (Criteria) this;
......@@ -5891,6 +5831,66 @@ public class DcAutoTurnoverExample {
return (Criteria) this;
}
public Criteria andTransferSailDaysIsNull() {
addCriterion("transfer_sail_days is null");
return (Criteria) this;
}
public Criteria andTransferSailDaysIsNotNull() {
addCriterion("transfer_sail_days is not null");
return (Criteria) this;
}
public Criteria andTransferSailDaysEqualTo(Integer value) {
addCriterion("transfer_sail_days =", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysNotEqualTo(Integer value) {
addCriterion("transfer_sail_days <>", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysGreaterThan(Integer value) {
addCriterion("transfer_sail_days >", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysGreaterThanOrEqualTo(Integer value) {
addCriterion("transfer_sail_days >=", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysLessThan(Integer value) {
addCriterion("transfer_sail_days <", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysLessThanOrEqualTo(Integer value) {
addCriterion("transfer_sail_days <=", value, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysIn(List<Integer> values) {
addCriterion("transfer_sail_days in", values, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysNotIn(List<Integer> values) {
addCriterion("transfer_sail_days not in", values, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysBetween(Integer value1, Integer value2) {
addCriterion("transfer_sail_days between", value1, value2, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferSailDaysNotBetween(Integer value1, Integer value2) {
addCriterion("transfer_sail_days not between", value1, value2, "transferSailDays");
return (Criteria) this;
}
public Criteria andTransferOrderDaysIsNull() {
addCriterion("transfer_order_days is null");
return (Criteria) this;
......@@ -5950,6 +5950,316 @@ public class DcAutoTurnoverExample {
addCriterion("transfer_order_days not between", value1, value2, "transferOrderDays");
return (Criteria) this;
}
public Criteria andIsMotherSkuIsNull() {
addCriterion("is_mother_sku is null");
return (Criteria) this;
}
public Criteria andIsMotherSkuIsNotNull() {
addCriterion("is_mother_sku is not null");
return (Criteria) this;
}
public Criteria andIsMotherSkuEqualTo(Integer value) {
addCriterion("is_mother_sku =", value, "isMotherSku");
return (Criteria) this;
}
public Criteria andIsMotherSkuNotEqualTo(Integer value) {
addCriterion("is_mother_sku <>", value, "isMotherSku");
return (Criteria) this;
}
public Criteria andIsMotherSkuGreaterThan(Integer value) {
addCriterion("is_mother_sku >", value, "isMotherSku");
return (Criteria) this;
}
public Criteria andIsMotherSkuGreaterThanOrEqualTo(Integer value) {
addCriterion("is_mother_sku >=", value, "isMotherSku");
return (Criteria) this;
}
public Criteria andIsMotherSkuLessThan(Integer value) {
addCriterion("is_mother_sku <", value, "isMotherSku");
return (Criteria) this;
}
public Criteria andIsMotherSkuLessThanOrEqualTo(Integer value) {
addCriterion("is_mother_sku <=", value, "isMotherSku");
return (Criteria) this;
}
public Criteria andIsMotherSkuIn(List<Integer> values) {
addCriterion("is_mother_sku in", values, "isMotherSku");
return (Criteria) this;
}
public Criteria andIsMotherSkuNotIn(List<Integer> values) {
addCriterion("is_mother_sku not in", values, "isMotherSku");
return (Criteria) this;
}
public Criteria andIsMotherSkuBetween(Integer value1, Integer value2) {
addCriterion("is_mother_sku between", value1, value2, "isMotherSku");
return (Criteria) this;
}
public Criteria andIsMotherSkuNotBetween(Integer value1, Integer value2) {
addCriterion("is_mother_sku not between", value1, value2, "isMotherSku");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeIsNull() {
addCriterion("bailun_sku_warehouse_code is null");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeIsNotNull() {
addCriterion("bailun_sku_warehouse_code is not null");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeEqualTo(String value) {
addCriterion("bailun_sku_warehouse_code =", value, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeNotEqualTo(String value) {
addCriterion("bailun_sku_warehouse_code <>", value, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeGreaterThan(String value) {
addCriterion("bailun_sku_warehouse_code >", value, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeGreaterThanOrEqualTo(String value) {
addCriterion("bailun_sku_warehouse_code >=", value, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeLessThan(String value) {
addCriterion("bailun_sku_warehouse_code <", value, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeLessThanOrEqualTo(String value) {
addCriterion("bailun_sku_warehouse_code <=", value, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeLike(String value) {
addCriterion("bailun_sku_warehouse_code like", value, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeNotLike(String value) {
addCriterion("bailun_sku_warehouse_code not like", value, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeIn(List<String> values) {
addCriterion("bailun_sku_warehouse_code in", values, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeNotIn(List<String> values) {
addCriterion("bailun_sku_warehouse_code not in", values, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeBetween(String value1, String value2) {
addCriterion("bailun_sku_warehouse_code between", value1, value2, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andBailunSkuWarehouseCodeNotBetween(String value1, String value2) {
addCriterion("bailun_sku_warehouse_code not between", value1, value2, "bailunSkuWarehouseCode");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartIsNull() {
addCriterion("history_sevenday_sales_walmart is null");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartIsNotNull() {
addCriterion("history_sevenday_sales_walmart is not null");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartEqualTo(BigDecimal value) {
addCriterion("history_sevenday_sales_walmart =", value, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartNotEqualTo(BigDecimal value) {
addCriterion("history_sevenday_sales_walmart <>", value, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartGreaterThan(BigDecimal value) {
addCriterion("history_sevenday_sales_walmart >", value, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("history_sevenday_sales_walmart >=", value, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartLessThan(BigDecimal value) {
addCriterion("history_sevenday_sales_walmart <", value, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartLessThanOrEqualTo(BigDecimal value) {
addCriterion("history_sevenday_sales_walmart <=", value, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartIn(List<BigDecimal> values) {
addCriterion("history_sevenday_sales_walmart in", values, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartNotIn(List<BigDecimal> values) {
addCriterion("history_sevenday_sales_walmart not in", values, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("history_sevenday_sales_walmart between", value1, value2, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistorySevendaySalesWalmartNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("history_sevenday_sales_walmart not between", value1, value2, "historySevendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartIsNull() {
addCriterion("history_fourteenday_sales_walmart is null");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartIsNotNull() {
addCriterion("history_fourteenday_sales_walmart is not null");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartEqualTo(BigDecimal value) {
addCriterion("history_fourteenday_sales_walmart =", value, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartNotEqualTo(BigDecimal value) {
addCriterion("history_fourteenday_sales_walmart <>", value, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartGreaterThan(BigDecimal value) {
addCriterion("history_fourteenday_sales_walmart >", value, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("history_fourteenday_sales_walmart >=", value, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartLessThan(BigDecimal value) {
addCriterion("history_fourteenday_sales_walmart <", value, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartLessThanOrEqualTo(BigDecimal value) {
addCriterion("history_fourteenday_sales_walmart <=", value, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartIn(List<BigDecimal> values) {
addCriterion("history_fourteenday_sales_walmart in", values, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartNotIn(List<BigDecimal> values) {
addCriterion("history_fourteenday_sales_walmart not in", values, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("history_fourteenday_sales_walmart between", value1, value2, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryFourteendaySalesWalmartNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("history_fourteenday_sales_walmart not between", value1, value2, "historyFourteendaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartIsNull() {
addCriterion("history_thirtyday_sales_walmart is null");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartIsNotNull() {
addCriterion("history_thirtyday_sales_walmart is not null");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartEqualTo(BigDecimal value) {
addCriterion("history_thirtyday_sales_walmart =", value, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartNotEqualTo(BigDecimal value) {
addCriterion("history_thirtyday_sales_walmart <>", value, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartGreaterThan(BigDecimal value) {
addCriterion("history_thirtyday_sales_walmart >", value, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("history_thirtyday_sales_walmart >=", value, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartLessThan(BigDecimal value) {
addCriterion("history_thirtyday_sales_walmart <", value, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartLessThanOrEqualTo(BigDecimal value) {
addCriterion("history_thirtyday_sales_walmart <=", value, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartIn(List<BigDecimal> values) {
addCriterion("history_thirtyday_sales_walmart in", values, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartNotIn(List<BigDecimal> values) {
addCriterion("history_thirtyday_sales_walmart not in", values, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("history_thirtyday_sales_walmart between", value1, value2, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
public Criteria andHistoryThirtydaySalesWalmartNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("history_thirtyday_sales_walmart not between", value1, value2, "historyThirtydaySalesWalmart");
return (Criteria) this;
}
}
/**
......
......@@ -50,7 +50,6 @@
<result column="transfer_bale_delivery_source" jdbcType="VARCHAR" property="transferBaleDeliverySource" />
<result column="abroad_inbound_delivery" jdbcType="INTEGER" property="abroadInboundDelivery" />
<result column="abroad_inbound_delivery_source" jdbcType="VARCHAR" property="abroadInboundDeliverySource" />
<result column="transfer_sail_days" jdbcType="INTEGER" property="transferSailDays" />
<result column="supplementary_sales" jdbcType="DECIMAL" property="supplementarySales" />
<result column="turnover_sales" jdbcType="DECIMAL" property="turnoverSales" />
<result column="turnover_inbound" jdbcType="DECIMAL" property="turnoverInbound" />
......@@ -94,7 +93,13 @@
<result column="orders_avg" jdbcType="DECIMAL" property="ordersAvg" />
<result column="adv_uid" jdbcType="VARCHAR" property="advUid" />
<result column="purchase_create_order_days" jdbcType="INTEGER" property="purchaseCreateOrderDays" />
<result column="transfer_sail_days" jdbcType="INTEGER" property="transferSailDays" />
<result column="transfer_order_days" jdbcType="INTEGER" property="transferOrderDays" />
<result column="is_mother_sku" jdbcType="INTEGER" property="isMotherSku" />
<result column="bailun_sku_warehouse_code" jdbcType="VARCHAR" property="bailunSkuWarehouseCode" />
<result column="history_sevenday_sales_walmart" jdbcType="DECIMAL" property="historySevendaySalesWalmart" />
<result column="history_fourteenday_sales_walmart" jdbcType="DECIMAL" property="historyFourteendaySalesWalmart" />
<result column="history_thirtyday_sales_walmart" jdbcType="DECIMAL" property="historyThirtydaySalesWalmart" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.bailuntec.domain.entity.DcAutoTurnoverWithBLOBs">
<!--
......@@ -185,18 +190,20 @@
average_supplier_delivery, transfer_config_delivery, transfer_bale_config_delivery,
abroad_inbound_config_delivery, inspection_config_delivery, inspection_delivery,
transfer_delivery, transfer_delivery_source, transfer_bale_delivery, transfer_bale_delivery_source,
abroad_inbound_delivery, abroad_inbound_delivery_source, transfer_sail_days, supplementary_sales,
turnover_sales, turnover_inbound, history_sevenday_sales, history_fourteenday_sales,
history_thirtyday_sales, sales_explain_details, forecast_turnoverday_sales, stock_up_sales,
quantity_begin_advise, stock_up_days, payment_before_delivery, product_code, product_inner_code,
bailun_category_id, buyer_name, suppliers_name, history_sevenday_sales_ebay, history_fourteenday_sales_ebay,
abroad_inbound_delivery, abroad_inbound_delivery_source, supplementary_sales, turnover_sales,
turnover_inbound, history_sevenday_sales, history_fourteenday_sales, history_thirtyday_sales,
sales_explain_details, forecast_turnoverday_sales, stock_up_sales, quantity_begin_advise,
stock_up_days, payment_before_delivery, product_code, product_inner_code, bailun_category_id,
buyer_name, suppliers_name, history_sevenday_sales_ebay, history_fourteenday_sales_ebay,
history_thirtyday_sales_ebay, history_sevenday_sales_aliexpress, history_fourteenday_sales_aliexpress,
history_thirtyday_sales_aliexpress, daily_weighted_sales, original_quantity_init_advise,
is_modify_quantity_init_advise, tag_id, hq_type, history_sevenday_sales_amazon, history_fourteenday_sales_amazon,
history_thirtyday_sales_amazon, dc_auto_sales_forecast_config_id, is_out_stock, dc_auto_sales_forecast_stage_config_id,
dc_auto_sales_forecast_title, head_transport_type, head_transport_logistics_code,
auto_replace_logistics_task_id, first_order_date, first_order_bailun_order_id, orders_avg,
adv_uid, purchase_create_order_days, transfer_order_days
adv_uid, purchase_create_order_days, transfer_sail_days, transfer_order_days, is_mother_sku,
bailun_sku_warehouse_code, history_sevenday_sales_walmart, history_fourteenday_sales_walmart,
history_thirtyday_sales_walmart
</sql>
<sql id="Blob_Column_List">
<!--
......@@ -311,27 +318,30 @@
inspection_delivery, transfer_delivery, transfer_delivery_source,
transfer_bale_delivery, transfer_bale_delivery_source,
abroad_inbound_delivery, abroad_inbound_delivery_source,
transfer_sail_days, supplementary_sales, turnover_sales,
turnover_inbound, history_sevenday_sales,
history_fourteenday_sales, history_thirtyday_sales,
sales_explain_details, forecast_turnoverday_sales,
stock_up_sales, quantity_begin_advise, stock_up_days,
payment_before_delivery, product_code, product_inner_code,
bailun_category_id, buyer_name, suppliers_name,
history_sevenday_sales_ebay, history_fourteenday_sales_ebay,
history_thirtyday_sales_ebay, history_sevenday_sales_aliexpress,
history_fourteenday_sales_aliexpress, history_thirtyday_sales_aliexpress,
daily_weighted_sales, original_quantity_init_advise,
is_modify_quantity_init_advise, tag_id, hq_type,
history_sevenday_sales_amazon, history_fourteenday_sales_amazon,
history_thirtyday_sales_amazon, dc_auto_sales_forecast_config_id,
is_out_stock, dc_auto_sales_forecast_stage_config_id,
dc_auto_sales_forecast_title, head_transport_type,
head_transport_logistics_code, auto_replace_logistics_task_id,
first_order_date, first_order_bailun_order_id,
orders_avg, adv_uid, purchase_create_order_days,
transfer_order_days, sales_details, short_supply_details,
sales_details_formula)
supplementary_sales, turnover_sales, turnover_inbound,
history_sevenday_sales, history_fourteenday_sales,
history_thirtyday_sales, sales_explain_details,
forecast_turnoverday_sales, stock_up_sales,
quantity_begin_advise, stock_up_days, payment_before_delivery,
product_code, product_inner_code, bailun_category_id,
buyer_name, suppliers_name, history_sevenday_sales_ebay,
history_fourteenday_sales_ebay, history_thirtyday_sales_ebay,
history_sevenday_sales_aliexpress, history_fourteenday_sales_aliexpress,
history_thirtyday_sales_aliexpress, daily_weighted_sales,
original_quantity_init_advise, is_modify_quantity_init_advise,
tag_id, hq_type, history_sevenday_sales_amazon,
history_fourteenday_sales_amazon, history_thirtyday_sales_amazon,
dc_auto_sales_forecast_config_id, is_out_stock,
dc_auto_sales_forecast_stage_config_id, dc_auto_sales_forecast_title,
head_transport_type, head_transport_logistics_code,
auto_replace_logistics_task_id, first_order_date,
first_order_bailun_order_id, orders_avg, adv_uid,
purchase_create_order_days, transfer_sail_days,
transfer_order_days, is_mother_sku, bailun_sku_warehouse_code,
history_sevenday_sales_walmart, history_fourteenday_sales_walmart,
history_thirtyday_sales_walmart, sales_details,
short_supply_details, sales_details_formula
)
values (#{id,jdbcType=INTEGER}, #{purchaseAdviceId,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{quantityInitAdvise,jdbcType=DECIMAL}, #{quantityMinimumOrder,jdbcType=INTEGER},
#{quantityFinalAdvise,jdbcType=DECIMAL}, #{warehouseName,jdbcType=VARCHAR}, #{quantityPromotion,jdbcType=INTEGER},
......@@ -349,27 +359,30 @@
#{inspectionDelivery,jdbcType=INTEGER}, #{transferDelivery,jdbcType=INTEGER}, #{transferDeliverySource,jdbcType=VARCHAR},
#{transferBaleDelivery,jdbcType=INTEGER}, #{transferBaleDeliverySource,jdbcType=VARCHAR},
#{abroadInboundDelivery,jdbcType=INTEGER}, #{abroadInboundDeliverySource,jdbcType=VARCHAR},
#{transferSailDays,jdbcType=INTEGER}, #{supplementarySales,jdbcType=DECIMAL}, #{turnoverSales,jdbcType=DECIMAL},
#{turnoverInbound,jdbcType=DECIMAL}, #{historySevendaySales,jdbcType=DECIMAL},
#{historyFourteendaySales,jdbcType=DECIMAL}, #{historyThirtydaySales,jdbcType=DECIMAL},
#{salesExplainDetails,jdbcType=VARCHAR}, #{forecastTurnoverdaySales,jdbcType=DECIMAL},
#{stockUpSales,jdbcType=DECIMAL}, #{quantityBeginAdvise,jdbcType=DECIMAL}, #{stockUpDays,jdbcType=INTEGER},
#{paymentBeforeDelivery,jdbcType=INTEGER}, #{productCode,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR},
#{bailunCategoryId,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR}, #{suppliersName,jdbcType=VARCHAR},
#{historySevendaySalesEbay,jdbcType=DECIMAL}, #{historyFourteendaySalesEbay,jdbcType=DECIMAL},
#{historyThirtydaySalesEbay,jdbcType=DECIMAL}, #{historySevendaySalesAliexpress,jdbcType=DECIMAL},
#{historyFourteendaySalesAliexpress,jdbcType=DECIMAL}, #{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
#{dailyWeightedSales,jdbcType=DECIMAL}, #{originalQuantityInitAdvise,jdbcType=INTEGER},
#{isModifyQuantityInitAdvise,jdbcType=INTEGER}, #{tagId,jdbcType=INTEGER}, #{hqType,jdbcType=VARCHAR},
#{historySevendaySalesAmazon,jdbcType=DECIMAL}, #{historyFourteendaySalesAmazon,jdbcType=DECIMAL},
#{historyThirtydaySalesAmazon,jdbcType=DECIMAL}, #{dcAutoSalesForecastConfigId,jdbcType=INTEGER},
#{isOutStock,jdbcType=INTEGER}, #{dcAutoSalesForecastStageConfigId,jdbcType=INTEGER},
#{dcAutoSalesForecastTitle,jdbcType=VARCHAR}, #{headTransportType,jdbcType=VARCHAR},
#{headTransportLogisticsCode,jdbcType=VARCHAR}, #{autoReplaceLogisticsTaskId,jdbcType=INTEGER},
#{firstOrderDate,jdbcType=TIMESTAMP}, #{firstOrderBailunOrderId,jdbcType=VARCHAR},
#{ordersAvg,jdbcType=DECIMAL}, #{advUid,jdbcType=VARCHAR}, #{purchaseCreateOrderDays,jdbcType=INTEGER},
#{transferOrderDays,jdbcType=INTEGER}, #{salesDetails,jdbcType=LONGVARCHAR}, #{shortSupplyDetails,jdbcType=LONGVARCHAR},
#{salesDetailsFormula,jdbcType=LONGVARCHAR})
#{supplementarySales,jdbcType=DECIMAL}, #{turnoverSales,jdbcType=DECIMAL}, #{turnoverInbound,jdbcType=DECIMAL},
#{historySevendaySales,jdbcType=DECIMAL}, #{historyFourteendaySales,jdbcType=DECIMAL},
#{historyThirtydaySales,jdbcType=DECIMAL}, #{salesExplainDetails,jdbcType=VARCHAR},
#{forecastTurnoverdaySales,jdbcType=DECIMAL}, #{stockUpSales,jdbcType=DECIMAL},
#{quantityBeginAdvise,jdbcType=DECIMAL}, #{stockUpDays,jdbcType=INTEGER}, #{paymentBeforeDelivery,jdbcType=INTEGER},
#{productCode,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER},
#{buyerName,jdbcType=VARCHAR}, #{suppliersName,jdbcType=VARCHAR}, #{historySevendaySalesEbay,jdbcType=DECIMAL},
#{historyFourteendaySalesEbay,jdbcType=DECIMAL}, #{historyThirtydaySalesEbay,jdbcType=DECIMAL},
#{historySevendaySalesAliexpress,jdbcType=DECIMAL}, #{historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
#{historyThirtydaySalesAliexpress,jdbcType=DECIMAL}, #{dailyWeightedSales,jdbcType=DECIMAL},
#{originalQuantityInitAdvise,jdbcType=INTEGER}, #{isModifyQuantityInitAdvise,jdbcType=INTEGER},
#{tagId,jdbcType=INTEGER}, #{hqType,jdbcType=VARCHAR}, #{historySevendaySalesAmazon,jdbcType=DECIMAL},
#{historyFourteendaySalesAmazon,jdbcType=DECIMAL}, #{historyThirtydaySalesAmazon,jdbcType=DECIMAL},
#{dcAutoSalesForecastConfigId,jdbcType=INTEGER}, #{isOutStock,jdbcType=INTEGER},
#{dcAutoSalesForecastStageConfigId,jdbcType=INTEGER}, #{dcAutoSalesForecastTitle,jdbcType=VARCHAR},
#{headTransportType,jdbcType=VARCHAR}, #{headTransportLogisticsCode,jdbcType=VARCHAR},
#{autoReplaceLogisticsTaskId,jdbcType=INTEGER}, #{firstOrderDate,jdbcType=TIMESTAMP},
#{firstOrderBailunOrderId,jdbcType=VARCHAR}, #{ordersAvg,jdbcType=DECIMAL}, #{advUid,jdbcType=VARCHAR},
#{purchaseCreateOrderDays,jdbcType=INTEGER}, #{transferSailDays,jdbcType=INTEGER},
#{transferOrderDays,jdbcType=INTEGER}, #{isMotherSku,jdbcType=INTEGER}, #{bailunSkuWarehouseCode,jdbcType=VARCHAR},
#{historySevendaySalesWalmart,jdbcType=DECIMAL}, #{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
#{historyThirtydaySalesWalmart,jdbcType=DECIMAL}, #{salesDetails,jdbcType=LONGVARCHAR},
#{shortSupplyDetails,jdbcType=LONGVARCHAR}, #{salesDetailsFormula,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcAutoTurnoverWithBLOBs">
<!--
......@@ -510,9 +523,6 @@
<if test="abroadInboundDeliverySource != null">
abroad_inbound_delivery_source,
</if>
<if test="transferSailDays != null">
transfer_sail_days,
</if>
<if test="supplementarySales != null">
supplementary_sales,
</if>
......@@ -642,9 +652,27 @@
<if test="purchaseCreateOrderDays != null">
purchase_create_order_days,
</if>
<if test="transferSailDays != null">
transfer_sail_days,
</if>
<if test="transferOrderDays != null">
transfer_order_days,
</if>
<if test="isMotherSku != null">
is_mother_sku,
</if>
<if test="bailunSkuWarehouseCode != null">
bailun_sku_warehouse_code,
</if>
<if test="historySevendaySalesWalmart != null">
history_sevenday_sales_walmart,
</if>
<if test="historyFourteendaySalesWalmart != null">
history_fourteenday_sales_walmart,
</if>
<if test="historyThirtydaySalesWalmart != null">
history_thirtyday_sales_walmart,
</if>
<if test="salesDetails != null">
sales_details,
</if>
......@@ -788,9 +816,6 @@
<if test="abroadInboundDeliverySource != null">
#{abroadInboundDeliverySource,jdbcType=VARCHAR},
</if>
<if test="transferSailDays != null">
#{transferSailDays,jdbcType=INTEGER},
</if>
<if test="supplementarySales != null">
#{supplementarySales,jdbcType=DECIMAL},
</if>
......@@ -920,9 +945,27 @@
<if test="purchaseCreateOrderDays != null">
#{purchaseCreateOrderDays,jdbcType=INTEGER},
</if>
<if test="transferSailDays != null">
#{transferSailDays,jdbcType=INTEGER},
</if>
<if test="transferOrderDays != null">
#{transferOrderDays,jdbcType=INTEGER},
</if>
<if test="isMotherSku != null">
#{isMotherSku,jdbcType=INTEGER},
</if>
<if test="bailunSkuWarehouseCode != null">
#{bailunSkuWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="historySevendaySalesWalmart != null">
#{historySevendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="historyFourteendaySalesWalmart != null">
#{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="historyThirtydaySalesWalmart != null">
#{historyThirtydaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="salesDetails != null">
#{salesDetails,jdbcType=LONGVARCHAR},
</if>
......@@ -1083,9 +1126,6 @@
<if test="record.abroadInboundDeliverySource != null">
abroad_inbound_delivery_source = #{record.abroadInboundDeliverySource,jdbcType=VARCHAR},
</if>
<if test="record.transferSailDays != null">
transfer_sail_days = #{record.transferSailDays,jdbcType=INTEGER},
</if>
<if test="record.supplementarySales != null">
supplementary_sales = #{record.supplementarySales,jdbcType=DECIMAL},
</if>
......@@ -1215,9 +1255,27 @@
<if test="record.purchaseCreateOrderDays != null">
purchase_create_order_days = #{record.purchaseCreateOrderDays,jdbcType=INTEGER},
</if>
<if test="record.transferSailDays != null">
transfer_sail_days = #{record.transferSailDays,jdbcType=INTEGER},
</if>
<if test="record.transferOrderDays != null">
transfer_order_days = #{record.transferOrderDays,jdbcType=INTEGER},
</if>
<if test="record.isMotherSku != null">
is_mother_sku = #{record.isMotherSku,jdbcType=INTEGER},
</if>
<if test="record.bailunSkuWarehouseCode != null">
bailun_sku_warehouse_code = #{record.bailunSkuWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="record.historySevendaySalesWalmart != null">
history_sevenday_sales_walmart = #{record.historySevendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="record.historyFourteendaySalesWalmart != null">
history_fourteenday_sales_walmart = #{record.historyFourteendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="record.historyThirtydaySalesWalmart != null">
history_thirtyday_sales_walmart = #{record.historyThirtydaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="record.salesDetails != null">
sales_details = #{record.salesDetails,jdbcType=LONGVARCHAR},
</if>
......@@ -1282,7 +1340,6 @@
transfer_bale_delivery_source = #{record.transferBaleDeliverySource,jdbcType=VARCHAR},
abroad_inbound_delivery = #{record.abroadInboundDelivery,jdbcType=INTEGER},
abroad_inbound_delivery_source = #{record.abroadInboundDeliverySource,jdbcType=VARCHAR},
transfer_sail_days = #{record.transferSailDays,jdbcType=INTEGER},
supplementary_sales = #{record.supplementarySales,jdbcType=DECIMAL},
turnover_sales = #{record.turnoverSales,jdbcType=DECIMAL},
turnover_inbound = #{record.turnoverInbound,jdbcType=DECIMAL},
......@@ -1326,7 +1383,13 @@
orders_avg = #{record.ordersAvg,jdbcType=DECIMAL},
adv_uid = #{record.advUid,jdbcType=VARCHAR},
purchase_create_order_days = #{record.purchaseCreateOrderDays,jdbcType=INTEGER},
transfer_sail_days = #{record.transferSailDays,jdbcType=INTEGER},
transfer_order_days = #{record.transferOrderDays,jdbcType=INTEGER},
is_mother_sku = #{record.isMotherSku,jdbcType=INTEGER},
bailun_sku_warehouse_code = #{record.bailunSkuWarehouseCode,jdbcType=VARCHAR},
history_sevenday_sales_walmart = #{record.historySevendaySalesWalmart,jdbcType=DECIMAL},
history_fourteenday_sales_walmart = #{record.historyFourteendaySalesWalmart,jdbcType=DECIMAL},
history_thirtyday_sales_walmart = #{record.historyThirtydaySalesWalmart,jdbcType=DECIMAL},
sales_details = #{record.salesDetails,jdbcType=LONGVARCHAR},
short_supply_details = #{record.shortSupplyDetails,jdbcType=LONGVARCHAR},
sales_details_formula = #{record.salesDetailsFormula,jdbcType=LONGVARCHAR}
......@@ -1384,7 +1447,6 @@
transfer_bale_delivery_source = #{record.transferBaleDeliverySource,jdbcType=VARCHAR},
abroad_inbound_delivery = #{record.abroadInboundDelivery,jdbcType=INTEGER},
abroad_inbound_delivery_source = #{record.abroadInboundDeliverySource,jdbcType=VARCHAR},
transfer_sail_days = #{record.transferSailDays,jdbcType=INTEGER},
supplementary_sales = #{record.supplementarySales,jdbcType=DECIMAL},
turnover_sales = #{record.turnoverSales,jdbcType=DECIMAL},
turnover_inbound = #{record.turnoverInbound,jdbcType=DECIMAL},
......@@ -1428,7 +1490,13 @@
orders_avg = #{record.ordersAvg,jdbcType=DECIMAL},
adv_uid = #{record.advUid,jdbcType=VARCHAR},
purchase_create_order_days = #{record.purchaseCreateOrderDays,jdbcType=INTEGER},
transfer_order_days = #{record.transferOrderDays,jdbcType=INTEGER}
transfer_sail_days = #{record.transferSailDays,jdbcType=INTEGER},
transfer_order_days = #{record.transferOrderDays,jdbcType=INTEGER},
is_mother_sku = #{record.isMotherSku,jdbcType=INTEGER},
bailun_sku_warehouse_code = #{record.bailunSkuWarehouseCode,jdbcType=VARCHAR},
history_sevenday_sales_walmart = #{record.historySevendaySalesWalmart,jdbcType=DECIMAL},
history_fourteenday_sales_walmart = #{record.historyFourteendaySalesWalmart,jdbcType=DECIMAL},
history_thirtyday_sales_walmart = #{record.historyThirtydaySalesWalmart,jdbcType=DECIMAL}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
......@@ -1569,9 +1637,6 @@
<if test="abroadInboundDeliverySource != null">
abroad_inbound_delivery_source = #{abroadInboundDeliverySource,jdbcType=VARCHAR},
</if>
<if test="transferSailDays != null">
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
</if>
<if test="supplementarySales != null">
supplementary_sales = #{supplementarySales,jdbcType=DECIMAL},
</if>
......@@ -1701,9 +1766,27 @@
<if test="purchaseCreateOrderDays != null">
purchase_create_order_days = #{purchaseCreateOrderDays,jdbcType=INTEGER},
</if>
<if test="transferSailDays != null">
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
</if>
<if test="transferOrderDays != null">
transfer_order_days = #{transferOrderDays,jdbcType=INTEGER},
</if>
<if test="isMotherSku != null">
is_mother_sku = #{isMotherSku,jdbcType=INTEGER},
</if>
<if test="bailunSkuWarehouseCode != null">
bailun_sku_warehouse_code = #{bailunSkuWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="historySevendaySalesWalmart != null">
history_sevenday_sales_walmart = #{historySevendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="historyFourteendaySalesWalmart != null">
history_fourteenday_sales_walmart = #{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="historyThirtydaySalesWalmart != null">
history_thirtyday_sales_walmart = #{historyThirtydaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="salesDetails != null">
sales_details = #{salesDetails,jdbcType=LONGVARCHAR},
</if>
......@@ -1765,7 +1848,6 @@
transfer_bale_delivery_source = #{transferBaleDeliverySource,jdbcType=VARCHAR},
abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=INTEGER},
abroad_inbound_delivery_source = #{abroadInboundDeliverySource,jdbcType=VARCHAR},
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
supplementary_sales = #{supplementarySales,jdbcType=DECIMAL},
turnover_sales = #{turnoverSales,jdbcType=DECIMAL},
turnover_inbound = #{turnoverInbound,jdbcType=DECIMAL},
......@@ -1809,7 +1891,13 @@
orders_avg = #{ordersAvg,jdbcType=DECIMAL},
adv_uid = #{advUid,jdbcType=VARCHAR},
purchase_create_order_days = #{purchaseCreateOrderDays,jdbcType=INTEGER},
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
transfer_order_days = #{transferOrderDays,jdbcType=INTEGER},
is_mother_sku = #{isMotherSku,jdbcType=INTEGER},
bailun_sku_warehouse_code = #{bailunSkuWarehouseCode,jdbcType=VARCHAR},
history_sevenday_sales_walmart = #{historySevendaySalesWalmart,jdbcType=DECIMAL},
history_fourteenday_sales_walmart = #{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
history_thirtyday_sales_walmart = #{historyThirtydaySalesWalmart,jdbcType=DECIMAL},
sales_details = #{salesDetails,jdbcType=LONGVARCHAR},
short_supply_details = #{shortSupplyDetails,jdbcType=LONGVARCHAR},
sales_details_formula = #{salesDetailsFormula,jdbcType=LONGVARCHAR}
......@@ -1864,7 +1952,6 @@
transfer_bale_delivery_source = #{transferBaleDeliverySource,jdbcType=VARCHAR},
abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=INTEGER},
abroad_inbound_delivery_source = #{abroadInboundDeliverySource,jdbcType=VARCHAR},
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
supplementary_sales = #{supplementarySales,jdbcType=DECIMAL},
turnover_sales = #{turnoverSales,jdbcType=DECIMAL},
turnover_inbound = #{turnoverInbound,jdbcType=DECIMAL},
......@@ -1908,7 +1995,13 @@
orders_avg = #{ordersAvg,jdbcType=DECIMAL},
adv_uid = #{advUid,jdbcType=VARCHAR},
purchase_create_order_days = #{purchaseCreateOrderDays,jdbcType=INTEGER},
transfer_order_days = #{transferOrderDays,jdbcType=INTEGER}
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
transfer_order_days = #{transferOrderDays,jdbcType=INTEGER},
is_mother_sku = #{isMotherSku,jdbcType=INTEGER},
bailun_sku_warehouse_code = #{bailunSkuWarehouseCode,jdbcType=VARCHAR},
history_sevenday_sales_walmart = #{historySevendaySalesWalmart,jdbcType=DECIMAL},
history_fourteenday_sales_walmart = #{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
history_thirtyday_sales_walmart = #{historyThirtydaySalesWalmart,jdbcType=DECIMAL}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcAutoTurnoverWithBLOBs">
......@@ -2051,9 +2144,6 @@
<if test="abroadInboundDeliverySource != null">
abroad_inbound_delivery_source,
</if>
<if test="transferSailDays != null">
transfer_sail_days,
</if>
<if test="supplementarySales != null">
supplementary_sales,
</if>
......@@ -2183,9 +2273,27 @@
<if test="purchaseCreateOrderDays != null">
purchase_create_order_days,
</if>
<if test="transferSailDays != null">
transfer_sail_days,
</if>
<if test="transferOrderDays != null">
transfer_order_days,
</if>
<if test="isMotherSku != null">
is_mother_sku,
</if>
<if test="bailunSkuWarehouseCode != null">
bailun_sku_warehouse_code,
</if>
<if test="historySevendaySalesWalmart != null">
history_sevenday_sales_walmart,
</if>
<if test="historyFourteendaySalesWalmart != null">
history_fourteenday_sales_walmart,
</if>
<if test="historyThirtydaySalesWalmart != null">
history_thirtyday_sales_walmart,
</if>
<if test="salesDetails != null">
sales_details,
</if>
......@@ -2330,9 +2438,6 @@
<if test="abroadInboundDeliverySource != null">
#{abroadInboundDeliverySource,jdbcType=VARCHAR},
</if>
<if test="transferSailDays != null">
#{transferSailDays,jdbcType=INTEGER},
</if>
<if test="supplementarySales != null">
#{supplementarySales,jdbcType=DECIMAL},
</if>
......@@ -2462,9 +2567,27 @@
<if test="purchaseCreateOrderDays != null">
#{purchaseCreateOrderDays,jdbcType=INTEGER},
</if>
<if test="transferSailDays != null">
#{transferSailDays,jdbcType=INTEGER},
</if>
<if test="transferOrderDays != null">
#{transferOrderDays,jdbcType=INTEGER},
</if>
<if test="isMotherSku != null">
#{isMotherSku,jdbcType=INTEGER},
</if>
<if test="bailunSkuWarehouseCode != null">
#{bailunSkuWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="historySevendaySalesWalmart != null">
#{historySevendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="historyFourteendaySalesWalmart != null">
#{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="historyThirtydaySalesWalmart != null">
#{historyThirtydaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="salesDetails != null">
#{salesDetails,jdbcType=LONGVARCHAR},
</if>
......@@ -2609,9 +2732,6 @@
<if test="abroadInboundDeliverySource != null">
abroad_inbound_delivery_source = #{abroadInboundDeliverySource,jdbcType=VARCHAR},
</if>
<if test="transferSailDays != null">
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
</if>
<if test="supplementarySales != null">
supplementary_sales = #{supplementarySales,jdbcType=DECIMAL},
</if>
......@@ -2741,9 +2861,27 @@
<if test="purchaseCreateOrderDays != null">
purchase_create_order_days = #{purchaseCreateOrderDays,jdbcType=INTEGER},
</if>
<if test="transferSailDays != null">
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
</if>
<if test="transferOrderDays != null">
transfer_order_days = #{transferOrderDays,jdbcType=INTEGER},
</if>
<if test="isMotherSku != null">
is_mother_sku = #{isMotherSku,jdbcType=INTEGER},
</if>
<if test="bailunSkuWarehouseCode != null">
bailun_sku_warehouse_code = #{bailunSkuWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="historySevendaySalesWalmart != null">
history_sevenday_sales_walmart = #{historySevendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="historyFourteendaySalesWalmart != null">
history_fourteenday_sales_walmart = #{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="historyThirtydaySalesWalmart != null">
history_thirtyday_sales_walmart = #{historyThirtydaySalesWalmart,jdbcType=DECIMAL},
</if>
<if test="salesDetails != null">
sales_details = #{salesDetails,jdbcType=LONGVARCHAR},
</if>
......@@ -2772,7 +2910,7 @@
transfer_bale_config_delivery, abroad_inbound_config_delivery, inspection_config_delivery,
inspection_delivery, transfer_delivery, transfer_delivery_source, transfer_bale_delivery,
transfer_bale_delivery_source, abroad_inbound_delivery, abroad_inbound_delivery_source,
transfer_sail_days, supplementary_sales, turnover_sales, turnover_inbound, history_sevenday_sales,
supplementary_sales, turnover_sales, turnover_inbound, history_sevenday_sales,
history_fourteenday_sales, history_thirtyday_sales, sales_explain_details, forecast_turnoverday_sales,
stock_up_sales, quantity_begin_advise, stock_up_days, payment_before_delivery,
product_code, product_inner_code, bailun_category_id, buyer_name, suppliers_name,
......@@ -2783,8 +2921,9 @@
history_thirtyday_sales_amazon, dc_auto_sales_forecast_config_id, is_out_stock,
dc_auto_sales_forecast_stage_config_id, dc_auto_sales_forecast_title, head_transport_type,
head_transport_logistics_code, auto_replace_logistics_task_id, first_order_date,
first_order_bailun_order_id, orders_avg, adv_uid, purchase_create_order_days, transfer_order_days
)
first_order_bailun_order_id, orders_avg, adv_uid, purchase_create_order_days, transfer_sail_days,
transfer_order_days, is_mother_sku, bailun_sku_warehouse_code, history_sevenday_sales_walmart,
history_fourteenday_sales_walmart, history_thirtyday_sales_walmart)
values
(#{id,jdbcType=INTEGER}, #{purchaseAdviceId,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{quantityInitAdvise,jdbcType=DECIMAL}, #{quantityMinimumOrder,jdbcType=INTEGER},
......@@ -2803,26 +2942,28 @@
#{inspectionDelivery,jdbcType=INTEGER}, #{transferDelivery,jdbcType=INTEGER}, #{transferDeliverySource,jdbcType=VARCHAR},
#{transferBaleDelivery,jdbcType=INTEGER}, #{transferBaleDeliverySource,jdbcType=VARCHAR},
#{abroadInboundDelivery,jdbcType=INTEGER}, #{abroadInboundDeliverySource,jdbcType=VARCHAR},
#{transferSailDays,jdbcType=INTEGER}, #{supplementarySales,jdbcType=DECIMAL}, #{turnoverSales,jdbcType=DECIMAL},
#{turnoverInbound,jdbcType=DECIMAL}, #{historySevendaySales,jdbcType=DECIMAL},
#{historyFourteendaySales,jdbcType=DECIMAL}, #{historyThirtydaySales,jdbcType=DECIMAL},
#{salesExplainDetails,jdbcType=VARCHAR}, #{forecastTurnoverdaySales,jdbcType=DECIMAL},
#{stockUpSales,jdbcType=DECIMAL}, #{quantityBeginAdvise,jdbcType=DECIMAL}, #{stockUpDays,jdbcType=INTEGER},
#{paymentBeforeDelivery,jdbcType=INTEGER}, #{productCode,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR},
#{bailunCategoryId,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR}, #{suppliersName,jdbcType=VARCHAR},
#{historySevendaySalesEbay,jdbcType=DECIMAL}, #{historyFourteendaySalesEbay,jdbcType=DECIMAL},
#{historyThirtydaySalesEbay,jdbcType=DECIMAL}, #{historySevendaySalesAliexpress,jdbcType=DECIMAL},
#{historyFourteendaySalesAliexpress,jdbcType=DECIMAL}, #{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
#{dailyWeightedSales,jdbcType=DECIMAL}, #{originalQuantityInitAdvise,jdbcType=INTEGER},
#{isModifyQuantityInitAdvise,jdbcType=INTEGER}, #{tagId,jdbcType=INTEGER}, #{hqType,jdbcType=VARCHAR},
#{historySevendaySalesAmazon,jdbcType=DECIMAL}, #{historyFourteendaySalesAmazon,jdbcType=DECIMAL},
#{historyThirtydaySalesAmazon,jdbcType=DECIMAL}, #{dcAutoSalesForecastConfigId,jdbcType=INTEGER},
#{isOutStock,jdbcType=INTEGER}, #{dcAutoSalesForecastStageConfigId,jdbcType=INTEGER},
#{dcAutoSalesForecastTitle,jdbcType=VARCHAR}, #{headTransportType,jdbcType=VARCHAR},
#{headTransportLogisticsCode,jdbcType=VARCHAR}, #{autoReplaceLogisticsTaskId,jdbcType=INTEGER},
#{firstOrderDate,jdbcType=TIMESTAMP}, #{firstOrderBailunOrderId,jdbcType=VARCHAR},
#{ordersAvg,jdbcType=DECIMAL}, #{advUid,jdbcType=VARCHAR}, #{purchaseCreateOrderDays,jdbcType=INTEGER},
#{transferOrderDays,jdbcType=INTEGER})
#{supplementarySales,jdbcType=DECIMAL}, #{turnoverSales,jdbcType=DECIMAL}, #{turnoverInbound,jdbcType=DECIMAL},
#{historySevendaySales,jdbcType=DECIMAL}, #{historyFourteendaySales,jdbcType=DECIMAL},
#{historyThirtydaySales,jdbcType=DECIMAL}, #{salesExplainDetails,jdbcType=VARCHAR},
#{forecastTurnoverdaySales,jdbcType=DECIMAL}, #{stockUpSales,jdbcType=DECIMAL},
#{quantityBeginAdvise,jdbcType=DECIMAL}, #{stockUpDays,jdbcType=INTEGER}, #{paymentBeforeDelivery,jdbcType=INTEGER},
#{productCode,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER},
#{buyerName,jdbcType=VARCHAR}, #{suppliersName,jdbcType=VARCHAR}, #{historySevendaySalesEbay,jdbcType=DECIMAL},
#{historyFourteendaySalesEbay,jdbcType=DECIMAL}, #{historyThirtydaySalesEbay,jdbcType=DECIMAL},
#{historySevendaySalesAliexpress,jdbcType=DECIMAL}, #{historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
#{historyThirtydaySalesAliexpress,jdbcType=DECIMAL}, #{dailyWeightedSales,jdbcType=DECIMAL},
#{originalQuantityInitAdvise,jdbcType=INTEGER}, #{isModifyQuantityInitAdvise,jdbcType=INTEGER},
#{tagId,jdbcType=INTEGER}, #{hqType,jdbcType=VARCHAR}, #{historySevendaySalesAmazon,jdbcType=DECIMAL},
#{historyFourteendaySalesAmazon,jdbcType=DECIMAL}, #{historyThirtydaySalesAmazon,jdbcType=DECIMAL},
#{dcAutoSalesForecastConfigId,jdbcType=INTEGER}, #{isOutStock,jdbcType=INTEGER},
#{dcAutoSalesForecastStageConfigId,jdbcType=INTEGER}, #{dcAutoSalesForecastTitle,jdbcType=VARCHAR},
#{headTransportType,jdbcType=VARCHAR}, #{headTransportLogisticsCode,jdbcType=VARCHAR},
#{autoReplaceLogisticsTaskId,jdbcType=INTEGER}, #{firstOrderDate,jdbcType=TIMESTAMP},
#{firstOrderBailunOrderId,jdbcType=VARCHAR}, #{ordersAvg,jdbcType=DECIMAL}, #{advUid,jdbcType=VARCHAR},
#{purchaseCreateOrderDays,jdbcType=INTEGER}, #{transferSailDays,jdbcType=INTEGER},
#{transferOrderDays,jdbcType=INTEGER}, #{isMotherSku,jdbcType=INTEGER}, #{bailunSkuWarehouseCode,jdbcType=VARCHAR},
#{historySevendaySalesWalmart,jdbcType=DECIMAL}, #{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
#{historyThirtydaySalesWalmart,jdbcType=DECIMAL})
on duplicate key update
id = #{id,jdbcType=INTEGER},
purchase_advice_id = #{purchaseAdviceId,jdbcType=VARCHAR},
......@@ -2868,7 +3009,6 @@
transfer_bale_delivery_source = #{transferBaleDeliverySource,jdbcType=VARCHAR},
abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=INTEGER},
abroad_inbound_delivery_source = #{abroadInboundDeliverySource,jdbcType=VARCHAR},
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
supplementary_sales = #{supplementarySales,jdbcType=DECIMAL},
turnover_sales = #{turnoverSales,jdbcType=DECIMAL},
turnover_inbound = #{turnoverInbound,jdbcType=DECIMAL},
......@@ -2912,7 +3052,13 @@
orders_avg = #{ordersAvg,jdbcType=DECIMAL},
adv_uid = #{advUid,jdbcType=VARCHAR},
purchase_create_order_days = #{purchaseCreateOrderDays,jdbcType=INTEGER},
transfer_order_days = #{transferOrderDays,jdbcType=INTEGER}
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
transfer_order_days = #{transferOrderDays,jdbcType=INTEGER},
is_mother_sku = #{isMotherSku,jdbcType=INTEGER},
bailun_sku_warehouse_code = #{bailunSkuWarehouseCode,jdbcType=VARCHAR},
history_sevenday_sales_walmart = #{historySevendaySalesWalmart,jdbcType=DECIMAL},
history_fourteenday_sales_walmart = #{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
history_thirtyday_sales_walmart = #{historyThirtydaySalesWalmart,jdbcType=DECIMAL}
</insert>
<insert id="upsertWithBLOBs" parameterType="com.bailuntec.domain.entity.DcAutoTurnoverWithBLOBs">
<!--
......@@ -2931,7 +3077,7 @@
transfer_bale_config_delivery, abroad_inbound_config_delivery, inspection_config_delivery,
inspection_delivery, transfer_delivery, transfer_delivery_source, transfer_bale_delivery,
transfer_bale_delivery_source, abroad_inbound_delivery, abroad_inbound_delivery_source,
transfer_sail_days, supplementary_sales, turnover_sales, turnover_inbound, history_sevenday_sales,
supplementary_sales, turnover_sales, turnover_inbound, history_sevenday_sales,
history_fourteenday_sales, history_thirtyday_sales, sales_explain_details, forecast_turnoverday_sales,
stock_up_sales, quantity_begin_advise, stock_up_days, payment_before_delivery,
product_code, product_inner_code, bailun_category_id, buyer_name, suppliers_name,
......@@ -2942,8 +3088,10 @@
history_thirtyday_sales_amazon, dc_auto_sales_forecast_config_id, is_out_stock,
dc_auto_sales_forecast_stage_config_id, dc_auto_sales_forecast_title, head_transport_type,
head_transport_logistics_code, auto_replace_logistics_task_id, first_order_date,
first_order_bailun_order_id, orders_avg, adv_uid, purchase_create_order_days, transfer_order_days,
sales_details, short_supply_details, sales_details_formula)
first_order_bailun_order_id, orders_avg, adv_uid, purchase_create_order_days, transfer_sail_days,
transfer_order_days, is_mother_sku, bailun_sku_warehouse_code, history_sevenday_sales_walmart,
history_fourteenday_sales_walmart, history_thirtyday_sales_walmart, sales_details,
short_supply_details, sales_details_formula)
values
(#{id,jdbcType=INTEGER}, #{purchaseAdviceId,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{quantityInitAdvise,jdbcType=DECIMAL}, #{quantityMinimumOrder,jdbcType=INTEGER},
......@@ -2962,27 +3110,30 @@
#{inspectionDelivery,jdbcType=INTEGER}, #{transferDelivery,jdbcType=INTEGER}, #{transferDeliverySource,jdbcType=VARCHAR},
#{transferBaleDelivery,jdbcType=INTEGER}, #{transferBaleDeliverySource,jdbcType=VARCHAR},
#{abroadInboundDelivery,jdbcType=INTEGER}, #{abroadInboundDeliverySource,jdbcType=VARCHAR},
#{transferSailDays,jdbcType=INTEGER}, #{supplementarySales,jdbcType=DECIMAL}, #{turnoverSales,jdbcType=DECIMAL},
#{turnoverInbound,jdbcType=DECIMAL}, #{historySevendaySales,jdbcType=DECIMAL},
#{historyFourteendaySales,jdbcType=DECIMAL}, #{historyThirtydaySales,jdbcType=DECIMAL},
#{salesExplainDetails,jdbcType=VARCHAR}, #{forecastTurnoverdaySales,jdbcType=DECIMAL},
#{stockUpSales,jdbcType=DECIMAL}, #{quantityBeginAdvise,jdbcType=DECIMAL}, #{stockUpDays,jdbcType=INTEGER},
#{paymentBeforeDelivery,jdbcType=INTEGER}, #{productCode,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR},
#{bailunCategoryId,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR}, #{suppliersName,jdbcType=VARCHAR},
#{historySevendaySalesEbay,jdbcType=DECIMAL}, #{historyFourteendaySalesEbay,jdbcType=DECIMAL},
#{historyThirtydaySalesEbay,jdbcType=DECIMAL}, #{historySevendaySalesAliexpress,jdbcType=DECIMAL},
#{historyFourteendaySalesAliexpress,jdbcType=DECIMAL}, #{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
#{dailyWeightedSales,jdbcType=DECIMAL}, #{originalQuantityInitAdvise,jdbcType=INTEGER},
#{isModifyQuantityInitAdvise,jdbcType=INTEGER}, #{tagId,jdbcType=INTEGER}, #{hqType,jdbcType=VARCHAR},
#{historySevendaySalesAmazon,jdbcType=DECIMAL}, #{historyFourteendaySalesAmazon,jdbcType=DECIMAL},
#{historyThirtydaySalesAmazon,jdbcType=DECIMAL}, #{dcAutoSalesForecastConfigId,jdbcType=INTEGER},
#{isOutStock,jdbcType=INTEGER}, #{dcAutoSalesForecastStageConfigId,jdbcType=INTEGER},
#{dcAutoSalesForecastTitle,jdbcType=VARCHAR}, #{headTransportType,jdbcType=VARCHAR},
#{headTransportLogisticsCode,jdbcType=VARCHAR}, #{autoReplaceLogisticsTaskId,jdbcType=INTEGER},
#{firstOrderDate,jdbcType=TIMESTAMP}, #{firstOrderBailunOrderId,jdbcType=VARCHAR},
#{ordersAvg,jdbcType=DECIMAL}, #{advUid,jdbcType=VARCHAR}, #{purchaseCreateOrderDays,jdbcType=INTEGER},
#{transferOrderDays,jdbcType=INTEGER}, #{salesDetails,jdbcType=LONGVARCHAR}, #{shortSupplyDetails,jdbcType=LONGVARCHAR},
#{salesDetailsFormula,jdbcType=LONGVARCHAR})
#{supplementarySales,jdbcType=DECIMAL}, #{turnoverSales,jdbcType=DECIMAL}, #{turnoverInbound,jdbcType=DECIMAL},
#{historySevendaySales,jdbcType=DECIMAL}, #{historyFourteendaySales,jdbcType=DECIMAL},
#{historyThirtydaySales,jdbcType=DECIMAL}, #{salesExplainDetails,jdbcType=VARCHAR},
#{forecastTurnoverdaySales,jdbcType=DECIMAL}, #{stockUpSales,jdbcType=DECIMAL},
#{quantityBeginAdvise,jdbcType=DECIMAL}, #{stockUpDays,jdbcType=INTEGER}, #{paymentBeforeDelivery,jdbcType=INTEGER},
#{productCode,jdbcType=VARCHAR}, #{productInnerCode,jdbcType=VARCHAR}, #{bailunCategoryId,jdbcType=INTEGER},
#{buyerName,jdbcType=VARCHAR}, #{suppliersName,jdbcType=VARCHAR}, #{historySevendaySalesEbay,jdbcType=DECIMAL},
#{historyFourteendaySalesEbay,jdbcType=DECIMAL}, #{historyThirtydaySalesEbay,jdbcType=DECIMAL},
#{historySevendaySalesAliexpress,jdbcType=DECIMAL}, #{historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
#{historyThirtydaySalesAliexpress,jdbcType=DECIMAL}, #{dailyWeightedSales,jdbcType=DECIMAL},
#{originalQuantityInitAdvise,jdbcType=INTEGER}, #{isModifyQuantityInitAdvise,jdbcType=INTEGER},
#{tagId,jdbcType=INTEGER}, #{hqType,jdbcType=VARCHAR}, #{historySevendaySalesAmazon,jdbcType=DECIMAL},
#{historyFourteendaySalesAmazon,jdbcType=DECIMAL}, #{historyThirtydaySalesAmazon,jdbcType=DECIMAL},
#{dcAutoSalesForecastConfigId,jdbcType=INTEGER}, #{isOutStock,jdbcType=INTEGER},
#{dcAutoSalesForecastStageConfigId,jdbcType=INTEGER}, #{dcAutoSalesForecastTitle,jdbcType=VARCHAR},
#{headTransportType,jdbcType=VARCHAR}, #{headTransportLogisticsCode,jdbcType=VARCHAR},
#{autoReplaceLogisticsTaskId,jdbcType=INTEGER}, #{firstOrderDate,jdbcType=TIMESTAMP},
#{firstOrderBailunOrderId,jdbcType=VARCHAR}, #{ordersAvg,jdbcType=DECIMAL}, #{advUid,jdbcType=VARCHAR},
#{purchaseCreateOrderDays,jdbcType=INTEGER}, #{transferSailDays,jdbcType=INTEGER},
#{transferOrderDays,jdbcType=INTEGER}, #{isMotherSku,jdbcType=INTEGER}, #{bailunSkuWarehouseCode,jdbcType=VARCHAR},
#{historySevendaySalesWalmart,jdbcType=DECIMAL}, #{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
#{historyThirtydaySalesWalmart,jdbcType=DECIMAL}, #{salesDetails,jdbcType=LONGVARCHAR},
#{shortSupplyDetails,jdbcType=LONGVARCHAR}, #{salesDetailsFormula,jdbcType=LONGVARCHAR}
)
on duplicate key update
id = #{id,jdbcType=INTEGER},
purchase_advice_id = #{purchaseAdviceId,jdbcType=VARCHAR},
......@@ -3028,7 +3179,6 @@
transfer_bale_delivery_source = #{transferBaleDeliverySource,jdbcType=VARCHAR},
abroad_inbound_delivery = #{abroadInboundDelivery,jdbcType=INTEGER},
abroad_inbound_delivery_source = #{abroadInboundDeliverySource,jdbcType=VARCHAR},
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
supplementary_sales = #{supplementarySales,jdbcType=DECIMAL},
turnover_sales = #{turnoverSales,jdbcType=DECIMAL},
turnover_inbound = #{turnoverInbound,jdbcType=DECIMAL},
......@@ -3072,7 +3222,13 @@
orders_avg = #{ordersAvg,jdbcType=DECIMAL},
adv_uid = #{advUid,jdbcType=VARCHAR},
purchase_create_order_days = #{purchaseCreateOrderDays,jdbcType=INTEGER},
transfer_sail_days = #{transferSailDays,jdbcType=INTEGER},
transfer_order_days = #{transferOrderDays,jdbcType=INTEGER},
is_mother_sku = #{isMotherSku,jdbcType=INTEGER},
bailun_sku_warehouse_code = #{bailunSkuWarehouseCode,jdbcType=VARCHAR},
history_sevenday_sales_walmart = #{historySevendaySalesWalmart,jdbcType=DECIMAL},
history_fourteenday_sales_walmart = #{historyFourteendaySalesWalmart,jdbcType=DECIMAL},
history_thirtyday_sales_walmart = #{historyThirtydaySalesWalmart,jdbcType=DECIMAL},
sales_details = #{salesDetails,jdbcType=LONGVARCHAR},
short_supply_details = #{shortSupplyDetails,jdbcType=LONGVARCHAR},
sales_details_formula = #{salesDetailsFormula,jdbcType=LONGVARCHAR}
......
table-name=dc_report_profit_analysis
table-name=dc_auto_turnover
......@@ -208,7 +208,7 @@ public class AutoTurnoverJob extends PointJob {
if (!"国内仓".equals(dcBaseWarehouse.getHqType())) {
transferStrategy.set(Constant.OCEAN_HEAD);
this.autoTurnoverFromStock(queryTime, dcBaseStock);
transferStrategy.remove();
......@@ -326,6 +326,7 @@ public class AutoTurnoverJob extends PointJob {
}
dcAutoTurnover.setBailunSku(bailunSku);
dcAutoTurnover.setWarehouseCode(warehouseCode);
dcAutoTurnover.setBailunSkuWarehouseCode(bailunSku + "_" + warehouseCode);
//写入仓库名
if (dcBaseWarehouse != null) {
dcAutoTurnover.setWarehouseName(dcBaseWarehouse.getWarehouseName());
......@@ -905,6 +906,8 @@ public class AutoTurnoverJob extends PointJob {
private void calculatePlatformAvgSales(DcAutoTurnoverWithBLOBs dcAutoTurnover) {
try {
DcAutoSalesMapper mapper = SessionUtil.getSession().getMapper(DcAutoSalesMapper.class);
//ebay
SalesVolumeAvgDTO ebayAvgSales = mapper.getPlatformHistorySales(dcAutoTurnover.getBailunSku(), dcAutoTurnover.getWarehouseCode(), PlatformType.Ebay.value());
dcAutoTurnover.setHistorySevendaySalesEbay(BigDecimal.ZERO);
dcAutoTurnover.setHistoryFourteendaySalesEbay(BigDecimal.ZERO);
......@@ -915,7 +918,7 @@ public class AutoTurnoverJob extends PointJob {
dcAutoTurnover.setHistoryThirtydaySalesEbay(BigDecimal.valueOf(ebayAvgSales.getThirtydaySales()).divide(Constant.BIGDECIMAL_THIRTY, 3, RoundingMode.HALF_EVEN));
}
mapper = SessionUtil.getSession().getMapper(DcAutoSalesMapper.class);
//aliexpress
SalesVolumeAvgDTO aliexpressAvgSales = mapper.getPlatformHistorySales(dcAutoTurnover.getBailunSku(), dcAutoTurnover.getWarehouseCode(), PlatformType.Aliexpress.value());
dcAutoTurnover.setHistorySevendaySalesAliexpress(BigDecimal.ZERO);
dcAutoTurnover.setHistoryFourteendaySalesAliexpress(BigDecimal.ZERO);
......@@ -926,7 +929,7 @@ public class AutoTurnoverJob extends PointJob {
dcAutoTurnover.setHistoryThirtydaySalesAliexpress(BigDecimal.valueOf(aliexpressAvgSales.getThirtydaySales()).divide(Constant.BIGDECIMAL_THIRTY, 3, RoundingMode.HALF_EVEN));
}
mapper = SessionUtil.getSession().getMapper(DcAutoSalesMapper.class);
//amazon
SalesVolumeAvgDTO amazonAvgSales = mapper.getPlatformHistorySales(dcAutoTurnover.getBailunSku(), dcAutoTurnover.getWarehouseCode(), PlatformType.Amazon.value());
dcAutoTurnover.setHistorySevendaySalesAmazon(BigDecimal.ZERO);
dcAutoTurnover.setHistoryFourteendaySalesAmazon(BigDecimal.ZERO);
......@@ -936,6 +939,18 @@ public class AutoTurnoverJob extends PointJob {
dcAutoTurnover.setHistoryFourteendaySalesAmazon(BigDecimal.valueOf(amazonAvgSales.getFourteendaySales()).divide(Constant.BIGDECIMAL_FOURTEEN, 3, RoundingMode.HALF_EVEN));
dcAutoTurnover.setHistoryThirtydaySalesAmazon(BigDecimal.valueOf(amazonAvgSales.getThirtydaySales()).divide(Constant.BIGDECIMAL_THIRTY, 3, RoundingMode.HALF_EVEN));
}
//Walmart
SalesVolumeAvgDTO walmartAvgSales = mapper.getPlatformHistorySales(dcAutoTurnover.getBailunSku(), dcAutoTurnover.getWarehouseCode(), PlatformType.Walmart.value());
dcAutoTurnover.setHistorySevendaySalesWalmart(BigDecimal.ZERO);
dcAutoTurnover.setHistoryFourteendaySalesWalmart(BigDecimal.ZERO);
dcAutoTurnover.setHistoryThirtydaySalesWalmart(BigDecimal.ZERO);
if (walmartAvgSales != null) {
dcAutoTurnover.setHistorySevendaySalesAmazon(BigDecimal.valueOf(walmartAvgSales.getSevendaySales()).divide(Constant.BIGDECIMAL_SEVEN, 3, RoundingMode.HALF_EVEN));
dcAutoTurnover.setHistoryFourteendaySalesAmazon(BigDecimal.valueOf(walmartAvgSales.getFourteendaySales()).divide(Constant.BIGDECIMAL_FOURTEEN, 3, RoundingMode.HALF_EVEN));
dcAutoTurnover.setHistoryThirtydaySalesAmazon(BigDecimal.valueOf(walmartAvgSales.getThirtydaySales()).divide(Constant.BIGDECIMAL_THIRTY, 3, RoundingMode.HALF_EVEN));
}
} catch (Exception e) {
throw new RuntimeException("计算平台的平均销量失败", e);
} finally {
......
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