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
78c5469b
Commit
78c5469b
authored
Apr 19, 2019
by
wutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRM退款匹配调整
parent
d80e0c4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
Application.java
...c-crm-refund/src/main/java/com/bailuntec/Application.java
+2
-1
RefundLinkOrderJob.java
...d/src/main/java/com/bailuntec/job/RefundLinkOrderJob.java
+1
-4
RefundLinkJobListener.java
...in/java/com/bailuntec/listener/RefundLinkJobListener.java
+16
-0
No files found.
data-base/base-sync-crm-refund/src/main/java/com/bailuntec/Application.java
View file @
78c5469b
...
...
@@ -4,6 +4,7 @@ import com.alibaba.druid.pool.DruidDataSource;
import
com.bailuntec.job.CrmRefundSyncJob
;
import
com.bailuntec.job.RefundLinkOrderJob
;
import
com.bailuntec.listener.CrmRefundSyncJobListener
;
import
com.bailuntec.listener.RefundLinkJobListener
;
import
com.bailuntec.utils.PropertiesUtil
;
import
com.dangdang.ddframe.job.config.JobCoreConfiguration
;
import
com.dangdang.ddframe.job.config.simple.SimpleJobConfiguration
;
...
...
@@ -27,7 +28,7 @@ public class Application {
private
static
final
String
EVENT_RDB_STORAGE_PASSWORD
=
propertiesUtil
.
getPropertyAsString
(
"EVENT_RDB_STORAGE_PASSWORD"
);
public
static
void
main
(
String
[]
args
)
{
new
JobScheduler
(
createRegistryCenter
(),
createJobConfiguration
(),
createJobEventConfiguration
(),
new
CrmRefundSyncJobListener
()).
init
();
new
JobScheduler
(
createRegistryCenter
(),
createJobConfiguration1
()).
init
();
new
JobScheduler
(
createRegistryCenter
(),
createJobConfiguration1
()
,
createJobEventConfiguration
(),
new
RefundLinkJobListener
()
).
init
();
}
private
static
CoordinatorRegistryCenter
createRegistryCenter
()
{
...
...
data-base/base-sync-crm-refund/src/main/java/com/bailuntec/job/RefundLinkOrderJob.java
View file @
78c5469b
...
...
@@ -88,11 +88,8 @@ public class RefundLinkOrderJob extends PointJob {
}
}
}
SessionUtil
.
getSession
().
commit
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
SessionUtil
.
getSession
().
rollback
();
throw
new
RuntimeException
(
"Mybatis操作DB失败"
);
throw
new
RuntimeException
(
"Mybatis操作DB失败"
,
e
);
}
finally
{
SessionUtil
.
closeSession
();
}
...
...
data-base/base-sync-crm-refund/src/main/java/com/bailuntec/listener/RefundLinkJobListener.java
0 → 100644
View file @
78c5469b
package
com
.
bailuntec
.
listener
;
import
com.dangdang.ddframe.job.executor.ShardingContexts
;
import
com.dangdang.ddframe.job.lite.api.listener.ElasticJobListener
;
public
class
RefundLinkJobListener
implements
ElasticJobListener
{
@Override
public
void
beforeJobExecuted
(
ShardingContexts
shardingContexts
)
{
}
@Override
public
void
afterJobExecuted
(
ShardingContexts
shardingContexts
)
{
}
}
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