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
67e908fb
Commit
67e908fb
authored
Jan 19, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
4f0aff7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
AutoTurnoverJob.java
...over/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
+10
-6
AutoTurnoverJobTest.java
.../src/test/java/com/bailuntec/job/AutoTurnoverJobTest.java
+1
-1
No files found.
data-show/show-auto-turnover/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
View file @
67e908fb
...
...
@@ -123,13 +123,17 @@ public class AutoTurnoverJob extends PointJob {
.
example
());
this
.
autoTurnoverFromStock
(
queryTime
,
dcBaseStock
);
}
catch
(
Exception
e
)
{
DcAutoException
dcAutoException
=
new
DcAutoException
();
dcAutoException
.
setBailunSku
(
dcBaseStock
.
getBailunSku
());
dcAutoException
.
setWarehouseCode
(
dcBaseStock
.
getWarehouseCode
());
dcAutoException
.
setMessage
(
e
.
getMessage
()
+
e
.
getStackTrace
().
toString
());
DcAutoExceptionMapper
dcAutoExceptionMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcAutoExceptionMapper
.
class
);
try
{
DcAutoException
dcAutoException
=
new
DcAutoException
();
dcAutoException
.
setBailunSku
(
dcBaseStock
.
getBailunSku
());
dcAutoException
.
setWarehouseCode
(
dcBaseStock
.
getWarehouseCode
());
dcAutoException
.
setMessage
(
e
.
getMessage
()
+
e
.
getStackTrace
().
toString
());
DcAutoExceptionMapper
dcAutoExceptionMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcAutoExceptionMapper
.
class
);
dcAutoExceptionMapper
.
insert
(
dcAutoException
);
dcAutoExceptionMapper
.
insert
(
dcAutoException
);
}
catch
(
Exception
ex
)
{
}
}
finally
{
SessionUtil
.
closeSession
();
...
...
data-show/show-auto-turnover/src/test/java/com/bailuntec/job/AutoTurnoverJobTest.java
View file @
67e908fb
...
...
@@ -158,7 +158,7 @@ public class AutoTurnoverJobTest {
jobPointLog
.
setPageSize
(
1000
);
AutoTurnoverJob
autoTurnoverJob
=
new
AutoTurnoverJob
();
autoTurnoverJob
.
executeJob
(
new
ShardingContext
(
new
ShardingContexts
(
"x"
,
null
,
1
,
"
NORMAL
"
,
new
HashMap
<>()),
0
),
autoTurnoverJob
.
executeJob
(
new
ShardingContext
(
new
ShardingContexts
(
"x"
,
null
,
1
,
"
INCREMENT
"
,
new
HashMap
<>()),
0
),
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