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
309dd2d7
Commit
309dd2d7
authored
Jul 14, 2020
by
王向伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户配置信息url,返回参数添加风控数据
parent
c4bd1dac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
4 deletions
+48
-4
ChannelConfController.java
...lowboss/api/channel/controller/ChannelConfController.java
+24
-2
ChannelConfServiceImpl.java
...nflowboss/api/channel/service/ChannelConfServiceImpl.java
+7
-1
CustomerController.java
...nflowboss/api/customer/controller/CustomerController.java
+1
-1
CustomerInfo.java
...up/cashloanflowboss/api/customer/entity/CustomerInfo.java
+11
-0
ChannelApplyInfoStrategy.java
...loanflowboss/spi/clf/entity/ChannelApplyInfoStrategy.java
+5
-0
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/controller/ChannelConfController.java
View file @
309dd2d7
...
...
@@ -11,7 +11,9 @@ import cn.quantgroup.cashloanflowboss.spi.clf.service.CLFCenterService;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.Valid
;
import
java.io.IOException
;
import
java.util.List
;
/**
...
...
@@ -20,7 +22,7 @@ import java.util.List;
* @author suntao
*/
@RestController
@RequestMapping
(
"channel"
)
@RequestMapping
(
"
/
channel"
)
public
class
ChannelConfController
{
...
...
@@ -51,6 +53,7 @@ public class ChannelConfController {
/**
* 查询单个渠道配置
* 如果是渠道用户,只能查自己,查询条件置灰
*
* @param channelId
* @return
*/
...
...
@@ -65,6 +68,7 @@ public class ChannelConfController {
/**
* 修改渠道配置,如果是渠道角色登陆 只能修改自己渠道信息
*
* @param channelConfVo
* @return
*/
...
...
@@ -86,10 +90,28 @@ public class ChannelConfController {
@GetMapping
(
"/all"
)
public
Result
channelAll
(){
public
Result
channelAll
()
{
List
<
ChannelModel
>
all
=
channelConfService
.
getAll
();
return
Result
.
buildSuccess
(
all
);
}
@GetMapping
(
"/conf/export"
)
public
void
getChannelConf
(
Long
channelId
,
HttpServletResponse
response
)
{
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
channelId
+
".sql"
);
response
.
setContentType
(
"application/text;charset=UTF-8"
);
response
.
setHeader
(
"Pragma"
,
"no-cache"
);
response
.
setHeader
(
"Cache-Control"
,
"no-cache"
);
response
.
setDateHeader
(
"Expires"
,
0
);
String
insertSql
=
channelConfService
.
exportChannelConf
(
channelId
);
try
{
response
.
getOutputStream
().
write
(
insertSql
.
getBytes
());
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
}
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/service/ChannelConfServiceImpl.java
View file @
309dd2d7
...
...
@@ -225,7 +225,7 @@ public class ChannelConfServiceImpl implements ChannelConfService {
for
(
Field
declaredField
:
declaredFields
)
{
declaredField
.
setAccessible
(
true
);
Id
idAnnotation
=
declaredField
.
getAnnotation
(
Id
.
class
);
if
(
Objects
.
is
Null
(
idAnnotation
)){
if
(
Objects
.
non
Null
(
idAnnotation
)){
continue
;
}
Column
annotation
=
declaredField
.
getAnnotation
(
Column
.
class
);
...
...
@@ -257,6 +257,12 @@ public class ChannelConfServiceImpl implements ChannelConfService {
values
.
add
(
value
.
toString
());
continue
;
}
//枚举存ordinal 存name的表单独判断
if
(
value
instanceof
Enum
){
Enum
e
=
(
Enum
)
value
;
values
.
add
(
e
.
ordinal
()+
""
);
continue
;
}
//其他类型一律按照字符串处理,有问题加if判断
values
.
add
(
"'"
+
value
.
toString
()+
"'"
);
}
...
...
src/main/java/cn/quantgroup/cashloanflowboss/api/customer/controller/CustomerController.java
View file @
309dd2d7
...
...
@@ -21,7 +21,7 @@ public class CustomerController {
@Autowired
private
ICustomerService
customerService
;
@GetMapping
(
"/info"
)
@GetMapping
(
"/
apply/
info"
)
public
Result
<
CustomerInfo
>
getCustomerInfo
(
String
phoneNo
,
String
channelOrderNo
){
CustomerInfo
customerInfo
=
customerService
.
getCustomerInfo
(
phoneNo
,
channelOrderNo
);
if
(
Objects
.
isNull
(
customerInfo
)){
...
...
src/main/java/cn/quantgroup/cashloanflowboss/api/customer/entity/CustomerInfo.java
View file @
309dd2d7
...
...
@@ -2,6 +2,8 @@ package cn.quantgroup.cashloanflowboss.api.customer.entity;
import
lombok.Data
;
import
java.util.List
;
/**
* 客户进件信息
* @author Wang Xiangwei
...
...
@@ -73,8 +75,17 @@ public class CustomerInfo {
private
String
contactRelationB
;
private
List
<
RiskInfo
>
riskInfoList
;
@Data
class
RiskInfo
{
private
String
key
;
private
String
name
;
private
String
value
;
private
String
success
;
}
}
src/main/java/cn/quantgroup/cashloanflowboss/spi/clf/entity/ChannelApplyInfoStrategy.java
View file @
309dd2d7
...
...
@@ -58,5 +58,10 @@ public class ChannelApplyInfoStrategy implements Serializable {
@Column
(
name
=
"contacts_book"
)
private
Boolean
contactsBook
;
/**
* 检查节点:1进件;2补充信息
*/
@Column
(
name
=
"check_point"
)
private
Integer
checkPoint
;
}
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