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
cfb640a1
Commit
cfb640a1
authored
Jan 16, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
bf2afb75
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
DcAutoSalesForecastStageConfigMapper.xml
...bailuntec/mapper/DcAutoSalesForecastStageConfigMapper.xml
+2
-2
mybatis-config.xml
data-common/src/main/resources/mybatis-config.xml
+1
-1
job.properties
...show/show-auto-turnover/src/main/resources/job.properties
+2
-2
AutoTurnoverTest.java
...ow/show-auto-turnover/src/test/java/AutoTurnoverTest.java
+1
-1
No files found.
data-common/src/main/java/com/bailuntec/mapper/DcAutoSalesForecastStageConfigMapper.xml
View file @
cfb640a1
...
@@ -92,13 +92,13 @@
...
@@ -92,13 +92,13 @@
from dc_base_oms_sku
from dc_base_oms_sku
where bailun_sku = #{bailunSku}
where bailun_sku = #{bailunSku}
and warehouse_code = #{warehouseCode}
and warehouse_code = #{warehouseCode}
order by
create_time
asc
order by
id
asc
limit 1;
limit 1;
</select>
</select>
<select
id=
"avgOrderCount30"
resultType=
"java.math.BigDecimal"
>
<select
id=
"avgOrderCount30"
resultType=
"java.math.BigDecimal"
>
select count(DISTINCT bailun_order_id) / 30
select count(DISTINCT bailun_order_id) / 30
from dc_base_oms_sku
from dc_base_oms_sku
_30
where bailun_sku = #{bailunSku}
where bailun_sku = #{bailunSku}
and warehouse_code = #{warehouseCode}
and warehouse_code = #{warehouseCode}
and create_time >= date_sub(now(), interval 31 day)
and create_time >= date_sub(now(), interval 31 day)
...
...
data-common/src/main/resources/mybatis-config.xml
View file @
cfb640a1
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<!--<properties resource="db-tj.properties"/>-->
<!--<properties resource="db-tj.properties"/>-->
<!-- <properties resource="db-dev.properties"/>-->
<!-- <properties resource="db-dev.properties"/>-->
<properties
resource=
"db-prod.properties"
/>
<properties
resource=
"db-prod.properties"
/>
<settings>
<settings>
<setting
name=
"mapUnderscoreToCamelCase"
value=
"true"
/>
<setting
name=
"mapUnderscoreToCamelCase"
value=
"true"
/>
</settings>
</settings>
...
...
data-show/show-auto-turnover/src/main/resources/job.properties
View file @
cfb640a1
...
@@ -10,9 +10,9 @@ EVENT_RDB_STORAGE_PASSWORD=#7kfnymAM$Y9-Ntf
...
@@ -10,9 +10,9 @@ EVENT_RDB_STORAGE_PASSWORD=#7kfnymAM$Y9-Ntf
ZOOKEEPER_SERVER=172.31.255.120:2181
ZOOKEEPER_SERVER=172.31.255.120:2181
NAME_SPACE
=
data-center
NAME_SPACE
=
data-center
JOB_NAME
=
show-auto-turnover4
7
JOB_NAME
=
show-auto-turnover4
8
#JOB_CRON=0 0 3 * * ?
#JOB_CRON=0 0 3 * * ?
JOB_CRON
=
0 50 1
4
* * ?
JOB_CRON
=
0 50 1
5
* * ?
SHARDING_TOTAL_COUNT
=
8
SHARDING_TOTAL_COUNT
=
8
JOB_NAME_NE_NORMAL
=
show-auto-turnover-ne-normal
JOB_NAME_NE_NORMAL
=
show-auto-turnover-ne-normal
...
...
data-show/show-auto-turnover/src/test/java/AutoTurnoverTest.java
View file @
cfb640a1
...
@@ -127,7 +127,7 @@ public class AutoTurnoverTest {
...
@@ -127,7 +127,7 @@ public class AutoTurnoverTest {
HashMap
<
Integer
,
String
>
map
=
new
HashMap
<>();
HashMap
<
Integer
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
1
,
""
);
map
.
put
(
1
,
""
);
ShardingContext
shardingContext
=
new
ShardingContext
(
new
ShardingContexts
(
""
,
""
,
1
,
"INCREMENT"
,
map
),
0
);
ShardingContext
shardingContext
=
new
ShardingContext
(
new
ShardingContexts
(
""
,
""
,
1
,
"INCREMENT"
,
map
),
0
);
JobPointLog
jobPointLog
=
new
JobPointLog
(
""
,
1
,
400
,
1
,
1
,
LocalDateTime
.
now
().
minusSeconds
(
1
),
LocalDateTime
.
now
());
JobPointLog
jobPointLog
=
new
JobPointLog
(
""
,
6
,
400
,
1
,
1
,
LocalDateTime
.
now
().
minusSeconds
(
1
),
LocalDateTime
.
now
());
autoTurnoverJob
.
executeJob
(
shardingContext
,
jobPointLog
);
autoTurnoverJob
.
executeJob
(
shardingContext
,
jobPointLog
);
}
}
...
...
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