Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
a08a2dd8
Commit
a08a2dd8
authored
Apr 20, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二版
parent
9e68fb65
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
19 deletions
+36
-19
workspace.xml
.idea/workspace.xml
+0
-0
pom.xml
pom.xml
+19
-15
Account.java
src/main/java/tkio/model/Account.java
+9
-0
AccountServiceImpl.java
src/main/java/tkio/service/impl/AccountServiceImpl.java
+8
-4
No files found.
.idea/workspace.xml
View file @
a08a2dd8
This diff is collapsed.
Click to expand it.
pom.xml
View file @
a08a2dd8
...
...
@@ -93,25 +93,29 @@
<!--数据源配置-->
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
<!--//office-->
<default.datasource.url>
jdbc:mysql://
testreyun.cjxbwnaf9ore.rds.cn-northwest
-1.amazonaws.com.cn:3306/manager?characterEncoding=utf-8
</default.datasource.url>
<default.datasource.username>
reyun
test
</default.datasource.username>
<default.datasource.password>
reyun
test
</default.datasource.password>
<default.datasource.url>
jdbc:mysql://
io-split-rds.c42s8pkbxrdg.rds.cn-north
-1.amazonaws.com.cn:3306/manager?characterEncoding=utf-8
</default.datasource.url>
<default.datasource.username>
reyun
</default.datasource.username>
<default.datasource.password>
reyun
123
</default.datasource.password>
<office.url>
jdbc:mysql://
testreyun.cjxbwnaf9ore.rds.cn-northwest
-1.amazonaws.com.cn:3306/office?characterEncoding=utf-8
</office.url>
<office.username>
reyun
test
</office.username>
<office.password>
reyun
test
</office.password>
<office.url>
jdbc:mysql://
io-split-rds.c42s8pkbxrdg.rds.cn-north
-1.amazonaws.com.cn:3306/office?characterEncoding=utf-8
</office.url>
<office.username>
reyun
</office.username>
<office.password>
reyun
123
</office.password>
<tkio.url>
jdbc:mysql://
testreyun.cjxbwnaf9ore.rds.cn-northwest
-1.amazonaws.com.cn:3306/trackingio_test?characterEncoding=utf-8
</tkio.url>
<tkio.username>
reyun
test
</tkio.username>
<tkio.password>
reyun
test
</tkio.password>
<tkio.url>
jdbc:mysql://
io-split-rds.c42s8pkbxrdg.rds.cn-north
-1.amazonaws.com.cn:3306/trackingio_test?characterEncoding=utf-8
</tkio.url>
<tkio.username>
reyun
</tkio.username>
<tkio.password>
reyun
123
</tkio.password>
<track.url>
jdbc:mysql://
testreyun.cjxbwnaf9ore.rds.cn-northwest
-1.amazonaws.com.cn:3306/track_test?characterEncoding=utf-8
</track.url>
<track.username>
reyun
test
</track.username>
<track.password>
reyun
test
</track.password>
<track.url>
jdbc:mysql://
io-split-rds.c42s8pkbxrdg.rds.cn-north
-1.amazonaws.com.cn:3306/track_test?characterEncoding=utf-8
</track.url>
<track.username>
reyun
</track.username>
<track.password>
reyun
123
</track.password>
<dmp.url>
jdbc:mysql://testreyun.cjxbwnaf9ore.rds.cn-northwest-1.amazonaws.com.cn:3306/manager?characterEncoding=utf-8
</dmp.url>
<dmp.username>
reyuntest
</dmp.username>
<dmp.password>
reyuntest
</dmp.password>
<dmp.url>
jdbc:mysql://io-split-rds.c42s8pkbxrdg.rds.cn-north-1.amazonaws.com.cn:3306/manager?characterEncoding=utf-8
</dmp.url>
<dmp.username>
reyun
</dmp.username>
<dmp.password>
reyun123
</dmp.password>
<io.url>
jdbc:mysql://io-split-rds.c42s8pkbxrdg.rds.cn-north-1.amazonaws.com.cn:3306/userio?characterEncoding=utf-8
</io.url>
<io.username>
reyun
</io.username>
<io.password>
reyun123
</io.password>
<mail.host>
smtp.exmail.qq.com
</mail.host>
<mail.username>
manxiaoqiang@reyun.com
</mail.username>
...
...
src/main/java/tkio/model/Account.java
View file @
a08a2dd8
...
...
@@ -68,6 +68,15 @@ public class Account {
private
Boolean
isFlowRestrict
;
private
String
modifyPricelevelTime
;
private
Boolean
newContract
;
private
Boolean
startByContract
;
public
Boolean
getStartByContract
()
{
return
startByContract
;
}
public
void
setStartByContract
(
Boolean
startByContract
)
{
this
.
startByContract
=
startByContract
;
}
public
Boolean
getFlowRestrict
()
{
return
isFlowRestrict
;
...
...
src/main/java/tkio/service/impl/AccountServiceImpl.java
View file @
a08a2dd8
...
...
@@ -28,13 +28,17 @@ public class AccountServiceImpl implements AccountService {
String
today
=
DateUtil
.
getBeforeDays
(
0
);
Date
pubDate
=
DateUtil
.
getDate
(
contract
.
getStartDate
());
account
.
setPastDate
(
contract
.
getEndDate
());
account
.
setNewContract
(
true
);
account
.
setPubDate
(
pubDate
);
account
.
setModifyPricelevelTime
(
contract
.
getStartDate
());
account
.
setPastDate
(
contract
.
getEndDate
());
account
.
setPricelevel
(
contract
.
getPriceLevel
());
account
.
setModifyTime
(
new
Date
());
account
.
setModifyAccount
(
0
l
);
account
.
setPricelevel
(
contract
.
getPriceLevel
());
if
(
account
.
getStartByContract
()){
account
.
setNewContract
(
true
);
account
.
setModifyPricelevelTime
(
contract
.
getStartDate
());
}
if
(!(
contract
.
getEndDate
().
compareTo
(
today
)
<
0
)){
account
.
setStatus
(
1
);
}
...
...
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