Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
asset-distribution
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
asset-distribution
Commits
a9a0a33e
Commit
a9a0a33e
authored
Oct 29, 2019
by
liwenbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type默认为0,添加配置也清楚缓存,解决fundProId前端传空字符串的问题
parent
214b3e98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
FundModuleChannelFundConfigServiceImpl.java
.../funding/impl/FundModuleChannelFundConfigServiceImpl.java
+4
-1
FinanceProductHitLogServiceImpl.java
...service/product/impl/FinanceProductHitLogServiceImpl.java
+3
-2
No files found.
src/main/java/com/quantgroup/asset/distribution/service/funding/impl/FundModuleChannelFundConfigServiceImpl.java
View file @
a9a0a33e
...
...
@@ -68,7 +68,8 @@ public class FundModuleChannelFundConfigServiceImpl implements IFundModuleChanne
result
.
put
(
"list"
,
channelFundConfigs
.
getContent
());
return
result
;
}
@CacheEvict
(
value
=
"cacheManager"
,
key
=
"'ASSET_DISTRIBUTION:FUND_MODULE:CHANNEL_FUND_CONFIG:AC8A_'+#bizChannel"
)
@Override
public
GlobalResponse
addChannelFundConfig
(
String
bizChannel
,
String
funds
,
String
remarks
)
{
// 新增配置, 根据渠道查询如果库里已存在,返回异常;
...
...
@@ -82,6 +83,8 @@ public class FundModuleChannelFundConfigServiceImpl implements IFundModuleChanne
fundModuleChannelFundConfig
.
setFunds
(
funds
);
fundModuleChannelFundConfig
.
setRemarks
(
remarks
);
fundModuleChannelFundConfig
.
setFundIds
(
ChannelFundConfigUtil
.
getAllFundIds
(
funds
));
// 默认测试
fundModuleChannelFundConfig
.
setType
(
0
);
fundModuleChannelFundConfig
.
setEnable
(
true
);
fundModuleChannelFundConfigRepository
.
save
(
fundModuleChannelFundConfig
);
return
GlobalResponse
.
create
(
FundModuleResponse
.
SUCCESS
);
...
...
src/main/java/com/quantgroup/asset/distribution/service/product/impl/FinanceProductHitLogServiceImpl.java
View file @
a9a0a33e
...
...
@@ -5,6 +5,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
...
...
@@ -98,9 +99,9 @@ public class FinanceProductHitLogServiceImpl implements IFinanceProductHitLogSer
}
String
oldFundProductId
=
oldMap
.
get
(
"fundProductId"
);
String
newFundProductId
=
newMap
.
get
(
"fundProductId"
);
if
(
oldFundProductId
==
null
&&
newFundProductId
==
null
)
{
if
(
StringUtils
.
isEmpty
(
oldFundProductId
)
&&
StringUtils
.
isEmpty
(
newFundProductId
)
)
{
count
++;
}
else
if
(
oldFundProductId
!=
null
&&
newFundProductId
!=
null
)
{
}
else
if
(
StringUtils
.
isNotEmpty
(
oldFundProductId
)
&&
StringUtils
.
isNotEmpty
(
newFundProductId
)
)
{
if
(
oldFundProductId
.
equals
(
newFundProductId
))
{
count
++;
}
...
...
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