Commit 745d2414 by huluobin

# update

parent b68af3fa
...@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; ...@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.time.LocalDateTime;
@Data @Data
public class PurchaseDetailDTO { public class PurchaseDetailDTO {
...@@ -333,7 +333,7 @@ public class PurchaseDetailDTO { ...@@ -333,7 +333,7 @@ public class PurchaseDetailDTO {
private Integer payStatus; private Integer payStatus;
@JSONField(name = "lastsigntime") @JSONField(name = "lastsigntime")
private Date lastSigntime; private LocalDateTime lastSigntime;
@JSONField(name = "arrivalstatus") @JSONField(name = "arrivalstatus")
private Integer arrivalStatus; private Integer arrivalStatus;
...@@ -350,10 +350,12 @@ public class PurchaseDetailDTO { ...@@ -350,10 +350,12 @@ public class PurchaseDetailDTO {
@JSONField(name = "createusername") @JSONField(name = "createusername")
private String createusername; private String createusername;
@JSONField(name = "can_7day_refund") @JSONField(name = "can_7day_refund")
@JsonProperty("can_7day_refund") @JsonProperty("can_7day_refund")
private Integer can7dayRefund; private Integer can7dayRefund;
@JSONField(name = "arrivaldate")
private LocalDateTime arrivaldate;
} }
...@@ -87,6 +87,8 @@ public class SyncPurchaseDetailsJob extends PointJob { ...@@ -87,6 +87,8 @@ public class SyncPurchaseDetailsJob extends PointJob {
dcBasePurchaseDetails.setCreateTime(LocalDateTime.parse(purchaseDetail.getCreateTimed(), DateTimeFormatter.ofPattern("yyyy/M/d H:m:s"))); dcBasePurchaseDetails.setCreateTime(LocalDateTime.parse(purchaseDetail.getCreateTimed(), DateTimeFormatter.ofPattern("yyyy/M/d H:m:s")));
dcBasePurchaseDetails.setUpdateTime(LocalDateTime.parse(purchaseDetail.getUpdateTimed(), DateTimeFormatter.ofPattern("yyyy/M/d H:m:s"))); dcBasePurchaseDetails.setUpdateTime(LocalDateTime.parse(purchaseDetail.getUpdateTimed(), DateTimeFormatter.ofPattern("yyyy/M/d H:m:s")));
dcBasePurchaseDetails.setGmtModified(LocalDateTime.now()); dcBasePurchaseDetails.setGmtModified(LocalDateTime.now());
dcBasePurchaseDetails.setWarehouseCode(dcBasePurchaseDetails.getIsallot() == 1 ? dcBasePurchaseDetails.getWarehouseIntoCode() : dcBasePurchaseDetails.getWarehouseFromCode());
int i = mapper.updateByExampleSelective(dcBasePurchaseDetails, DcBasePurchaseDetailsExample.newAndCreateCriteria().andBailunSkuEqualTo(dcBasePurchaseDetails.getBailunSku()).andPurchaseIdEqualTo(dcBasePurchaseDetails.getPurchaseId()).example()); int i = mapper.updateByExampleSelective(dcBasePurchaseDetails, DcBasePurchaseDetailsExample.newAndCreateCriteria().andBailunSkuEqualTo(dcBasePurchaseDetails.getBailunSku()).andPurchaseIdEqualTo(dcBasePurchaseDetails.getPurchaseId()).example());
if (i == 0) { if (i == 0) {
mapper.insertSelective(dcBasePurchaseDetails); mapper.insertSelective(dcBasePurchaseDetails);
......
...@@ -475,6 +475,15 @@ public class DcBasePurchaseDetails { ...@@ -475,6 +475,15 @@ public class DcBasePurchaseDetails {
private String warehouseCode; private String warehouseCode;
/** /**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_purchase_details.arrivaldate
*
* @mbg.generated
*/
private LocalDateTime arrivaldate;
/**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_purchase_details * This method corresponds to the database table dc_base_purchase_details
* *
...@@ -538,6 +547,7 @@ public class DcBasePurchaseDetails { ...@@ -538,6 +547,7 @@ public class DcBasePurchaseDetails {
sb.append(", createusername=").append(createusername); sb.append(", createusername=").append(createusername);
sb.append(", can7dayRefund=").append(can7dayRefund); sb.append(", can7dayRefund=").append(can7dayRefund);
sb.append(", warehouseCode=").append(warehouseCode); sb.append(", warehouseCode=").append(warehouseCode);
sb.append(", arrivaldate=").append(arrivaldate);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
...@@ -611,7 +621,8 @@ public class DcBasePurchaseDetails { ...@@ -611,7 +621,8 @@ public class DcBasePurchaseDetails {
&& (this.getAmountExpress() == null ? other.getAmountExpress() == null : this.getAmountExpress().equals(other.getAmountExpress())) && (this.getAmountExpress() == null ? other.getAmountExpress() == null : this.getAmountExpress().equals(other.getAmountExpress()))
&& (this.getCreateusername() == null ? other.getCreateusername() == null : this.getCreateusername().equals(other.getCreateusername())) && (this.getCreateusername() == null ? other.getCreateusername() == null : this.getCreateusername().equals(other.getCreateusername()))
&& (this.getCan7dayRefund() == null ? other.getCan7dayRefund() == null : this.getCan7dayRefund().equals(other.getCan7dayRefund())) && (this.getCan7dayRefund() == null ? other.getCan7dayRefund() == null : this.getCan7dayRefund().equals(other.getCan7dayRefund()))
&& (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode())); && (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
&& (this.getArrivaldate() == null ? other.getArrivaldate() == null : this.getArrivaldate().equals(other.getArrivaldate()));
} }
/** /**
...@@ -676,6 +687,7 @@ public class DcBasePurchaseDetails { ...@@ -676,6 +687,7 @@ public class DcBasePurchaseDetails {
result = prime * result + ((getCreateusername() == null) ? 0 : getCreateusername().hashCode()); result = prime * result + ((getCreateusername() == null) ? 0 : getCreateusername().hashCode());
result = prime * result + ((getCan7dayRefund() == null) ? 0 : getCan7dayRefund().hashCode()); result = prime * result + ((getCan7dayRefund() == null) ? 0 : getCan7dayRefund().hashCode());
result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode()); result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
result = prime * result + ((getArrivaldate() == null) ? 0 : getArrivaldate().hashCode());
return result; return result;
} }
} }
\ No newline at end of file
...@@ -3650,6 +3650,66 @@ public class DcBasePurchaseDetailsExample { ...@@ -3650,6 +3650,66 @@ public class DcBasePurchaseDetailsExample {
addCriterion("warehouse_code not between", value1, value2, "warehouseCode"); addCriterion("warehouse_code not between", value1, value2, "warehouseCode");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andArrivaldateIsNull() {
addCriterion("arrivaldate is null");
return (Criteria) this;
}
public Criteria andArrivaldateIsNotNull() {
addCriterion("arrivaldate is not null");
return (Criteria) this;
}
public Criteria andArrivaldateEqualTo(LocalDateTime value) {
addCriterion("arrivaldate =", value, "arrivaldate");
return (Criteria) this;
}
public Criteria andArrivaldateNotEqualTo(LocalDateTime value) {
addCriterion("arrivaldate <>", value, "arrivaldate");
return (Criteria) this;
}
public Criteria andArrivaldateGreaterThan(LocalDateTime value) {
addCriterion("arrivaldate >", value, "arrivaldate");
return (Criteria) this;
}
public Criteria andArrivaldateGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("arrivaldate >=", value, "arrivaldate");
return (Criteria) this;
}
public Criteria andArrivaldateLessThan(LocalDateTime value) {
addCriterion("arrivaldate <", value, "arrivaldate");
return (Criteria) this;
}
public Criteria andArrivaldateLessThanOrEqualTo(LocalDateTime value) {
addCriterion("arrivaldate <=", value, "arrivaldate");
return (Criteria) this;
}
public Criteria andArrivaldateIn(List<LocalDateTime> values) {
addCriterion("arrivaldate in", values, "arrivaldate");
return (Criteria) this;
}
public Criteria andArrivaldateNotIn(List<LocalDateTime> values) {
addCriterion("arrivaldate not in", values, "arrivaldate");
return (Criteria) this;
}
public Criteria andArrivaldateBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("arrivaldate between", value1, value2, "arrivaldate");
return (Criteria) this;
}
public Criteria andArrivaldateNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("arrivaldate not between", value1, value2, "arrivaldate");
return (Criteria) this;
}
} }
/** /**
......
...@@ -2,9 +2,10 @@ package com.bailuntec.mapper; ...@@ -2,9 +2,10 @@ package com.bailuntec.mapper;
import com.bailuntec.domain.entity.DcBasePurchaseDetails; import com.bailuntec.domain.entity.DcBasePurchaseDetails;
import com.bailuntec.domain.example.DcBasePurchaseDetailsExample; import com.bailuntec.domain.example.DcBasePurchaseDetailsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DcBasePurchaseDetailsMapper { public interface DcBasePurchaseDetailsMapper {
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
......
...@@ -6,58 +6,59 @@ ...@@ -6,58 +6,59 @@
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 column="id" jdbcType="INTEGER" property="id"/> <id column="id" jdbcType="INTEGER" property="id" />
<result column="purchase_id" jdbcType="VARCHAR" property="purchaseId"/> <result column="purchase_id" jdbcType="VARCHAR" property="purchaseId" />
<result column="status" jdbcType="TINYINT" property="status"/> <result column="status" jdbcType="TINYINT" property="status" />
<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="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" />
<result column="warehouse_into_code" jdbcType="VARCHAR" property="warehouseIntoCode"/> <result column="warehouse_into_code" jdbcType="VARCHAR" property="warehouseIntoCode" />
<result column="warehouse_into_name" jdbcType="VARCHAR" property="warehouseIntoName"/> <result column="warehouse_into_name" jdbcType="VARCHAR" property="warehouseIntoName" />
<result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku"/> <result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku" />
<result column="quantity_purchase" jdbcType="INTEGER" property="quantityPurchase"/> <result column="quantity_purchase" jdbcType="INTEGER" property="quantityPurchase" />
<result column="unit_price" jdbcType="DECIMAL" property="unitPrice"/> <result column="unit_price" jdbcType="DECIMAL" property="unitPrice" />
<result column="amount_paid" jdbcType="DECIMAL" property="amountPaid"/> <result column="amount_paid" jdbcType="DECIMAL" property="amountPaid" />
<result column="currency_code" jdbcType="VARCHAR" property="currencyCode"/> <result column="currency_code" jdbcType="VARCHAR" property="currencyCode" />
<result column="currency_name" jdbcType="VARCHAR" property="currencyName"/> <result column="currency_name" jdbcType="VARCHAR" property="currencyName" />
<result column="quantity_return" jdbcType="INTEGER" property="quantityReturn"/> <result column="quantity_return" jdbcType="INTEGER" property="quantityReturn" />
<result column="quantity_inbound" jdbcType="INTEGER" property="quantityInbound"/> <result column="quantity_inbound" jdbcType="INTEGER" property="quantityInbound" />
<result column="quantity_deliver" jdbcType="INTEGER" property="quantityDeliver"/> <result column="quantity_deliver" jdbcType="INTEGER" property="quantityDeliver" />
<result column="quantity_not_deliver" jdbcType="INTEGER" property="quantityNotDeliver"/> <result column="quantity_not_deliver" jdbcType="INTEGER" property="quantityNotDeliver" />
<result column="quantity_arrival" jdbcType="INTEGER" property="quantityArrival"/> <result column="quantity_arrival" jdbcType="INTEGER" property="quantityArrival" />
<result column="quantity_not_arrival" jdbcType="INTEGER" property="quantityNotArrival"/> <result column="quantity_not_arrival" jdbcType="INTEGER" property="quantityNotArrival" />
<result column="quantity_inspect" jdbcType="INTEGER" property="quantityInspect"/> <result column="quantity_inspect" jdbcType="INTEGER" property="quantityInspect" />
<result column="quantity_qualified_inspect" jdbcType="INTEGER" property="quantityQualifiedInspect"/> <result column="quantity_qualified_inspect" jdbcType="INTEGER" property="quantityQualifiedInspect" />
<result column="quantity_unqualified_inspect" jdbcType="INTEGER" property="quantityUnqualifiedInspect"/> <result column="quantity_unqualified_inspect" jdbcType="INTEGER" property="quantityUnqualifiedInspect" />
<result column="quantity_wait_transfer" jdbcType="INTEGER" property="quantityWaitTransfer"/> <result column="quantity_wait_transfer" jdbcType="INTEGER" property="quantityWaitTransfer" />
<result column="quantity_exchange" jdbcType="INTEGER" property="quantityExchange"/> <result column="quantity_exchange" jdbcType="INTEGER" property="quantityExchange" />
<result column="quantity_lose_inbound" jdbcType="INTEGER" property="quantityLoseInbound"/> <result column="quantity_lose_inbound" jdbcType="INTEGER" property="quantityLoseInbound" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate"/> <result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified"/> <result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
<result column="quantity_not_inbound" jdbcType="INTEGER" property="quantityNotInbound"/> <result column="quantity_not_inbound" jdbcType="INTEGER" property="quantityNotInbound" />
<result column="alibaba_order_id" jdbcType="VARCHAR" property="alibabaOrderId"/> <result column="alibaba_order_id" jdbcType="VARCHAR" property="alibabaOrderId" />
<result column="logistics_order_id" jdbcType="VARCHAR" property="logisticsOrderId"/> <result column="logistics_order_id" jdbcType="VARCHAR" property="logisticsOrderId" />
<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="TINYINT" property="isallot"/> <result column="isallot" jdbcType="TINYINT" property="isallot" />
<result column="isaims" jdbcType="INTEGER" property="isaims"/> <result column="isaims" jdbcType="INTEGER" property="isaims" />
<result column="pay_type" jdbcType="INTEGER" property="payType"/> <result column="pay_type" jdbcType="INTEGER" property="payType" />
<result column="pay_status" jdbcType="INTEGER" property="payStatus"/> <result column="pay_status" jdbcType="INTEGER" property="payStatus" />
<result column="last_signtime" jdbcType="TIMESTAMP" property="lastSigntime"/> <result column="last_signtime" jdbcType="TIMESTAMP" property="lastSigntime" />
<result column="arrival_status" jdbcType="INTEGER" property="arrivalStatus"/> <result column="arrival_status" jdbcType="INTEGER" property="arrivalStatus" />
<result column="amount_buy" jdbcType="DECIMAL" property="amountBuy"/> <result column="amount_buy" jdbcType="DECIMAL" property="amountBuy" />
<result column="amount_payed" jdbcType="DECIMAL" property="amountPayed"/> <result column="amount_payed" jdbcType="DECIMAL" property="amountPayed" />
<result column="amount_express" jdbcType="DECIMAL" property="amountExpress"/> <result column="amount_express" jdbcType="DECIMAL" property="amountExpress" />
<result column="createusername" jdbcType="VARCHAR" property="createusername"/> <result column="createusername" jdbcType="VARCHAR" property="createusername" />
<result column="can_7day_refund" jdbcType="INTEGER" property="can7dayRefund"/> <result column="can_7day_refund" jdbcType="INTEGER" property="can7dayRefund" />
<result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode"/> <result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
<result column="arrivaldate" jdbcType="TIMESTAMP" property="arrivaldate" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
...@@ -139,7 +140,7 @@ ...@@ -139,7 +140,7 @@
gmt_create, gmt_modified, quantity_not_inbound, alibaba_order_id, logistics_order_id, gmt_create, gmt_modified, quantity_not_inbound, alibaba_order_id, logistics_order_id,
logistics_company_name, company_id, ispush, isallot, isaims, pay_type, pay_status, logistics_company_name, company_id, ispush, isallot, isaims, pay_type, pay_status,
last_signtime, arrival_status, amount_buy, amount_payed, amount_express, createusername, last_signtime, arrival_status, amount_buy, amount_payed, amount_express, createusername,
can_7day_refund, warehouse_code can_7day_refund, warehouse_code, arrivaldate
</sql> </sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultMap="BaseResultMap">
<!-- <!--
...@@ -150,10 +151,10 @@ ...@@ -150,10 +151,10 @@
<if test="distinct"> <if test="distinct">
distinct distinct
</if> </if>
<include refid="Base_Column_List"/> <include refid="Base_Column_List" />
from dc_base_purchase_details from dc_base_purchase_details
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause"/> <include refid="Example_Where_Clause" />
</if> </if>
<if test="orderByClause != null"> <if test="orderByClause != null">
order by ${orderByClause} order by ${orderByClause}
...@@ -173,7 +174,7 @@ ...@@ -173,7 +174,7 @@
This element is automatically generated by MyBatis Generator, do not modify. This element is automatically generated by MyBatis Generator, do not modify.
--> -->
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List" />
from dc_base_purchase_details from dc_base_purchase_details
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</select> </select>
...@@ -192,7 +193,7 @@ ...@@ -192,7 +193,7 @@
--> -->
delete from dc_base_purchase_details delete from dc_base_purchase_details
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause"/> <include refid="Example_Where_Clause" />
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails"> <insert id="insert" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
...@@ -218,7 +219,8 @@ ...@@ -218,7 +219,8 @@
isaims, pay_type, pay_status, isaims, pay_type, pay_status,
last_signtime, arrival_status, amount_buy, last_signtime, arrival_status, amount_buy,
amount_payed, amount_express, createusername, amount_payed, amount_express, createusername,
can_7day_refund, warehouse_code) can_7day_refund, warehouse_code, arrivaldate
)
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},
#{deliverValue,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR}, #{warehouseFromCode,jdbcType=VARCHAR}, #{deliverValue,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR}, #{warehouseFromCode,jdbcType=VARCHAR},
...@@ -237,7 +239,8 @@ ...@@ -237,7 +239,8 @@
#{isaims,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, #{payStatus,jdbcType=INTEGER}, #{isaims,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, #{payStatus,jdbcType=INTEGER},
#{lastSigntime,jdbcType=TIMESTAMP}, #{arrivalStatus,jdbcType=INTEGER}, #{amountBuy,jdbcType=DECIMAL}, #{lastSigntime,jdbcType=TIMESTAMP}, #{arrivalStatus,jdbcType=INTEGER}, #{amountBuy,jdbcType=DECIMAL},
#{amountPayed,jdbcType=DECIMAL}, #{amountExpress,jdbcType=DECIMAL}, #{createusername,jdbcType=VARCHAR}, #{amountPayed,jdbcType=DECIMAL}, #{amountExpress,jdbcType=DECIMAL}, #{createusername,jdbcType=VARCHAR},
#{can7dayRefund,jdbcType=INTEGER}, #{warehouseCode,jdbcType=VARCHAR}) #{can7dayRefund,jdbcType=INTEGER}, #{warehouseCode,jdbcType=VARCHAR}, #{arrivaldate,jdbcType=TIMESTAMP}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails"> <insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
<!-- <!--
...@@ -402,6 +405,9 @@ ...@@ -402,6 +405,9 @@
<if test="warehouseCode != null"> <if test="warehouseCode != null">
warehouse_code, warehouse_code,
</if> </if>
<if test="arrivaldate != null">
arrivaldate,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -560,6 +566,9 @@ ...@@ -560,6 +566,9 @@
<if test="warehouseCode != null"> <if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
</if> </if>
<if test="arrivaldate != null">
#{arrivaldate,jdbcType=TIMESTAMP},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultType="java.lang.Long">
...@@ -569,7 +578,7 @@ ...@@ -569,7 +578,7 @@
--> -->
select count(*) from dc_base_purchase_details select count(*) from dc_base_purchase_details
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause"/> <include refid="Example_Where_Clause" />
</if> </if>
</select> </select>
<update id="updateByExampleSelective" parameterType="map"> <update id="updateByExampleSelective" parameterType="map">
...@@ -735,9 +744,12 @@ ...@@ -735,9 +744,12 @@
<if test="record.warehouseCode != null"> <if test="record.warehouseCode != null">
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR}, warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
</if> </if>
<if test="record.arrivaldate != null">
arrivaldate = #{record.arrivaldate,jdbcType=TIMESTAMP},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByExample" parameterType="map"> <update id="updateByExample" parameterType="map">
...@@ -797,9 +809,10 @@ ...@@ -797,9 +809,10 @@
amount_express = #{record.amountExpress,jdbcType=DECIMAL}, amount_express = #{record.amountExpress,jdbcType=DECIMAL},
createusername = #{record.createusername,jdbcType=VARCHAR}, createusername = #{record.createusername,jdbcType=VARCHAR},
can_7day_refund = #{record.can7dayRefund,jdbcType=INTEGER}, can_7day_refund = #{record.can7dayRefund,jdbcType=INTEGER},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR} warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
arrivaldate = #{record.arrivaldate,jdbcType=TIMESTAMP}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause"/> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails"> <update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
...@@ -962,6 +975,9 @@ ...@@ -962,6 +975,9 @@
<if test="warehouseCode != null"> <if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR}, warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if> </if>
<if test="arrivaldate != null">
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -1021,7 +1037,8 @@ ...@@ -1021,7 +1037,8 @@
amount_express = #{amountExpress,jdbcType=DECIMAL}, amount_express = #{amountExpress,jdbcType=DECIMAL},
createusername = #{createusername,jdbcType=VARCHAR}, createusername = #{createusername,jdbcType=VARCHAR},
can_7day_refund = #{can7dayRefund,jdbcType=INTEGER}, can_7day_refund = #{can7dayRefund,jdbcType=INTEGER},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR} warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP}
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">
...@@ -1188,6 +1205,9 @@ ...@@ -1188,6 +1205,9 @@
<if test="warehouseCode != null"> <if test="warehouseCode != null">
warehouse_code, warehouse_code,
</if> </if>
<if test="arrivaldate != null">
arrivaldate,
</if>
</trim> </trim>
values values
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -1347,6 +1367,9 @@ ...@@ -1347,6 +1367,9 @@
<if test="warehouseCode != null"> <if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
</if> </if>
<if test="arrivaldate != null">
#{arrivaldate,jdbcType=TIMESTAMP},
</if>
</trim> </trim>
on duplicate key update on duplicate key update
<trim suffixOverrides=","> <trim suffixOverrides=",">
...@@ -1506,6 +1529,9 @@ ...@@ -1506,6 +1529,9 @@
<if test="warehouseCode != null"> <if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR}, warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if> </if>
<if test="arrivaldate != null">
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP},
</if>
</trim> </trim>
</insert> </insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails"> <insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
...@@ -1524,7 +1550,7 @@ ...@@ -1524,7 +1550,7 @@
update_time, gmt_create, gmt_modified, quantity_not_inbound, alibaba_order_id, update_time, gmt_create, gmt_modified, quantity_not_inbound, alibaba_order_id,
logistics_order_id, logistics_company_name, company_id, ispush, isallot, isaims, logistics_order_id, logistics_company_name, company_id, ispush, isallot, isaims,
pay_type, pay_status, last_signtime, arrival_status, amount_buy, amount_payed, pay_type, pay_status, last_signtime, arrival_status, amount_buy, amount_payed,
amount_express, createusername, can_7day_refund, warehouse_code) amount_express, createusername, can_7day_refund, warehouse_code, arrivaldate)
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},
...@@ -1544,7 +1570,8 @@ ...@@ -1544,7 +1570,8 @@
#{isaims,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, #{payStatus,jdbcType=INTEGER}, #{isaims,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, #{payStatus,jdbcType=INTEGER},
#{lastSigntime,jdbcType=TIMESTAMP}, #{arrivalStatus,jdbcType=INTEGER}, #{amountBuy,jdbcType=DECIMAL}, #{lastSigntime,jdbcType=TIMESTAMP}, #{arrivalStatus,jdbcType=INTEGER}, #{amountBuy,jdbcType=DECIMAL},
#{amountPayed,jdbcType=DECIMAL}, #{amountExpress,jdbcType=DECIMAL}, #{createusername,jdbcType=VARCHAR}, #{amountPayed,jdbcType=DECIMAL}, #{amountExpress,jdbcType=DECIMAL}, #{createusername,jdbcType=VARCHAR},
#{can7dayRefund,jdbcType=INTEGER}, #{warehouseCode,jdbcType=VARCHAR}) #{can7dayRefund,jdbcType=INTEGER}, #{warehouseCode,jdbcType=VARCHAR}, #{arrivaldate,jdbcType=TIMESTAMP}
)
on duplicate key update on duplicate key update
id = #{id,jdbcType=INTEGER}, id = #{id,jdbcType=INTEGER},
purchase_id = #{purchaseId,jdbcType=VARCHAR}, purchase_id = #{purchaseId,jdbcType=VARCHAR},
...@@ -1597,7 +1624,8 @@ ...@@ -1597,7 +1624,8 @@
amount_express = #{amountExpress,jdbcType=DECIMAL}, amount_express = #{amountExpress,jdbcType=DECIMAL},
createusername = #{createusername,jdbcType=VARCHAR}, createusername = #{createusername,jdbcType=VARCHAR},
can_7day_refund = #{can7dayRefund,jdbcType=INTEGER}, can_7day_refund = #{can7dayRefund,jdbcType=INTEGER},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR} warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP}
</insert> </insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultMap="BaseResultMap"> <select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBasePurchaseDetailsExample" resultMap="BaseResultMap">
<!-- <!--
...@@ -1606,10 +1634,10 @@ ...@@ -1606,10 +1634,10 @@
@project https://github.com/itfsw/mybatis-generator-plugin @project https://github.com/itfsw/mybatis-generator-plugin
--> -->
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List" />
from dc_base_purchase_details from dc_base_purchase_details
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause"/> <include refid="Example_Where_Clause" />
</if> </if>
<if test="orderByClause != null"> <if test="orderByClause != null">
order by ${orderByClause} order by ${orderByClause}
......
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