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
afaa2a38
Commit
afaa2a38
authored
Jan 16, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周转
parent
83bf2bf9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
mybatis-config.xml
data-common/src/main/resources/mybatis-config.xml
+2
-2
AutoTurnoverJob.java
...over/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
+1
-0
job.properties
...show/show-auto-turnover/src/main/resources/job.properties
+2
-2
AutoTurnoverTest.java
...ow/show-auto-turnover/src/test/java/AutoTurnoverTest.java
+2
-2
No files found.
data-common/src/main/resources/mybatis-config.xml
View file @
afaa2a38
...
...
@@ -5,8 +5,8 @@
<configuration>
<!--<properties resource="db-tj.properties"/>-->
<!-- <properties resource="db-dev.properties"/>-->
<properties
resource=
"db-prod.properties"
/>
<!-- <properties resource="db-dev.properties"/>-->
<properties
resource=
"db-prod.properties"
/>
<settings>
<setting
name=
"mapUnderscoreToCamelCase"
value=
"true"
/>
</settings>
...
...
data-show/show-auto-turnover/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
View file @
afaa2a38
...
...
@@ -1510,6 +1510,7 @@ public class AutoTurnoverJob extends PointJob {
//仓库。根据历史销量加权计算。最后可以乘以一个倍数
dcAutoConfigSafeInventory
=
autoConfigSafeInventoryMapper
.
selectOneByExample
(
DcAutoConfigSafeInventoryExample
.
newAndCreateCriteria
().
andVariableCodeEqualTo
(
""
).
andWarehouseCodeEqualTo
(
warehouseCode
).
andStatusEqualTo
(
1
).
andTypeEqualTo
(
3
).
example
());
if
(
dcAutoConfigSafeInventory
!=
null
)
{
weightingAvgSales
=
calculateWeightingAvgSales
(
dcAutoConfigSafeInventory
.
getWeightingCoefficientSeven
(),
dcAutoConfigSafeInventory
.
getWeightingCoefficientFourteen
(),
dcAutoConfigSafeInventory
.
getWeightingCoefficientThirty
(),
historyThirtySalesList
);
dcAutoTurnover
.
setDailyWeightedSales
(
weightingAvgSales
);
//乘倍数后的加权日均销量,小于0.8就置0 0.8-1 之间就置1
...
...
data-show/show-auto-turnover/src/main/resources/job.properties
View file @
afaa2a38
...
...
@@ -11,8 +11,8 @@ ZOOKEEPER_SERVER=172.31.255.120:2181
NAME_SPACE
=
data-center
JOB_NAME
=
show-auto-turnover44
JOB_CRON
=
0 0 3 * * ?
#JOB_CRON=0 50 17
* * ?
#
JOB_CRON=0 0 3 * * ?
JOB_CRON
=
0 50 13
* * ?
SHARDING_TOTAL_COUNT
=
8
JOB_NAME_NE_NORMAL
=
show-auto-turnover-ne-normal
...
...
data-show/show-auto-turnover/src/test/java/AutoTurnoverTest.java
View file @
afaa2a38
...
...
@@ -257,8 +257,8 @@ public class AutoTurnoverTest {
public
void
testXX2
()
{
DcBaseStock
dcBaseStock
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseStockMapper
.
class
)
.
selectOneByExample
(
DcBaseStockExample
.
newAndCreateCriteria
()
.
andBailunSkuEqualTo
(
"951
386201
"
)
.
andWarehouseCodeEqualTo
(
"G
B4PXBL
"
)
.
andBailunSkuEqualTo
(
"951
294303
"
)
.
andWarehouseCodeEqualTo
(
"G
ZBLWH
"
)
.
example
());
try
{
...
...
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