Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
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
QG
cash-loan-flow-boss
Commits
e12c0821
Commit
e12c0821
authored
May 29, 2020
by
王向伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
渠道配置兼容多项channelApplyInfoStrategy
parent
a158c791
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
20 deletions
+22
-20
ChannelConfBaseModel.java
...hloanflowboss/api/channel/model/ChannelConfBaseModel.java
+2
-1
ChannelConfServiceImpl.java
...nflowboss/api/channel/service/ChannelConfServiceImpl.java
+8
-9
ChannelApplyInfoStrategyRepository.java
...pi/clf/repository/ChannelApplyInfoStrategyRepository.java
+3
-1
CLFCenterService.java
...up/cashloanflowboss/spi/clf/service/CLFCenterService.java
+1
-1
CLFCenterServiceImpl.java
...ashloanflowboss/spi/clf/service/CLFCenterServiceImpl.java
+1
-1
KoalaCenterService.java
...ashloanflowboss/spi/koala/service/KoalaCenterService.java
+1
-1
ChannelApplyInfoStrategyTest.java
...owboss/service/contract/ChannelApplyInfoStrategyTest.java
+6
-6
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/model/ChannelConfBaseModel.java
View file @
e12c0821
...
...
@@ -4,6 +4,7 @@ import cn.quantgroup.cashloanflowboss.spi.clf.entity.ChannelApplyInfoStrategy;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
/**
...
...
@@ -20,7 +21,7 @@ public class ChannelConfBaseModel {
private
Integer
fundId
;
private
Integer
p2pFundId
;
private
ChannelApplyInfoStrategy
channelApplyInfoStrategy
;
private
List
<
ChannelApplyInfoStrategy
>
channelApplyInfoStrategyList
;
/**
* 对应productId
*/
...
...
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/service/ChannelConfServiceImpl.java
View file @
e12c0821
...
...
@@ -11,6 +11,7 @@ import cn.quantgroup.cashloanflowboss.spi.clf.entity.ClfOrderCallBack;
import
cn.quantgroup.cashloanflowboss.spi.clf.model.KANoticeType
;
import
cn.quantgroup.cashloanflowboss.spi.clf.service.CLFCenterService
;
import
cn.quantgroup.cashloanflowboss.utils.IgnorePropertiesUtil
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
...
...
@@ -73,8 +74,8 @@ public class ChannelConfServiceImpl implements ChannelConfService {
channelConfVo
=
ChannelConfUtil
.
getChannelConfVoByClf
(
channelConfiguration
,
approve
,
orderStatus
,
repaymentPlan
);
}
ChannelApplyInfoStrategy
channelApplyInfoStrategyByChannelId
=
clfCenterService
.
findChannelApplyInfoStrategyByChannelId
(
channelId
);
channelConfVo
.
getBasicInfo
().
setChannelApplyInfoStrategy
(
channelApplyInfoStrategyByChannelId
);
List
<
ChannelApplyInfoStrategy
>
channelApplyInfoStrategyByChannelId
=
clfCenterService
.
findChannelApplyInfoStrategyByChannelId
(
channelId
);
channelConfVo
.
getBasicInfo
().
setChannelApplyInfoStrategy
List
(
channelApplyInfoStrategyByChannelId
);
return
channelConfVo
;
}
...
...
@@ -130,15 +131,13 @@ public class ChannelConfServiceImpl implements ChannelConfService {
//保存进件配置项
Long
channelId
=
basicInfo
.
getChannelId
();
ChannelApplyInfoStrategy
channelApplyInfoStrategy
=
basicInfo
.
getChannelApplyInfoStrategy
();
if
(
channelApplyInfoStrategy
!=
null
)
{
ChannelApplyInfoStrategy
strategy
=
clfCenterService
.
findChannelApplyInfoStrategyByChannelId
(
channelId
);
if
(
strategy
!=
null
)
{
channelApplyInfoStrategy
.
setId
(
strategy
.
getId
());
}
clfCenterService
.
saveChannelApplyInfoStrategy
(
channelApplyInfoStrategy
);
List
<
ChannelApplyInfoStrategy
>
channelApplyInfoStrategyList
=
basicInfo
.
getChannelApplyInfoStrategyList
();
if
(
CollectionUtils
.
isNotEmpty
(
channelApplyInfoStrategyList
))
{
for
(
ChannelApplyInfoStrategy
strategy
:
channelApplyInfoStrategyList
)
{
clfCenterService
.
saveChannelApplyInfoStrategy
(
strategy
);
}
}
return
true
;
}
...
...
src/main/java/cn/quantgroup/cashloanflowboss/spi/clf/repository/ChannelApplyInfoStrategyRepository.java
View file @
e12c0821
...
...
@@ -5,6 +5,8 @@ import cn.quantgroup.cashloanflowboss.spi.clf.entity.ChannelApplyInfoStrategy;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* @author Wang Xiangwei
* @version 2020/2/25
...
...
@@ -13,5 +15,5 @@ import org.springframework.stereotype.Repository;
@Repository
public
interface
ChannelApplyInfoStrategyRepository
extends
JpaRepository
<
ChannelApplyInfoStrategy
,
Long
>
{
ChannelApplyInfoStrategy
findByChannelId
(
Long
channelId
);
List
<
ChannelApplyInfoStrategy
>
findByChannelId
(
Long
channelId
);
}
src/main/java/cn/quantgroup/cashloanflowboss/spi/clf/service/CLFCenterService.java
View file @
e12c0821
...
...
@@ -38,7 +38,7 @@ public interface CLFCenterService {
void
reloadKAConfiguration
();
ChannelApplyInfoStrategy
findChannelApplyInfoStrategyByChannelId
(
Long
channelId
);
List
<
ChannelApplyInfoStrategy
>
findChannelApplyInfoStrategyByChannelId
(
Long
channelId
);
void
saveChannelApplyInfoStrategy
(
ChannelApplyInfoStrategy
channelApplyInfoStrategy
);
...
...
src/main/java/cn/quantgroup/cashloanflowboss/spi/clf/service/CLFCenterServiceImpl.java
View file @
e12c0821
...
...
@@ -147,7 +147,7 @@ public class CLFCenterServiceImpl implements CLFCenterService {
}
@Override
public
ChannelApplyInfoStrategy
findChannelApplyInfoStrategyByChannelId
(
Long
channelId
)
{
public
List
<
ChannelApplyInfoStrategy
>
findChannelApplyInfoStrategyByChannelId
(
Long
channelId
)
{
return
channelApplyInfoStrategyRepository
.
findByChannelId
(
channelId
);
}
...
...
src/main/java/cn/quantgroup/cashloanflowboss/spi/koala/service/KoalaCenterService.java
View file @
e12c0821
...
...
@@ -121,7 +121,7 @@ public class KoalaCenterService {
}
}
public
String
cancelPre
Audit
(
Map
<
Object
,
Object
>
data
)
{
public
String
cancelPre
LoanHasLoanId
(
Map
<
Object
,
Object
>
data
)
{
if
(
Application
.
isDebug
())
{
String
result
=
koalaCenter
.
cancelPreAudit
(
data
);
log
.
info
(
"koala 有loanId贷前关单 result={}"
,
result
);
...
...
src/test/java/cn/quantgroup/cashloanflowboss/service/contract/ChannelApplyInfoStrategyTest.java
View file @
e12c0821
...
...
@@ -5,7 +5,6 @@ import cn.quantgroup.cashloanflowboss.api.channel.model.ChannelConfVo;
import
cn.quantgroup.cashloanflowboss.api.channel.service.ChannelConfService
;
import
cn.quantgroup.cashloanflowboss.spi.clf.entity.ChannelApplyInfoStrategy
;
import
cn.quantgroup.cashloanflowboss.spi.clf.service.CLFCenterService
;
import
cn.quantgroup.cashloanflowboss.spi.xyqb.service.XYQBCenterService
;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -39,9 +38,9 @@ public class ChannelApplyInfoStrategyTest extends CashLoanFlowBossApplicationTes
strategy
.
setMobile
(
true
);
clfCenterService
.
saveChannelApplyInfoStrategy
(
strategy
);
ChannelApplyInfoStrategy
strategy1
=
clfCenterService
.
findChannelApplyInfoStrategyByChannelId
(
12L
);
//
ChannelApplyInfoStrategy strategy1 = clfCenterService.findChannelApplyInfoStrategyByChannelId(12L);
strategy
.
setId
(
strategy1
.
getId
());
//
strategy.setId(strategy1.getId());
strategy
.
setChannelName
(
"测试更新"
);
clfCenterService
.
saveChannelApplyInfoStrategy
(
strategy
);
}
...
...
@@ -50,13 +49,14 @@ public class ChannelApplyInfoStrategyTest extends CashLoanFlowBossApplicationTes
public
void
testGetChannelInfo
(){
ChannelConfVo
channelConf
=
channelConfService
.
getChannelConf
(
159881L
);
ChannelApplyInfoStrategy
channelApplyInfoStrategy
=
channelConf
.
getBasicInfo
().
getChannelApplyInfoStrategy
();
//ChannelApplyInfoStrategy channelApplyInfoStrategy = channelConf.getBasicInfo().getChannelApplyInfoStrategyList
();
channelApplyInfoStrategy
.
setChannelUserId
(
true
);
//
channelApplyInfoStrategy.setChannelUserId(true);
channelConfService
.
editChannelConfInfo
(
channelConf
);
//数据恢复
channelApplyInfoStrategy
.
setChannelUserId
(
false
);
//channelApplyInfoStrategy.setChannelUserId(false);
channelConfService
.
editChannelConfInfo
(
channelConf
);
...
...
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