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
a1a9164c
Commit
a1a9164c
authored
Dec 24, 2020
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户 是渠道id 错误 获取渠道是 获取 api 渠道
parent
7176b0ed
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
4 deletions
+39
-4
ChannelConfController.java
...lowboss/api/channel/controller/ChannelConfController.java
+5
-0
ChannelConfService.java
...hloanflowboss/api/channel/service/ChannelConfService.java
+2
-0
ChannelConfServiceImpl.java
...nflowboss/api/channel/service/ChannelConfServiceImpl.java
+13
-2
ClfChannelConfiguration.java
...hloanflowboss/spi/clf/entity/ClfChannelConfiguration.java
+8
-2
ClfChannelConfigurationRepository.java
...spi/clf/repository/ClfChannelConfigurationRepository.java
+4
-0
CLFCenterService.java
...up/cashloanflowboss/spi/clf/service/CLFCenterService.java
+2
-0
CLFCenterServiceImpl.java
...ashloanflowboss/spi/clf/service/CLFCenterServiceImpl.java
+5
-0
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/controller/ChannelConfController.java
View file @
a1a9164c
...
@@ -94,6 +94,11 @@ public class ChannelConfController {
...
@@ -94,6 +94,11 @@ public class ChannelConfController {
List
<
ChannelModel
>
all
=
channelConfService
.
getAll
();
List
<
ChannelModel
>
all
=
channelConfService
.
getAll
();
return
Result
.
buildSuccess
(
all
);
return
Result
.
buildSuccess
(
all
);
}
}
@GetMapping
(
"/apiChannel"
)
public
Result
getApiChannel
()
{
List
<
ChannelModel
>
all
=
channelConfService
.
getAllApiChannel
();
return
Result
.
buildSuccess
(
all
);
}
@GetMapping
(
"/conf/export"
)
@GetMapping
(
"/conf/export"
)
...
...
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/service/ChannelConfService.java
View file @
a1a9164c
...
@@ -23,6 +23,8 @@ public interface ChannelConfService {
...
@@ -23,6 +23,8 @@ public interface ChannelConfService {
List
<
ChannelModel
>
getAll
();
List
<
ChannelModel
>
getAll
();
List
<
ChannelModel
>
getAllApiChannel
();
String
exportChannelConf
(
Long
channelId
);
String
exportChannelConf
(
Long
channelId
);
...
...
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/service/ChannelConfServiceImpl.java
View file @
a1a9164c
...
@@ -194,17 +194,28 @@ public class ChannelConfServiceImpl implements ChannelConfService {
...
@@ -194,17 +194,28 @@ public class ChannelConfServiceImpl implements ChannelConfService {
@Override
@Override
public
List
<
ChannelModel
>
getAll
()
{
public
List
<
ChannelModel
>
getAll
()
{
List
<
ClfChannelConfiguration
>
all
=
clfCenterService
.
findAll
();
List
<
ClfChannelConfiguration
>
all
=
clfCenterService
.
findAll
();
List
<
ChannelModel
>
channelModelList
=
new
ArrayList
<>(
all
.
size
());
List
<
ChannelModel
>
channelModelList
=
new
ArrayList
<>(
all
.
size
());
all
.
forEach
(
e
->
{
all
.
forEach
(
e
->
{
ChannelModel
model
=
new
ChannelModel
();
ChannelModel
model
=
new
ChannelModel
();
model
.
setId
(
e
.
get
Id
());
model
.
setId
(
e
.
get
RegisteredFrom
());
model
.
setName
(
e
.
getChannelName
());
model
.
setName
(
e
.
getChannelName
());
channelModelList
.
add
(
model
);
channelModelList
.
add
(
model
);
});
});
return
channelModelList
;
return
channelModelList
;
}
@Override
public
List
<
ChannelModel
>
getAllApiChannel
()
{
List
<
ClfChannelConfiguration
>
all
=
clfCenterService
.
findAll
();
List
<
ChannelModel
>
channelModelList
=
new
ArrayList
<>(
all
.
size
());
all
.
forEach
(
e
->
{
ChannelModel
model
=
new
ChannelModel
();
model
.
setId
(
e
.
getRegisteredFrom
());
model
.
setName
(
e
.
getChannelName
());
channelModelList
.
add
(
model
);
});
return
channelModelList
;
}
}
@Override
@Override
...
...
src/main/java/cn/quantgroup/cashloanflowboss/spi/clf/entity/ClfChannelConfiguration.java
View file @
a1a9164c
...
@@ -97,6 +97,12 @@ public class ClfChannelConfiguration implements Serializable {
...
@@ -97,6 +97,12 @@ public class ClfChannelConfiguration implements Serializable {
@Column
(
name
=
"xyqb_product_id"
)
@Column
(
name
=
"xyqb_product_id"
)
private
String
xyqbProductId
;
private
String
xyqbProductId
;
/**
* 订单创建系统
*/
@Column
(
name
=
"loan_created_sys"
)
private
Integer
loanCreatedSys
;
}
}
src/main/java/cn/quantgroup/cashloanflowboss/spi/clf/repository/ClfChannelConfigurationRepository.java
View file @
a1a9164c
...
@@ -7,9 +7,13 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
...
@@ -7,9 +7,13 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import
org.springframework.data.repository.PagingAndSortingRepository
;
import
org.springframework.data.repository.PagingAndSortingRepository
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@CashLoanFlowDataSource
@CashLoanFlowDataSource
@Repository
@Repository
public
interface
ClfChannelConfigurationRepository
extends
PagingAndSortingRepository
<
ClfChannelConfiguration
,
Long
>,
JpaSpecificationExecutor
<
ClfChannelConfiguration
>
{
public
interface
ClfChannelConfigurationRepository
extends
PagingAndSortingRepository
<
ClfChannelConfiguration
,
Long
>,
JpaSpecificationExecutor
<
ClfChannelConfiguration
>
{
ClfChannelConfiguration
findByRegisteredFrom
(
Long
channelId
);
ClfChannelConfiguration
findByRegisteredFrom
(
Long
channelId
);
List
<
ClfChannelConfiguration
>
findByLoanCreatedSys
(
Integer
loanCreatedSys
);
}
}
src/main/java/cn/quantgroup/cashloanflowboss/spi/clf/service/CLFCenterService.java
View file @
a1a9164c
...
@@ -47,6 +47,8 @@ public interface CLFCenterService {
...
@@ -47,6 +47,8 @@ public interface CLFCenterService {
List
<
ClfChannelConfiguration
>
findAll
();
List
<
ClfChannelConfiguration
>
findAll
();
List
<
ClfChannelConfiguration
>
findAllApiChannel
();
void
saveChannelSecurityKey
(
ChannelSecurityKey
securityKey
);
void
saveChannelSecurityKey
(
ChannelSecurityKey
securityKey
);
ChannelSecurityKey
findChannelSecurityByChannelId
(
Long
channelId
);
ChannelSecurityKey
findChannelSecurityByChannelId
(
Long
channelId
);
...
...
src/main/java/cn/quantgroup/cashloanflowboss/spi/clf/service/CLFCenterServiceImpl.java
View file @
a1a9164c
...
@@ -173,6 +173,11 @@ public class CLFCenterServiceImpl implements CLFCenterService {
...
@@ -173,6 +173,11 @@ public class CLFCenterServiceImpl implements CLFCenterService {
return
list
;
return
list
;
}
}
@Override
public
List
<
ClfChannelConfiguration
>
findAllApiChannel
()
{
return
clfChannelConfigurationRepository
.
findByLoanCreatedSys
(
0
);
}
@Override
@Override
public
ClfCallbackConfiguration
findCallbackConfigurationByChannelId
(
Long
channelId
)
{
public
ClfCallbackConfiguration
findCallbackConfigurationByChannelId
(
Long
channelId
)
{
...
...
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