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
18fd4046
Commit
18fd4046
authored
Dec 26, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crm update
parent
63f04f72
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
6 deletions
+39
-6
pom.xml
data-base/base-sync-crm-refund/pom.xml
+27
-0
Dockerfile
data-base/base-sync-crm-refund/src/main/docker/Dockerfile
+8
-0
CrmRefundSyncJob.java
...und/src/main/java/com/bailuntec/job/CrmRefundSyncJob.java
+0
-1
job.properties
...se/base-sync-crm-refund/src/main/resources/job.properties
+2
-3
mybatis-config.xml
data-common/src/main/resources/mybatis-config.xml
+2
-2
No files found.
data-base/base-sync-crm-refund/pom.xml
View file @
18fd4046
...
...
@@ -10,6 +10,10 @@
</parent>
<modelVersion>
4.0.0
</modelVersion>
<properties>
<maven.build.timestamp.format>
yyyyMMddHHmm
</maven.build.timestamp.format>
</properties>
<artifactId>
base-sync-crm-refund
</artifactId>
<dependencies>
...
...
@@ -54,6 +58,29 @@
</execution>
</executions>
</plugin>
<!-- docker的maven插件,官网:https://github.com/spotify/docker-maven-plugin -->
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
1.0.0
</version>
<configuration>
<!--镜像名称:镜像版本-->
<skipDockerBuild>
false
</skipDockerBuild>
<imageName>
ccr.ccs.tencentyun.com/blt.data.center/dc-base-sync-crm-refund:${maven.build.timestamp}
</imageName>
<dockerDirectory>
src/main/docker
</dockerDirectory>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${project.build.finalName}.jar
</include>
</resource>
</resources>
<serverId>
bailuntec-docker
</serverId>
</configuration>
</plugin>
</plugins>
<resources>
...
...
data-base/base-sync-crm-refund/src/main/docker/Dockerfile
0 → 100644
View file @
18fd4046
FROM
openjdk:8-jdk-alpine
VOLUME
/tmp
ADD
base-sync-crm-refund-1.0-SNAPSHOT.jar base-sync-crm-refund-1.0-SNAPSHOT.jar
RUN
echo
"Asia/Shanghai"
>
/etc/timezone
ENTRYPOINT
["java","-jar","/base-sync-crm-refund-1.0-SNAPSHOT.jar"]
EXPOSE
8080
data-base/base-sync-crm-refund/src/main/java/com/bailuntec/job/CrmRefundSyncJob.java
View file @
18fd4046
...
...
@@ -111,7 +111,6 @@ public class CrmRefundSyncJob extends PointJob {
}
}
}
DcBaseCrmRefundMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseCrmRefundMapper
.
class
);
int
i
=
mapper
.
updateByExampleSelective
(
dcBaseCrmRefund
,
DcBaseCrmRefundExample
.
newAndCreateCriteria
().
andCrmIdEqualTo
(
dcBaseCrmRefund
.
getCrmId
()).
example
());
if
(
i
==
0
)
{
...
...
data-base/base-sync-crm-refund/src/main/resources/job.properties
View file @
18fd4046
...
...
@@ -10,9 +10,9 @@ ZOOKEEPER_SERVER=172.31.255.120:2181
NAME_SPACE
=
data-center
JOB_NAME
=
base-sync-crm-refund
#JOB_NAME=base-sync-crm-refund-update
JOB_CRON
=
0
0 0/1
* * ? *
JOB_CRON
=
0
/1 0 0
* * ? *
JOB_LINK_NAME
=
base-link-crm-refund
JOB_LINK_CRON
=
0 0 0/2 * * ? *
JOB_STATUS_NAME
=
base-status-crm-refund
JOB_STATUS_CRON
=
0 0 0/2 * * ? *
SHARDING_TOTAL_COUNT
=
1
\ No newline at end of file
SHARDING_TOTAL_COUNT
=
1
data-common/src/main/resources/mybatis-config.xml
View file @
18fd4046
...
...
@@ -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>
...
...
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