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
40b95287
Commit
40b95287
authored
Apr 02, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2.0.0' into dev
parents
5422f046
846b8ad4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
189 additions
and
122 deletions
+189
-122
ProductApi.java
src/main/java/com/tanpu/fund/api/ProductApi.java
+1
-1
FundInfoCustomMapper.java
...pu/fund/mapper/generator/custom/FundInfoCustomMapper.java
+1
-1
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+182
-114
application-test.properties
src/main/resources/application-test.properties
+2
-2
FundInfoCustomMapper.xml
...main/resources/mybatis/customize/FundInfoCustomMapper.xml
+3
-4
No files found.
src/main/java/com/tanpu/fund/api/ProductApi.java
View file @
40b95287
...
...
@@ -185,7 +185,7 @@ public interface ProductApi {
CommonResp
<
Long
>
getFundRankCountInfo
(
@RequestBody
FundRankReq
req
);
@ApiOperation
(
"公募基金模糊匹配"
)
@GetMapping
(
"/p
ublic
/like"
)
@GetMapping
(
"/p
rivate
/like"
)
CommonResp
<
List
<
Type
>>
getFundLikeShortNameInfo
(
@Valid
@NotEmpty
(
message
=
"产品名称不能为空"
)
@RequestParam
(
"productName"
)
String
productName
,
Pageable
page
);
}
src/main/java/com/tanpu/fund/mapper/generator/custom/FundInfoCustomMapper.java
View file @
40b95287
...
...
@@ -55,6 +55,6 @@ public interface FundInfoCustomMapper {
@Select
(
"select t.id as id, t.fund_name as `value` from ifa_imported_fund_info t where t.id in(${list})"
)
List
<
Type
>
getSimplePrivateFundList
(
@Param
(
"list"
)
String
list
);
@Select
(
"select t.id as id,t.fund_short_name as value from
tx_
fund_info t where t.fund_short_name like #{productName}"
)
@Select
(
"select t.id as id,t.fund_short_name as value from fund_info t where t.fund_short_name like #{productName}"
)
List
<
Type
>
getFundInfoLikeName
(
@Param
(
"productName"
)
String
productName
);
}
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
40b95287
This diff is collapsed.
Click to expand it.
src/main/resources/application-test.properties
View file @
40b95287
...
...
@@ -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
...
...
src/main/resources/mybatis/customize/FundInfoCustomMapper.xml
View file @
40b95287
...
...
@@ -41,12 +41,11 @@
res.ishigh_or_low as ishighOrLow,
res.tohigh_nav_ratio as tohighNavRatio
from
(SELECT
*
FROM fund_nav WHERE fund_id in
(SELECT
fund_id, max(price_date) as price_date
FROM fund_nav WHERE fund_id in
<foreach
close=
")"
collection=
"list"
item=
"fundId"
open=
"("
separator=
","
>
#{fundId}
</foreach>
order BY price_date desc) res
GROUP BY res.fund_id
</foreach>
GROUP by fund_id) t
left join fund_nav res on t.fund_id = res.fund_id and t.price_date = res.price_date
</select>
<select
id=
"getPrivateFundInfoNewNet"
parameterType=
"java.lang.String"
resultType=
"com.tanpu.fund.entity.generator.FundNav"
>
...
...
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