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
819fd504
Commit
819fd504
authored
Jan 23, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
27da6ef8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
11 deletions
+102
-11
PurchaseDetailDTO.java
...main/java/com/bailuntec/domain/dto/PurchaseDetailDTO.java
+3
-0
DcBasePurchaseDetails.java
...va/com/bailuntec/domain/entity/DcBasePurchaseDetails.java
+2
-0
DcBasePurchaseDetailsExample.java
...ailuntec/domain/example/DcBasePurchaseDetailsExample.java
+60
-0
DcBasePurchaseDetailsMapper.xml
...java/com/bailuntec/mapper/DcBasePurchaseDetailsMapper.xml
+37
-11
No files found.
data-base/base-sync-purchase-details/src/main/java/com/bailuntec/domain/dto/PurchaseDetailDTO.java
View file @
819fd504
...
...
@@ -357,5 +357,8 @@ public class PurchaseDetailDTO {
@JSONField
(
name
=
"arrivaldate"
)
private
Date
arrivaldate
;
@JSONField
(
name
=
"skudelstatus"
)
private
Integer
hasDelete
;
}
data-common/src/main/java/com/bailuntec/domain/entity/DcBasePurchaseDetails.java
View file @
819fd504
...
...
@@ -432,6 +432,8 @@ public class DcBasePurchaseDetails {
*/
private
Date
arrivaldate
;
private
Integer
hasDelete
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_purchase_details
...
...
data-common/src/main/java/com/bailuntec/domain/example/DcBasePurchaseDetailsExample.java
View file @
819fd504
...
...
@@ -3710,6 +3710,66 @@ public class DcBasePurchaseDetailsExample {
addCriterion
(
"arrivaldate not between"
,
value1
,
value2
,
"arrivaldate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteIsNull
()
{
addCriterion
(
"has_delete is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteIsNotNull
()
{
addCriterion
(
"has_delete is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteEqualTo
(
Integer
value
)
{
addCriterion
(
"has_delete ="
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteNotEqualTo
(
Integer
value
)
{
addCriterion
(
"has_delete <>"
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteGreaterThan
(
Integer
value
)
{
addCriterion
(
"has_delete >"
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"has_delete >="
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteLessThan
(
Integer
value
)
{
addCriterion
(
"has_delete <"
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"has_delete <="
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"has_delete in"
,
values
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"has_delete not in"
,
values
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"has_delete between"
,
value1
,
value2
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"has_delete not between"
,
value1
,
value2
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
}
/**
...
...
data-common/src/main/java/com/bailuntec/mapper/DcBasePurchaseDetailsMapper.xml
View file @
819fd504
...
...
@@ -59,6 +59,7 @@
<result
column=
"can_7day_refund"
jdbcType=
"INTEGER"
property=
"can7dayRefund"
/>
<result
column=
"warehouse_code"
jdbcType=
"VARCHAR"
property=
"warehouseCode"
/>
<result
column=
"arrivaldate"
jdbcType=
"TIMESTAMP"
property=
"arrivaldate"
/>
<result
column=
"has_delete"
jdbcType=
"INTEGER"
property=
"hasDelete"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
...
...
@@ -140,7 +141,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_code, arrivaldate
can_7day_refund, warehouse_code, arrivaldate
, has_delete
</sql>
<select
id=
"selectByExample"
parameterType=
"com.bailuntec.domain.example.DcBasePurchaseDetailsExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -219,8 +220,8 @@
isaims, pay_type, pay_status,
last_signtime, arrival_status, amount_buy,
amount_payed, amount_express, createusername,
can_7day_refund, warehouse_code, arrivaldate
)
can_7day_refund, warehouse_code, arrivaldate
,
has_delete
)
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},
...
...
@@ -239,8 +240,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}, #{arrivaldate,jdbcType=TIMESTAMP}
)
#{can7dayRefund,jdbcType=INTEGER}, #{warehouseCode,jdbcType=VARCHAR}, #{arrivaldate,jdbcType=TIMESTAMP}
,
#{hasDelete,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
<!--
...
...
@@ -408,6 +409,9 @@
<if
test=
"arrivaldate != null"
>
arrivaldate,
</if>
<if
test=
"hasDelete != null"
>
has_delete,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -569,6 +573,9 @@
<if
test=
"arrivaldate != null"
>
#{arrivaldate,jdbcType=TIMESTAMP},
</if>
<if
test=
"hasDelete != null"
>
#{hasDelete,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.bailuntec.domain.example.DcBasePurchaseDetailsExample"
resultType=
"java.lang.Long"
>
...
...
@@ -747,6 +754,9 @@
<if
test=
"record.arrivaldate != null"
>
arrivaldate = #{record.arrivaldate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.hasDelete != null"
>
has_delete = #{record.hasDelete,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -810,7 +820,8 @@
createusername = #{record.createusername,jdbcType=VARCHAR},
can_7day_refund = #{record.can7dayRefund,jdbcType=INTEGER},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
arrivaldate = #{record.arrivaldate,jdbcType=TIMESTAMP}
arrivaldate = #{record.arrivaldate,jdbcType=TIMESTAMP},
has_delete = #{record.hasDelete,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -978,6 +989,9 @@
<if
test=
"arrivaldate != null"
>
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP},
</if>
<if
test=
"hasDelete != null"
>
has_delete = #{hasDelete,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
...
...
@@ -1038,7 +1052,8 @@
createusername = #{createusername,jdbcType=VARCHAR},
can_7day_refund = #{can7dayRefund,jdbcType=INTEGER},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP}
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP},
has_delete = #{hasDelete,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"upsertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
...
...
@@ -1208,6 +1223,9 @@
<if
test=
"arrivaldate != null"
>
arrivaldate,
</if>
<if
test=
"hasDelete != null"
>
has_delete,
</if>
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -1370,6 +1388,9 @@
<if
test=
"arrivaldate != null"
>
#{arrivaldate,jdbcType=TIMESTAMP},
</if>
<if
test=
"hasDelete != null"
>
#{hasDelete,jdbcType=INTEGER},
</if>
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
...
...
@@ -1532,6 +1553,9 @@
<if
test=
"arrivaldate != null"
>
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP},
</if>
<if
test=
"hasDelete != null"
>
has_delete = #{hasDelete,jdbcType=INTEGER},
</if>
</trim>
</insert>
<insert
id=
"upsert"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
...
...
@@ -1550,7 +1574,8 @@
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_code, arrivaldate)
amount_express, createusername, can_7day_refund, warehouse_code, arrivaldate, has_delete
)
values
(#{id,jdbcType=INTEGER}, #{purchaseId,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{purchaseCategoryName,jdbcType=VARCHAR}, #{deliverId,jdbcType=INTEGER}, #{deliverName,jdbcType=VARCHAR},
...
...
@@ -1570,8 +1595,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}, #{arrivaldate,jdbcType=TIMESTAMP}
)
#{can7dayRefund,jdbcType=INTEGER}, #{warehouseCode,jdbcType=VARCHAR}, #{arrivaldate,jdbcType=TIMESTAMP}
,
#{hasDelete,jdbcType=INTEGER}
)
on duplicate key update
id = #{id,jdbcType=INTEGER},
purchase_id = #{purchaseId,jdbcType=VARCHAR},
...
...
@@ -1625,7 +1650,8 @@
createusername = #{createusername,jdbcType=VARCHAR},
can_7day_refund = #{can7dayRefund,jdbcType=INTEGER},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP}
arrivaldate = #{arrivaldate,jdbcType=TIMESTAMP},
has_delete = #{hasDelete,jdbcType=INTEGER}
</insert>
<select
id=
"selectOneByExample"
parameterType=
"com.bailuntec.domain.example.DcBasePurchaseDetailsExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
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