Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
dc-java
Commits
745d2414
Commit
745d2414
authored
Jan 23, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
b68af3fa
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
180 additions
and
74 deletions
+180
-74
PurchaseDetailDTO.java
...main/java/com/bailuntec/domain/dto/PurchaseDetailDTO.java
+5
-3
SyncPurchaseDetailsJob.java
...c/main/java/com/bailuntec/job/SyncPurchaseDetailsJob.java
+2
-0
DcBasePurchaseDetails.java
...va/com/bailuntec/domain/entity/DcBasePurchaseDetails.java
+14
-1
DcBasePurchaseDetailsExample.java
...ailuntec/domain/example/DcBasePurchaseDetailsExample.java
+60
-0
DcBasePurchaseDetailsMapper.java
...ava/com/bailuntec/mapper/DcBasePurchaseDetailsMapper.java
+2
-1
DcBasePurchaseDetailsMapper.xml
...java/com/bailuntec/mapper/DcBasePurchaseDetailsMapper.xml
+97
-69
No files found.
data-base/base-sync-purchase-details/src/main/java/com/bailuntec/domain/dto/PurchaseDetailDTO.java
View file @
745d2414
...
...
@@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.
util.Dat
e
;
import
java.
time.LocalDateTim
e
;
@Data
public
class
PurchaseDetailDTO
{
...
...
@@ -333,7 +333,7 @@ public class PurchaseDetailDTO {
private
Integer
payStatus
;
@JSONField
(
name
=
"lastsigntime"
)
private
Dat
e
lastSigntime
;
private
LocalDateTim
e
lastSigntime
;
@JSONField
(
name
=
"arrivalstatus"
)
private
Integer
arrivalStatus
;
...
...
@@ -350,10 +350,12 @@ public class PurchaseDetailDTO {
@JSONField
(
name
=
"createusername"
)
private
String
createusername
;
@JSONField
(
name
=
"can_7day_refund"
)
@JsonProperty
(
"can_7day_refund"
)
private
Integer
can7dayRefund
;
@JSONField
(
name
=
"arrivaldate"
)
private
LocalDateTime
arrivaldate
;
}
data-base/base-sync-purchase-details/src/main/java/com/bailuntec/job/SyncPurchaseDetailsJob.java
View file @
745d2414
...
...
@@ -87,6 +87,8 @@ public class SyncPurchaseDetailsJob extends PointJob {
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
.
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
());
if
(
i
==
0
)
{
mapper
.
insertSelective
(
dcBasePurchaseDetails
);
...
...
data-common/src/main/java/com/bailuntec/domain/entity/DcBasePurchaseDetails.java
View file @
745d2414
...
...
@@ -475,6 +475,15 @@ public class DcBasePurchaseDetails {
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 corresponds to the database table dc_base_purchase_details
*
...
...
@@ -538,6 +547,7 @@ public class DcBasePurchaseDetails {
sb
.
append
(
", createusername="
).
append
(
createusername
);
sb
.
append
(
", can7dayRefund="
).
append
(
can7dayRefund
);
sb
.
append
(
", warehouseCode="
).
append
(
warehouseCode
);
sb
.
append
(
", arrivaldate="
).
append
(
arrivaldate
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
...
...
@@ -611,7 +621,8 @@ public class DcBasePurchaseDetails {
&&
(
this
.
getAmountExpress
()
==
null
?
other
.
getAmountExpress
()
==
null
:
this
.
getAmountExpress
().
equals
(
other
.
getAmountExpress
()))
&&
(
this
.
getCreateusername
()
==
null
?
other
.
getCreateusername
()
==
null
:
this
.
getCreateusername
().
equals
(
other
.
getCreateusername
()))
&&
(
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 {
result
=
prime
*
result
+
((
getCreateusername
()
==
null
)
?
0
:
getCreateusername
().
hashCode
());
result
=
prime
*
result
+
((
getCan7dayRefund
()
==
null
)
?
0
:
getCan7dayRefund
().
hashCode
());
result
=
prime
*
result
+
((
getWarehouseCode
()
==
null
)
?
0
:
getWarehouseCode
().
hashCode
());
result
=
prime
*
result
+
((
getArrivaldate
()
==
null
)
?
0
:
getArrivaldate
().
hashCode
());
return
result
;
}
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/domain/example/DcBasePurchaseDetailsExample.java
View file @
745d2414
...
...
@@ -3650,6 +3650,66 @@ public class DcBasePurchaseDetailsExample {
addCriterion
(
"warehouse_code not between"
,
value1
,
value2
,
"warehouseCode"
);
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
;
}
}
/**
...
...
data-common/src/main/java/com/bailuntec/mapper/DcBasePurchaseDetailsMapper.java
View file @
745d2414
...
...
@@ -2,9 +2,10 @@ package com.bailuntec.mapper;
import
com.bailuntec.domain.entity.DcBasePurchaseDetails
;
import
com.bailuntec.domain.example.DcBasePurchaseDetailsExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
DcBasePurchaseDetailsMapper
{
/**
* This method was generated by MyBatis Generator.
...
...
data-common/src/main/java/com/bailuntec/mapper/DcBasePurchaseDetailsMapper.xml
View file @
745d2414
...
...
@@ -6,58 +6,59 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"purchase_id"
jdbcType=
"VARCHAR"
property=
"purchaseId"
/>
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"purchase_category_name"
jdbcType=
"VARCHAR"
property=
"purchaseCategoryName"
/>
<result
column=
"deliver_id"
jdbcType=
"INTEGER"
property=
"deliverId"
/>
<result
column=
"deliver_name"
jdbcType=
"VARCHAR"
property=
"deliverName"
/>
<result
column=
"deliver_value"
jdbcType=
"INTEGER"
property=
"deliverValue"
/>
<result
column=
"buyer_name"
jdbcType=
"VARCHAR"
property=
"buyerName"
/>
<result
column=
"warehouse_from_code"
jdbcType=
"VARCHAR"
property=
"warehouseFromCode"
/>
<result
column=
"warehouse_from_name"
jdbcType=
"VARCHAR"
property=
"warehouseFromName"
/>
<result
column=
"warehouse_into_code"
jdbcType=
"VARCHAR"
property=
"warehouseIntoCode"
/>
<result
column=
"warehouse_into_name"
jdbcType=
"VARCHAR"
property=
"warehouseIntoName"
/>
<result
column=
"bailun_sku"
jdbcType=
"VARCHAR"
property=
"bailunSku"
/>
<result
column=
"quantity_purchase"
jdbcType=
"INTEGER"
property=
"quantityPurchase"
/>
<result
column=
"unit_price"
jdbcType=
"DECIMAL"
property=
"unitPrice"
/>
<result
column=
"amount_paid"
jdbcType=
"DECIMAL"
property=
"amountPaid"
/>
<result
column=
"currency_code"
jdbcType=
"VARCHAR"
property=
"currencyCode"
/>
<result
column=
"currency_name"
jdbcType=
"VARCHAR"
property=
"currencyName"
/>
<result
column=
"quantity_return"
jdbcType=
"INTEGER"
property=
"quantityReturn"
/>
<result
column=
"quantity_inbound"
jdbcType=
"INTEGER"
property=
"quantityInbound"
/>
<result
column=
"quantity_deliver"
jdbcType=
"INTEGER"
property=
"quantityDeliver"
/>
<result
column=
"quantity_not_deliver"
jdbcType=
"INTEGER"
property=
"quantityNotDeliver"
/>
<result
column=
"quantity_arrival"
jdbcType=
"INTEGER"
property=
"quantityArrival"
/>
<result
column=
"quantity_not_arrival"
jdbcType=
"INTEGER"
property=
"quantityNotArrival"
/>
<result
column=
"quantity_inspect"
jdbcType=
"INTEGER"
property=
"quantityInspect"
/>
<result
column=
"quantity_qualified_inspect"
jdbcType=
"INTEGER"
property=
"quantityQualifiedInspect"
/>
<result
column=
"quantity_unqualified_inspect"
jdbcType=
"INTEGER"
property=
"quantityUnqualifiedInspect"
/>
<result
column=
"quantity_wait_transfer"
jdbcType=
"INTEGER"
property=
"quantityWaitTransfer"
/>
<result
column=
"quantity_exchange"
jdbcType=
"INTEGER"
property=
"quantityExchange"
/>
<result
column=
"quantity_lose_inbound"
jdbcType=
"INTEGER"
property=
"quantityLoseInbound"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"gmt_create"
jdbcType=
"TIMESTAMP"
property=
"gmtCreate"
/>
<result
column=
"gmt_modified"
jdbcType=
"TIMESTAMP"
property=
"gmtModified"
/>
<result
column=
"quantity_not_inbound"
jdbcType=
"INTEGER"
property=
"quantityNotInbound"
/>
<result
column=
"alibaba_order_id"
jdbcType=
"VARCHAR"
property=
"alibabaOrderId"
/>
<result
column=
"logistics_order_id"
jdbcType=
"VARCHAR"
property=
"logisticsOrderId"
/>
<result
column=
"logistics_company_name"
jdbcType=
"VARCHAR"
property=
"logisticsCompanyName"
/>
<result
column=
"company_id"
jdbcType=
"INTEGER"
property=
"companyId"
/>
<result
column=
"ispush"
jdbcType=
"INTEGER"
property=
"ispush"
/>
<result
column=
"isallot"
jdbcType=
"TINYINT"
property=
"isallot"
/>
<result
column=
"isaims"
jdbcType=
"INTEGER"
property=
"isaims"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_status"
jdbcType=
"INTEGER"
property=
"payStatus"
/>
<result
column=
"last_signtime"
jdbcType=
"TIMESTAMP"
property=
"lastSigntime"
/>
<result
column=
"arrival_status"
jdbcType=
"INTEGER"
property=
"arrivalStatus"
/>
<result
column=
"amount_buy"
jdbcType=
"DECIMAL"
property=
"amountBuy"
/>
<result
column=
"amount_payed"
jdbcType=
"DECIMAL"
property=
"amountPayed"
/>
<result
column=
"amount_express"
jdbcType=
"DECIMAL"
property=
"amountExpress"
/>
<result
column=
"createusername"
jdbcType=
"VARCHAR"
property=
"createusername"
/>
<result
column=
"can_7day_refund"
jdbcType=
"INTEGER"
property=
"can7dayRefund"
/>
<result
column=
"warehouse_code"
jdbcType=
"VARCHAR"
property=
"warehouseCode"
/>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"purchase_id"
jdbcType=
"VARCHAR"
property=
"purchaseId"
/>
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"purchase_category_name"
jdbcType=
"VARCHAR"
property=
"purchaseCategoryName"
/>
<result
column=
"deliver_id"
jdbcType=
"INTEGER"
property=
"deliverId"
/>
<result
column=
"deliver_name"
jdbcType=
"VARCHAR"
property=
"deliverName"
/>
<result
column=
"deliver_value"
jdbcType=
"INTEGER"
property=
"deliverValue"
/>
<result
column=
"buyer_name"
jdbcType=
"VARCHAR"
property=
"buyerName"
/>
<result
column=
"warehouse_from_code"
jdbcType=
"VARCHAR"
property=
"warehouseFromCode"
/>
<result
column=
"warehouse_from_name"
jdbcType=
"VARCHAR"
property=
"warehouseFromName"
/>
<result
column=
"warehouse_into_code"
jdbcType=
"VARCHAR"
property=
"warehouseIntoCode"
/>
<result
column=
"warehouse_into_name"
jdbcType=
"VARCHAR"
property=
"warehouseIntoName"
/>
<result
column=
"bailun_sku"
jdbcType=
"VARCHAR"
property=
"bailunSku"
/>
<result
column=
"quantity_purchase"
jdbcType=
"INTEGER"
property=
"quantityPurchase"
/>
<result
column=
"unit_price"
jdbcType=
"DECIMAL"
property=
"unitPrice"
/>
<result
column=
"amount_paid"
jdbcType=
"DECIMAL"
property=
"amountPaid"
/>
<result
column=
"currency_code"
jdbcType=
"VARCHAR"
property=
"currencyCode"
/>
<result
column=
"currency_name"
jdbcType=
"VARCHAR"
property=
"currencyName"
/>
<result
column=
"quantity_return"
jdbcType=
"INTEGER"
property=
"quantityReturn"
/>
<result
column=
"quantity_inbound"
jdbcType=
"INTEGER"
property=
"quantityInbound"
/>
<result
column=
"quantity_deliver"
jdbcType=
"INTEGER"
property=
"quantityDeliver"
/>
<result
column=
"quantity_not_deliver"
jdbcType=
"INTEGER"
property=
"quantityNotDeliver"
/>
<result
column=
"quantity_arrival"
jdbcType=
"INTEGER"
property=
"quantityArrival"
/>
<result
column=
"quantity_not_arrival"
jdbcType=
"INTEGER"
property=
"quantityNotArrival"
/>
<result
column=
"quantity_inspect"
jdbcType=
"INTEGER"
property=
"quantityInspect"
/>
<result
column=
"quantity_qualified_inspect"
jdbcType=
"INTEGER"
property=
"quantityQualifiedInspect"
/>
<result
column=
"quantity_unqualified_inspect"
jdbcType=
"INTEGER"
property=
"quantityUnqualifiedInspect"
/>
<result
column=
"quantity_wait_transfer"
jdbcType=
"INTEGER"
property=
"quantityWaitTransfer"
/>
<result
column=
"quantity_exchange"
jdbcType=
"INTEGER"
property=
"quantityExchange"
/>
<result
column=
"quantity_lose_inbound"
jdbcType=
"INTEGER"
property=
"quantityLoseInbound"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"gmt_create"
jdbcType=
"TIMESTAMP"
property=
"gmtCreate"
/>
<result
column=
"gmt_modified"
jdbcType=
"TIMESTAMP"
property=
"gmtModified"
/>
<result
column=
"quantity_not_inbound"
jdbcType=
"INTEGER"
property=
"quantityNotInbound"
/>
<result
column=
"alibaba_order_id"
jdbcType=
"VARCHAR"
property=
"alibabaOrderId"
/>
<result
column=
"logistics_order_id"
jdbcType=
"VARCHAR"
property=
"logisticsOrderId"
/>
<result
column=
"logistics_company_name"
jdbcType=
"VARCHAR"
property=
"logisticsCompanyName"
/>
<result
column=
"company_id"
jdbcType=
"INTEGER"
property=
"companyId"
/>
<result
column=
"ispush"
jdbcType=
"INTEGER"
property=
"ispush"
/>
<result
column=
"isallot"
jdbcType=
"TINYINT"
property=
"isallot"
/>
<result
column=
"isaims"
jdbcType=
"INTEGER"
property=
"isaims"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_status"
jdbcType=
"INTEGER"
property=
"payStatus"
/>
<result
column=
"last_signtime"
jdbcType=
"TIMESTAMP"
property=
"lastSigntime"
/>
<result
column=
"arrival_status"
jdbcType=
"INTEGER"
property=
"arrivalStatus"
/>
<result
column=
"amount_buy"
jdbcType=
"DECIMAL"
property=
"amountBuy"
/>
<result
column=
"amount_payed"
jdbcType=
"DECIMAL"
property=
"amountPayed"
/>
<result
column=
"amount_express"
jdbcType=
"DECIMAL"
property=
"amountExpress"
/>
<result
column=
"createusername"
jdbcType=
"VARCHAR"
property=
"createusername"
/>
<result
column=
"can_7day_refund"
jdbcType=
"INTEGER"
property=
"can7dayRefund"
/>
<result
column=
"warehouse_code"
jdbcType=
"VARCHAR"
property=
"warehouseCode"
/>
<result
column=
"arrivaldate"
jdbcType=
"TIMESTAMP"
property=
"arrivaldate"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
...
...
@@ -139,7 +140,7 @@
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,
last_signtime, arrival_status, amount_buy, amount_payed, amount_express, createusername,
can_7day_refund, warehouse_cod
e
can_7day_refund, warehouse_code, arrivaldat
e
</sql>
<select
id=
"selectByExample"
parameterType=
"com.bailuntec.domain.example.DcBasePurchaseDetailsExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -150,10 +151,10 @@
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from dc_base_purchase_details
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
...
...
@@ -173,7 +174,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from dc_base_purchase_details
where id = #{id,jdbcType=INTEGER}
</select>
...
...
@@ -192,7 +193,7 @@
-->
delete from dc_base_purchase_details
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
...
...
@@ -218,7 +219,8 @@
isaims, pay_type, pay_status,
last_signtime, arrival_status, amount_buy,
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},
#{purchaseCategoryName,jdbcType=VARCHAR}, #{deliverId,jdbcType=INTEGER}, #{deliverName,jdbcType=VARCHAR},
#{deliverValue,jdbcType=INTEGER}, #{buyerName,jdbcType=VARCHAR}, #{warehouseFromCode,jdbcType=VARCHAR},
...
...
@@ -237,7 +239,8 @@
#{isaims,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, #{payStatus,jdbcType=INTEGER},
#{lastSigntime,jdbcType=TIMESTAMP}, #{arrivalStatus,jdbcType=INTEGER}, #{amountBuy,jdbcType=DECIMAL},
#{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
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
<!--
...
...
@@ -402,6 +405,9 @@
<if
test=
"warehouseCode != null"
>
warehouse_code,
</if>
<if
test=
"arrivaldate != null"
>
arrivaldate,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -560,6 +566,9 @@
<if
test=
"warehouseCode != null"
>
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if
test=
"arrivaldate != null"
>
#{arrivaldate,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.bailuntec.domain.example.DcBasePurchaseDetailsExample"
resultType=
"java.lang.Long"
>
...
...
@@ -569,7 +578,7 @@
-->
select count(*) from dc_base_purchase_details
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
...
...
@@ -735,9 +744,12 @@
<if
test=
"record.warehouseCode != null"
>
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.arrivaldate != null"
>
arrivaldate = #{record.arrivaldate,jdbcType=TIMESTAMP},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
...
...
@@ -797,9 +809,10 @@
amount_express = #{record.amountExpress,jdbcType=DECIMAL},
createusername = #{record.createusername,jdbcType=VARCHAR},
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"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
...
...
@@ -962,6 +975,9 @@
<if
test=
"warehouseCode != null"
>
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if
test=
"arrivaldate != null"
>
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
...
...
@@ -1021,7 +1037,8 @@
amount_express = #{amountExpress,jdbcType=DECIMAL},
createusername = #{createusername,jdbcType=VARCHAR},
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}
</update>
<insert
id=
"upsertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
...
...
@@ -1188,6 +1205,9 @@
<if
test=
"warehouseCode != null"
>
warehouse_code,
</if>
<if
test=
"arrivaldate != null"
>
arrivaldate,
</if>
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -1347,6 +1367,9 @@
<if
test=
"warehouseCode != null"
>
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if
test=
"arrivaldate != null"
>
#{arrivaldate,jdbcType=TIMESTAMP},
</if>
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
...
...
@@ -1506,6 +1529,9 @@
<if
test=
"warehouseCode != null"
>
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if
test=
"arrivaldate != null"
>
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<insert
id=
"upsert"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
...
...
@@ -1524,7 +1550,7 @@
update_time, 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, last_signtime, arrival_status, amount_buy, amount_payed,
amount_express, createusername, can_7day_refund, warehouse_cod
e)
amount_express, createusername, can_7day_refund, warehouse_code, arrivaldat
e)
values
(#{id,jdbcType=INTEGER}, #{purchaseId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{purchaseCategoryName,jdbcType=VARCHAR}, #{deliverId,jdbcType=INTEGER}, #{deliverName,jdbcType=VARCHAR},
...
...
@@ -1544,7 +1570,8 @@
#{isaims,jdbcType=INTEGER}, #{payType,jdbcType=INTEGER}, #{payStatus,jdbcType=INTEGER},
#{lastSigntime,jdbcType=TIMESTAMP}, #{arrivalStatus,jdbcType=INTEGER}, #{amountBuy,jdbcType=DECIMAL},
#{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
id = #{id,jdbcType=INTEGER},
purchase_id = #{purchaseId,jdbcType=VARCHAR},
...
...
@@ -1597,7 +1624,8 @@
amount_express = #{amountExpress,jdbcType=DECIMAL},
createusername = #{createusername,jdbcType=VARCHAR},
can_7day_refund = #{can7dayRefund,jdbcType=INTEGER},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR}
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP}
</insert>
<select
id=
"selectOneByExample"
parameterType=
"com.bailuntec.domain.example.DcBasePurchaseDetailsExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -1606,10 +1634,10 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from dc_base_purchase_details
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment