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
bltdc
dc-java
Commits
10f8b6e2
Commit
10f8b6e2
authored
Aug 09, 2019
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周转新增速卖通历史销量
parent
4e030aaf
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
324 additions
and
11 deletions
+324
-11
DcAutoTurnover.java
...main/java/com/bailuntec/domain/entity/DcAutoTurnover.java
+36
-0
DcAutoTurnoverExample.java
...a/com/bailuntec/domain/example/DcAutoTurnoverExample.java
+180
-0
DcAutoTurnoverMapper.xml
...c/main/java/com/bailuntec/mapper/DcAutoTurnoverMapper.xml
+91
-11
AutoTurnoverJob.java
...over/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
+17
-0
No files found.
data-common/src/main/java/com/bailuntec/domain/entity/DcAutoTurnover.java
View file @
10f8b6e2
...
...
@@ -577,6 +577,33 @@ public class DcAutoTurnover {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.history_sevenday_sales_aliexpress
*
* @mbg.generated
*/
private
BigDecimal
historySevendaySalesAliexpress
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.history_fourteenday_sales_aliexpress
*
* @mbg.generated
*/
private
BigDecimal
historyFourteendaySalesAliexpress
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.history_thirtyday_sales_aliexpress
*
* @mbg.generated
*/
private
BigDecimal
historyThirtydaySalesAliexpress
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_auto_turnover.daily_weighted_sales
*
* @mbg.generated
...
...
@@ -685,6 +712,9 @@ public class DcAutoTurnover {
sb
.
append
(
", historySevendaySalesEbay="
).
append
(
historySevendaySalesEbay
);
sb
.
append
(
", historyFourteendaySalesEbay="
).
append
(
historyFourteendaySalesEbay
);
sb
.
append
(
", historyThirtydaySalesEbay="
).
append
(
historyThirtydaySalesEbay
);
sb
.
append
(
", historySevendaySalesAliexpress="
).
append
(
historySevendaySalesAliexpress
);
sb
.
append
(
", historyFourteendaySalesAliexpress="
).
append
(
historyFourteendaySalesAliexpress
);
sb
.
append
(
", historyThirtydaySalesAliexpress="
).
append
(
historyThirtydaySalesAliexpress
);
sb
.
append
(
", dailyWeightedSales="
).
append
(
dailyWeightedSales
);
sb
.
append
(
", originalQuantityInitAdvise="
).
append
(
originalQuantityInitAdvise
);
sb
.
append
(
", isModifyQuantityInitAdvise="
).
append
(
isModifyQuantityInitAdvise
);
...
...
@@ -774,6 +804,9 @@ public class DcAutoTurnover {
&&
(
this
.
getHistorySevendaySalesEbay
()
==
null
?
other
.
getHistorySevendaySalesEbay
()
==
null
:
this
.
getHistorySevendaySalesEbay
().
equals
(
other
.
getHistorySevendaySalesEbay
()))
&&
(
this
.
getHistoryFourteendaySalesEbay
()
==
null
?
other
.
getHistoryFourteendaySalesEbay
()
==
null
:
this
.
getHistoryFourteendaySalesEbay
().
equals
(
other
.
getHistoryFourteendaySalesEbay
()))
&&
(
this
.
getHistoryThirtydaySalesEbay
()
==
null
?
other
.
getHistoryThirtydaySalesEbay
()
==
null
:
this
.
getHistoryThirtydaySalesEbay
().
equals
(
other
.
getHistoryThirtydaySalesEbay
()))
&&
(
this
.
getHistorySevendaySalesAliexpress
()
==
null
?
other
.
getHistorySevendaySalesAliexpress
()
==
null
:
this
.
getHistorySevendaySalesAliexpress
().
equals
(
other
.
getHistorySevendaySalesAliexpress
()))
&&
(
this
.
getHistoryFourteendaySalesAliexpress
()
==
null
?
other
.
getHistoryFourteendaySalesAliexpress
()
==
null
:
this
.
getHistoryFourteendaySalesAliexpress
().
equals
(
other
.
getHistoryFourteendaySalesAliexpress
()))
&&
(
this
.
getHistoryThirtydaySalesAliexpress
()
==
null
?
other
.
getHistoryThirtydaySalesAliexpress
()
==
null
:
this
.
getHistoryThirtydaySalesAliexpress
().
equals
(
other
.
getHistoryThirtydaySalesAliexpress
()))
&&
(
this
.
getDailyWeightedSales
()
==
null
?
other
.
getDailyWeightedSales
()
==
null
:
this
.
getDailyWeightedSales
().
equals
(
other
.
getDailyWeightedSales
()))
&&
(
this
.
getOriginalQuantityInitAdvise
()
==
null
?
other
.
getOriginalQuantityInitAdvise
()
==
null
:
this
.
getOriginalQuantityInitAdvise
().
equals
(
other
.
getOriginalQuantityInitAdvise
()))
&&
(
this
.
getIsModifyQuantityInitAdvise
()
==
null
?
other
.
getIsModifyQuantityInitAdvise
()
==
null
:
this
.
getIsModifyQuantityInitAdvise
().
equals
(
other
.
getIsModifyQuantityInitAdvise
()))
...
...
@@ -853,6 +886,9 @@ public class DcAutoTurnover {
result
=
prime
*
result
+
((
getHistorySevendaySalesEbay
()
==
null
)
?
0
:
getHistorySevendaySalesEbay
().
hashCode
());
result
=
prime
*
result
+
((
getHistoryFourteendaySalesEbay
()
==
null
)
?
0
:
getHistoryFourteendaySalesEbay
().
hashCode
());
result
=
prime
*
result
+
((
getHistoryThirtydaySalesEbay
()
==
null
)
?
0
:
getHistoryThirtydaySalesEbay
().
hashCode
());
result
=
prime
*
result
+
((
getHistorySevendaySalesAliexpress
()
==
null
)
?
0
:
getHistorySevendaySalesAliexpress
().
hashCode
());
result
=
prime
*
result
+
((
getHistoryFourteendaySalesAliexpress
()
==
null
)
?
0
:
getHistoryFourteendaySalesAliexpress
().
hashCode
());
result
=
prime
*
result
+
((
getHistoryThirtydaySalesAliexpress
()
==
null
)
?
0
:
getHistoryThirtydaySalesAliexpress
().
hashCode
());
result
=
prime
*
result
+
((
getDailyWeightedSales
()
==
null
)
?
0
:
getDailyWeightedSales
().
hashCode
());
result
=
prime
*
result
+
((
getOriginalQuantityInitAdvise
()
==
null
)
?
0
:
getOriginalQuantityInitAdvise
().
hashCode
());
result
=
prime
*
result
+
((
getIsModifyQuantityInitAdvise
()
==
null
)
?
0
:
getIsModifyQuantityInitAdvise
().
hashCode
());
...
...
data-common/src/main/java/com/bailuntec/domain/example/DcAutoTurnoverExample.java
View file @
10f8b6e2
...
...
@@ -4321,6 +4321,186 @@ public class DcAutoTurnoverExample {
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressIsNull
()
{
addCriterion
(
"history_sevenday_sales_aliexpress is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressIsNotNull
()
{
addCriterion
(
"history_sevenday_sales_aliexpress is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_sevenday_sales_aliexpress ="
,
value
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_sevenday_sales_aliexpress <>"
,
value
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"history_sevenday_sales_aliexpress >"
,
value
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_sevenday_sales_aliexpress >="
,
value
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressLessThan
(
BigDecimal
value
)
{
addCriterion
(
"history_sevenday_sales_aliexpress <"
,
value
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_sevenday_sales_aliexpress <="
,
value
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"history_sevenday_sales_aliexpress in"
,
values
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"history_sevenday_sales_aliexpress not in"
,
values
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"history_sevenday_sales_aliexpress between"
,
value1
,
value2
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistorySevendaySalesAliexpressNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"history_sevenday_sales_aliexpress not between"
,
value1
,
value2
,
"historySevendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressIsNull
()
{
addCriterion
(
"history_fourteenday_sales_aliexpress is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressIsNotNull
()
{
addCriterion
(
"history_fourteenday_sales_aliexpress is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress ="
,
value
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress <>"
,
value
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress >"
,
value
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress >="
,
value
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressLessThan
(
BigDecimal
value
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress <"
,
value
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress <="
,
value
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress in"
,
values
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress not in"
,
values
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress between"
,
value1
,
value2
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryFourteendaySalesAliexpressNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"history_fourteenday_sales_aliexpress not between"
,
value1
,
value2
,
"historyFourteendaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressIsNull
()
{
addCriterion
(
"history_thirtyday_sales_aliexpress is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressIsNotNull
()
{
addCriterion
(
"history_thirtyday_sales_aliexpress is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress ="
,
value
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress <>"
,
value
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress >"
,
value
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress >="
,
value
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressLessThan
(
BigDecimal
value
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress <"
,
value
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress <="
,
value
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress in"
,
values
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress not in"
,
values
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress between"
,
value1
,
value2
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHistoryThirtydaySalesAliexpressNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"history_thirtyday_sales_aliexpress not between"
,
value1
,
value2
,
"historyThirtydaySalesAliexpress"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDailyWeightedSalesIsNull
()
{
addCriterion
(
"daily_weighted_sales is null"
);
return
(
Criteria
)
this
;
...
...
data-common/src/main/java/com/bailuntec/mapper/DcAutoTurnoverMapper.xml
View file @
10f8b6e2
...
...
@@ -69,6 +69,9 @@
<result
column=
"history_sevenday_sales_ebay"
jdbcType=
"DECIMAL"
property=
"historySevendaySalesEbay"
/>
<result
column=
"history_fourteenday_sales_ebay"
jdbcType=
"DECIMAL"
property=
"historyFourteendaySalesEbay"
/>
<result
column=
"history_thirtyday_sales_ebay"
jdbcType=
"DECIMAL"
property=
"historyThirtydaySalesEbay"
/>
<result
column=
"history_sevenday_sales_aliexpress"
jdbcType=
"DECIMAL"
property=
"historySevendaySalesAliexpress"
/>
<result
column=
"history_fourteenday_sales_aliexpress"
jdbcType=
"DECIMAL"
property=
"historyFourteendaySalesAliexpress"
/>
<result
column=
"history_thirtyday_sales_aliexpress"
jdbcType=
"DECIMAL"
property=
"historyThirtydaySalesAliexpress"
/>
<result
column=
"daily_weighted_sales"
jdbcType=
"DECIMAL"
property=
"dailyWeightedSales"
/>
<result
column=
"original_quantity_init_advise"
jdbcType=
"INTEGER"
property=
"originalQuantityInitAdvise"
/>
<result
column=
"is_modify_quantity_init_advise"
jdbcType=
"INTEGER"
property=
"isModifyQuantityInitAdvise"
/>
...
...
@@ -158,7 +161,8 @@
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, daily_weighted_sales, original_quantity_init_advise,
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
</sql>
<select
id=
"selectByExample"
parameterType=
"com.bailuntec.domain.example.DcAutoTurnoverExample"
resultMap=
"BaseResultMap"
>
...
...
@@ -244,9 +248,10 @@
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, daily_weighted_sales,
original_quantity_init_advise, is_modify_quantity_init_advise,
tag_id)
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)
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},
...
...
@@ -271,9 +276,10 @@
#{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}, #{dailyWeightedSales,jdbcType=DECIMAL},
#{originalQuantityInitAdvise,jdbcType=INTEGER}, #{isModifyQuantityInitAdvise,jdbcType=INTEGER},
#{tagId,jdbcType=INTEGER})
#{historyThirtydaySalesEbay,jdbcType=DECIMAL}, #{historySevendaySalesAliexpress,jdbcType=DECIMAL},
#{historyFourteendaySalesAliexpress,jdbcType=DECIMAL}, #{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
#{dailyWeightedSales,jdbcType=DECIMAL}, #{originalQuantityInitAdvise,jdbcType=INTEGER},
#{isModifyQuantityInitAdvise,jdbcType=INTEGER}, #{tagId,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcAutoTurnover"
>
<!--
...
...
@@ -471,6 +477,15 @@
<if
test=
"historyThirtydaySalesEbay != null"
>
history_thirtyday_sales_ebay,
</if>
<if
test=
"historySevendaySalesAliexpress != null"
>
history_sevenday_sales_aliexpress,
</if>
<if
test=
"historyFourteendaySalesAliexpress != null"
>
history_fourteenday_sales_aliexpress,
</if>
<if
test=
"historyThirtydaySalesAliexpress != null"
>
history_thirtyday_sales_aliexpress,
</if>
<if
test=
"dailyWeightedSales != null"
>
daily_weighted_sales,
</if>
...
...
@@ -674,6 +689,15 @@
<if
test=
"historyThirtydaySalesEbay != null"
>
#{historyThirtydaySalesEbay,jdbcType=DECIMAL},
</if>
<if
test=
"historySevendaySalesAliexpress != null"
>
#{historySevendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"historyFourteendaySalesAliexpress != null"
>
#{historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"historyThirtydaySalesAliexpress != null"
>
#{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"dailyWeightedSales != null"
>
#{dailyWeightedSales,jdbcType=DECIMAL},
</if>
...
...
@@ -894,6 +918,15 @@
<if
test=
"record.historyThirtydaySalesEbay != null"
>
history_thirtyday_sales_ebay = #{record.historyThirtydaySalesEbay,jdbcType=DECIMAL},
</if>
<if
test=
"record.historySevendaySalesAliexpress != null"
>
history_sevenday_sales_aliexpress = #{record.historySevendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"record.historyFourteendaySalesAliexpress != null"
>
history_fourteenday_sales_aliexpress = #{record.historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"record.historyThirtydaySalesAliexpress != null"
>
history_thirtyday_sales_aliexpress = #{record.historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"record.dailyWeightedSales != null"
>
daily_weighted_sales = #{record.dailyWeightedSales,jdbcType=DECIMAL},
</if>
...
...
@@ -980,6 +1013,9 @@
history_sevenday_sales_ebay = #{record.historySevendaySalesEbay,jdbcType=DECIMAL},
history_fourteenday_sales_ebay = #{record.historyFourteendaySalesEbay,jdbcType=DECIMAL},
history_thirtyday_sales_ebay = #{record.historyThirtydaySalesEbay,jdbcType=DECIMAL},
history_sevenday_sales_aliexpress = #{record.historySevendaySalesAliexpress,jdbcType=DECIMAL},
history_fourteenday_sales_aliexpress = #{record.historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
history_thirtyday_sales_aliexpress = #{record.historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
daily_weighted_sales = #{record.dailyWeightedSales,jdbcType=DECIMAL},
original_quantity_init_advise = #{record.originalQuantityInitAdvise,jdbcType=INTEGER},
is_modify_quantity_init_advise = #{record.isModifyQuantityInitAdvise,jdbcType=INTEGER},
...
...
@@ -1181,6 +1217,15 @@
<if
test=
"historyThirtydaySalesEbay != null"
>
history_thirtyday_sales_ebay = #{historyThirtydaySalesEbay,jdbcType=DECIMAL},
</if>
<if
test=
"historySevendaySalesAliexpress != null"
>
history_sevenday_sales_aliexpress = #{historySevendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"historyFourteendaySalesAliexpress != null"
>
history_fourteenday_sales_aliexpress = #{historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"historyThirtydaySalesAliexpress != null"
>
history_thirtyday_sales_aliexpress = #{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"dailyWeightedSales != null"
>
daily_weighted_sales = #{dailyWeightedSales,jdbcType=DECIMAL},
</if>
...
...
@@ -1264,6 +1309,9 @@
history_sevenday_sales_ebay = #{historySevendaySalesEbay,jdbcType=DECIMAL},
history_fourteenday_sales_ebay = #{historyFourteendaySalesEbay,jdbcType=DECIMAL},
history_thirtyday_sales_ebay = #{historyThirtydaySalesEbay,jdbcType=DECIMAL},
history_sevenday_sales_aliexpress = #{historySevendaySalesAliexpress,jdbcType=DECIMAL},
history_fourteenday_sales_aliexpress = #{historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
history_thirtyday_sales_aliexpress = #{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
daily_weighted_sales = #{dailyWeightedSales,jdbcType=DECIMAL},
original_quantity_init_advise = #{originalQuantityInitAdvise,jdbcType=INTEGER},
is_modify_quantity_init_advise = #{isModifyQuantityInitAdvise,jdbcType=INTEGER},
...
...
@@ -1467,6 +1515,15 @@
<if
test=
"historyThirtydaySalesEbay != null"
>
history_thirtyday_sales_ebay,
</if>
<if
test=
"historySevendaySalesAliexpress != null"
>
history_sevenday_sales_aliexpress,
</if>
<if
test=
"historyFourteendaySalesAliexpress != null"
>
history_fourteenday_sales_aliexpress,
</if>
<if
test=
"historyThirtydaySalesAliexpress != null"
>
history_thirtyday_sales_aliexpress,
</if>
<if
test=
"dailyWeightedSales != null"
>
daily_weighted_sales,
</if>
...
...
@@ -1671,6 +1728,15 @@
<if
test=
"historyThirtydaySalesEbay != null"
>
#{historyThirtydaySalesEbay,jdbcType=DECIMAL},
</if>
<if
test=
"historySevendaySalesAliexpress != null"
>
#{historySevendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"historyFourteendaySalesAliexpress != null"
>
#{historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"historyThirtydaySalesAliexpress != null"
>
#{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"dailyWeightedSales != null"
>
#{dailyWeightedSales,jdbcType=DECIMAL},
</if>
...
...
@@ -1875,6 +1941,15 @@
<if
test=
"historyThirtydaySalesEbay != null"
>
history_thirtyday_sales_ebay = #{historyThirtydaySalesEbay,jdbcType=DECIMAL},
</if>
<if
test=
"historySevendaySalesAliexpress != null"
>
history_sevenday_sales_aliexpress = #{historySevendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"historyFourteendaySalesAliexpress != null"
>
history_fourteenday_sales_aliexpress = #{historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"historyThirtydaySalesAliexpress != null"
>
history_thirtyday_sales_aliexpress = #{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
</if>
<if
test=
"dailyWeightedSales != null"
>
daily_weighted_sales = #{dailyWeightedSales,jdbcType=DECIMAL},
</if>
...
...
@@ -1910,7 +1985,8 @@
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, daily_weighted_sales, original_quantity_init_advise,
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)
values
(#{id,jdbcType=INTEGER}, #{purchaseAdviceId,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
...
...
@@ -1937,9 +2013,10 @@
#{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}, #{dailyWeightedSales,jdbcType=DECIMAL},
#{originalQuantityInitAdvise,jdbcType=INTEGER}, #{isModifyQuantityInitAdvise,jdbcType=INTEGER},
#{tagId,jdbcType=INTEGER})
#{historyThirtydaySalesEbay,jdbcType=DECIMAL}, #{historySevendaySalesAliexpress,jdbcType=DECIMAL},
#{historyFourteendaySalesAliexpress,jdbcType=DECIMAL}, #{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
#{dailyWeightedSales,jdbcType=DECIMAL}, #{originalQuantityInitAdvise,jdbcType=INTEGER},
#{isModifyQuantityInitAdvise,jdbcType=INTEGER}, #{tagId,jdbcType=INTEGER})
on duplicate key update
id = #{id,jdbcType=INTEGER},
purchase_advice_id = #{purchaseAdviceId,jdbcType=VARCHAR},
...
...
@@ -2004,6 +2081,9 @@
history_sevenday_sales_ebay = #{historySevendaySalesEbay,jdbcType=DECIMAL},
history_fourteenday_sales_ebay = #{historyFourteendaySalesEbay,jdbcType=DECIMAL},
history_thirtyday_sales_ebay = #{historyThirtydaySalesEbay,jdbcType=DECIMAL},
history_sevenday_sales_aliexpress = #{historySevendaySalesAliexpress,jdbcType=DECIMAL},
history_fourteenday_sales_aliexpress = #{historyFourteendaySalesAliexpress,jdbcType=DECIMAL},
history_thirtyday_sales_aliexpress = #{historyThirtydaySalesAliexpress,jdbcType=DECIMAL},
daily_weighted_sales = #{dailyWeightedSales,jdbcType=DECIMAL},
original_quantity_init_advise = #{originalQuantityInitAdvise,jdbcType=INTEGER},
is_modify_quantity_init_advise = #{isModifyQuantityInitAdvise,jdbcType=INTEGER},
...
...
data-show/show-auto-turnover/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
View file @
10f8b6e2
...
...
@@ -564,6 +564,23 @@ public class AutoTurnoverJob extends PointJob {
SessionUtil
.
closeSession
();
}
try
{
DcAutoSalesMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcAutoSalesMapper
.
class
);
SalesVolumeAvgDTO
aliexpressAvgSales
=
mapper
.
getPlatformHistorySales
(
dcAutoTurnover
.
getBailunSku
(),
dcAutoTurnover
.
getWarehouseCode
(),
PlatformType
.
Aliexpress
.
value
());
dcAutoTurnover
.
setHistorySevendaySalesAliexpress
(
BigDecimal
.
ZERO
);
dcAutoTurnover
.
setHistoryFourteendaySalesAliexpress
(
BigDecimal
.
ZERO
);
dcAutoTurnover
.
setHistoryThirtydaySalesAliexpress
(
BigDecimal
.
ZERO
);
if
(
aliexpressAvgSales
!=
null
)
{
dcAutoTurnover
.
setHistorySevendaySalesAliexpress
(
BigDecimal
.
valueOf
(
aliexpressAvgSales
.
getSevendaySales
()).
divide
(
Constant
.
BIGDECIMAL_SEVEN
,
3
,
RoundingMode
.
HALF_EVEN
));
dcAutoTurnover
.
setHistoryFourteendaySalesAliexpress
(
BigDecimal
.
valueOf
(
aliexpressAvgSales
.
getFourteendaySales
()).
divide
(
Constant
.
BIGDECIMAL_FOURTEEN
,
3
,
RoundingMode
.
HALF_EVEN
));
dcAutoTurnover
.
setHistoryThirtydaySalesAliexpress
(
BigDecimal
.
valueOf
(
aliexpressAvgSales
.
getThirtydaySales
()).
divide
(
Constant
.
BIGDECIMAL_THIRTY
,
3
,
RoundingMode
.
HALF_EVEN
));
}
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
"计算平台的平均销量失败"
,
e
);
}
finally
{
SessionUtil
.
closeSession
();
}
}
private
Integer
getStockUpDays
(
String
warehouseCode
)
{
...
...
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