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
ec0ffa58
Commit
ec0ffa58
authored
Sep 23, 2021
by
技术部-韩成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调修改
parent
02173402
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
6 deletions
+15
-6
FeatureServiceImpl.java
...distribution/service/feature/impl/FeatureServiceImpl.java
+9
-1
CoreFilter.java
...tgroup/asset/distribution/service/newrule/CoreFilter.java
+1
-1
CooperationEnum.java
...tribution/service/newrule/pojo/enums/CooperationEnum.java
+2
-2
FundInfo.java
...set/distribution/service/newrule/pojo/funds/FundInfo.java
+2
-1
ContactsTelErrorVerifyImpl.java
...vice/newrule/specialrules/ContactsTelErrorVerifyImpl.java
+1
-1
No files found.
src/main/java/com/quantgroup/asset/distribution/service/feature/impl/FeatureServiceImpl.java
View file @
ec0ffa58
package
com
.
quantgroup
.
asset
.
distribution
.
service
.
feature
.
impl
;
package
com
.
quantgroup
.
asset
.
distribution
.
service
.
feature
.
impl
;
import
cn.quantgroup.tech.util.TechEnvironment
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.common.base.Stopwatch
;
import
com.google.common.base.Stopwatch
;
...
@@ -65,9 +66,16 @@ public class FeatureServiceImpl implements IFeatureService {
...
@@ -65,9 +66,16 @@ public class FeatureServiceImpl implements IFeatureService {
if
(
StringUtils
.
isBlank
(
uuid
)){
if
(
StringUtils
.
isBlank
(
uuid
)){
throw
new
RuntimeException
(
"获取身份证信息参数为空"
);
throw
new
RuntimeException
(
"获取身份证信息参数为空"
);
}
}
//todo remove
if
(!
TechEnvironment
.
isPro
())
{
IdCardInfo
info
=
new
IdCardInfo
();
info
.
setValid_date_begin
(
"20170901"
);
info
.
setValid_date_end
(
"20370901"
);
return
info
;
}
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"uuid"
,
uuid
);
map
.
put
(
"uuid"
,
uuid
);
String
responce
=
httpService
.
post
Json
(
authUrl
.
concat
(
"
/ex/phone/getOcrReturnResult.json"
),
map
);
String
responce
=
httpService
.
post
(
authUrl
.
concat
(
"/auth-center
/ex/phone/getOcrReturnResult.json"
),
map
);
List
<
IdCardInfo
>
idCardInfoList
=
JacksonUtil
.
deserializeList
(
responce
,
IdCardInfo
.
class
);
List
<
IdCardInfo
>
idCardInfoList
=
JacksonUtil
.
deserializeList
(
responce
,
IdCardInfo
.
class
);
Optional
<
IdCardInfo
>
cardInfo
=
idCardInfoList
.
stream
().
filter
(
d
->
d
.
getSide
().
equals
(
"back"
)).
findFirst
();
Optional
<
IdCardInfo
>
cardInfo
=
idCardInfoList
.
stream
().
filter
(
d
->
d
.
getSide
().
equals
(
"back"
)).
findFirst
();
if
(!
cardInfo
.
isPresent
()){
if
(!
cardInfo
.
isPresent
()){
...
...
src/main/java/com/quantgroup/asset/distribution/service/newrule/CoreFilter.java
View file @
ec0ffa58
...
@@ -131,7 +131,7 @@ public class CoreFilter {
...
@@ -131,7 +131,7 @@ public class CoreFilter {
FundInfo
fundInfo
=
new
FundInfo
();
FundInfo
fundInfo
=
new
FundInfo
();
fundInfo
.
setFundId
(
fundProduct
.
getFundId
());
fundInfo
.
setFundId
(
fundProduct
.
getFundId
());
fundInfo
.
setFundProductId
(
fundProduct
.
getFundProId
()
+
""
);
fundInfo
.
setFundProductId
(
fundProduct
.
getFundProId
()
+
""
);
fundInfo
.
setCooperation
(
CooperationEnum
.
parse
(
fundProduct
.
getOrgType
()));
fundInfo
.
setCooperation
(
CooperationEnum
.
parse
(
fundProduct
.
getOrgType
())
.
ordinal
()
);
Terms
term
=
new
Terms
();
Terms
term
=
new
Terms
();
term
.
setTerm
(
Integer
.
parseInt
(
auditResponce
.
getTerm
()));
term
.
setTerm
(
Integer
.
parseInt
(
auditResponce
.
getTerm
()));
term
.
setFundInfos
(
Lists
.
newArrayList
(
fundInfo
));
term
.
setFundInfos
(
Lists
.
newArrayList
(
fundInfo
));
...
...
src/main/java/com/quantgroup/asset/distribution/service/newrule/pojo/enums/CooperationEnum.java
View file @
ec0ffa58
...
@@ -13,11 +13,11 @@ public enum CooperationEnum {
...
@@ -13,11 +13,11 @@ public enum CooperationEnum {
/**
/**
* 助贷
* 助贷
*/
*/
DIVERSION
,
ASSISTANCE
,
/**
/**
* 导流
* 导流
*/
*/
ASSISTANCE
;
DIVERSION
;
public
static
CooperationEnum
parse
(
String
name
){
public
static
CooperationEnum
parse
(
String
name
){
if
(
StringUtils
.
isBlank
(
name
)){
if
(
StringUtils
.
isBlank
(
name
)){
...
...
src/main/java/com/quantgroup/asset/distribution/service/newrule/pojo/funds/FundInfo.java
View file @
ec0ffa58
...
@@ -17,7 +17,8 @@ public class FundInfo {
...
@@ -17,7 +17,8 @@ public class FundInfo {
private
Integer
rateType
=
1
;
private
Integer
rateType
=
1
;
private
Integer
feeType
=
1
;
private
Integer
feeType
=
1
;
private
Integer
priority
;
private
Integer
priority
;
private
CooperationEnum
cooperation
;
private
Integer
cooperation
;
private
Boolean
waitFlg
=
Boolean
.
FALSE
;
/**
/**
* 产品
* 产品
...
...
src/main/java/com/quantgroup/asset/distribution/service/newrule/specialrules/ContactsTelErrorVerifyImpl.java
View file @
ec0ffa58
...
@@ -42,7 +42,7 @@ public class ContactsTelErrorVerifyImpl extends AbstractProductRuleVerifyImpl {
...
@@ -42,7 +42,7 @@ public class ContactsTelErrorVerifyImpl extends AbstractProductRuleVerifyImpl {
log
.
warn
(
"联系人手机号校验时发现联系人手机号为空,联系人信息 {}"
,
JSON
.
toJSONString
(
info
));
log
.
warn
(
"联系人手机号校验时发现联系人手机号为空,联系人信息 {}"
,
JSON
.
toJSONString
(
info
));
continue
;
continue
;
}
}
if
(
this
.
telVerify
(
info
.
getPhoneNo
())){
if
(
!
this
.
telVerify
(
info
.
getPhoneNo
())){
log
.
warn
(
"联系人手机号校验时发现当前用户手机号有问题,联系人信息 {}"
,
JSON
.
toJSONString
(
info
));
log
.
warn
(
"联系人手机号校验时发现当前用户手机号有问题,联系人信息 {}"
,
JSON
.
toJSONString
(
info
));
return
false
;
return
false
;
}
}
...
...
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