Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_fund
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周鹏
tamp_fund
Commits
d8fa4600
Commit
d8fa4600
authored
Apr 01, 2021
by
zp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
26fec8d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+7
-2
application-test.properties
src/main/resources/application-test.properties
+2
-2
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
d8fa4600
...
...
@@ -1842,12 +1842,17 @@ public class ProductServiceImpl implements ProductService, Constant {
beginTime
=
DateUtil
.
offset
(
endTime
,
DateField
.
YEAR
,
-
5
);
}
else
if
(
req
.
getInceptionDate
()
==
5
)
{
endTime
=
DateUtil
.
offset
(
DateUtil
.
beginOfYear
(
beginYear
),
DateField
.
YEAR
,
-
2
);
beginTime
=
DateUtil
.
offset
(
endTime
,
DateField
.
YEAR
,
-
5
);
beginTime
=
DateUtil
.
offset
(
beginYear
,
DateField
.
YEAR
,
-
5
);
}
else
{
endTime
=
DateUtil
.
endOfDay
(
new
Date
());
beginTime
=
beginYear
;
}
if
(
req
.
getInceptionDate
()
!=
5
)
{
criteria
.
andInceptionDateBetween
(
beginTime
,
endTime
);
}
else
{
criteria
.
andInceptionDateLessThanOrEqualTo
(
beginTime
);
}
}
}
...
...
src/main/resources/application-test.properties
View file @
d8fa4600
...
...
@@ -10,8 +10,8 @@ management.endpoints.web.base-path = /myhealth
management.endpoint.health.enabled
=
true
management.endpoint.health.show-details
=
always
spring.datasource.url
=
jdbc:mysql://
118.190.63.109
:3306/tamp_fund?autoReconnect=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false
spring.datasource.username
=
root
spring.datasource.url
=
jdbc:mysql://
rm-uf6r22t3d798q4kmkao.mysql.rds.aliyuncs.com
:3306/tamp_fund?autoReconnect=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false
spring.datasource.username
=
tamp_admin
spring.datasource.password
=
@imeng123
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
...
...
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