Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
head_group
xyqb-user2
Commits
a6b0d894
Commit
a6b0d894
authored
Nov 12, 2019
by
杨锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业务限制API。
parent
49a234a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
38 deletions
+8
-38
UserLoanStatusResp.java
...yqb/controller/modifyphoneno/resp/UserLoanStatusResp.java
+0
-31
ModifyPhoneNoServiceImpl.java
...roup/xyqb/service/user/impl/ModifyPhoneNoServiceImpl.java
+8
-7
No files found.
src/main/java/cn/quantgroup/xyqb/controller/modifyphoneno/resp/UserLoanStatusResp.java
deleted
100644 → 0
View file @
49a234a7
package
cn
.
quantgroup
.
xyqb
.
controller
.
modifyphoneno
.
resp
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
* Date: 2019/11/5
* Time: 上午11:49
*
* @author: yangrui
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
UserLoanStatusResp
implements
Serializable
{
private
static
final
long
serialVersionUID
=
6325390529584723230L
;
private
boolean
bizSuc
;
private
String
businessCode
;
private
String
code
;
/**
* true:没有订单; false: 存在订单
*/
private
boolean
data
;
private
String
msg
;
private
boolean
success
;
}
src/main/java/cn/quantgroup/xyqb/service/user/impl/ModifyPhoneNoServiceImpl.java
View file @
a6b0d894
...
...
@@ -8,9 +8,9 @@ import cn.quantgroup.xyqb.controller.modifyphoneno.req.ModifyPhoneNoQueryReq;
import
cn.quantgroup.xyqb.controller.modifyphoneno.req.Step1Req
;
import
cn.quantgroup.xyqb.controller.modifyphoneno.req.Step2Req
;
import
cn.quantgroup.xyqb.controller.modifyphoneno.resp.ProgressResp
;
import
cn.quantgroup.xyqb.controller.modifyphoneno.resp.UserLoanStatusResp
;
import
cn.quantgroup.xyqb.entity.ModifyPhoneNo
;
import
cn.quantgroup.xyqb.exception.DataException
;
import
cn.quantgroup.xyqb.model.JsonResult
;
import
cn.quantgroup.xyqb.repository.IModifyPhoneNoRepository
;
import
cn.quantgroup.xyqb.repository.IUserDetailRepository
;
import
cn.quantgroup.xyqb.repository.IUserRepository
;
...
...
@@ -19,6 +19,7 @@ import cn.quantgroup.xyqb.service.sms.ISmsService;
import
cn.quantgroup.xyqb.service.user.IModifyPhoneNoService
;
import
cn.quantgroup.xyqb.service.user.IUserService
;
import
cn.quantgroup.xyqb.util.DateUtils
;
import
com.alibaba.fastjson.JSONException
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.common.collect.Lists
;
import
com.qiniu.util.Auth
;
...
...
@@ -248,20 +249,20 @@ public class ModifyPhoneNoServiceImpl implements IModifyPhoneNoService {
throw
new
DataException
(
"信息填写有误,请重新填写。"
);
}
log
.
info
(
"allowModify userId = 【{}】"
,
userId
);
String
res
=
httpService
.
get
(
apiHttps
+
"/ex/loan/user/loan_status?userId="
+
userId
);
String
res
=
httpService
.
get
(
apiHttps
+
"/ex/loan/user/loan_status
.json
?userId="
+
userId
);
log
.
info
(
"allowModify res = 【{}】"
,
res
);
if
(
StringUtils
.
isBlank
(
res
))
{
throw
new
DataException
(
"系统内部错误。"
);
}
else
{
try
{
UserLoanStatusResp
userLoanStatusResp
=
JSONObject
.
parseObject
(
res
,
UserLoanStatusResp
.
class
);
if
(
userLoanStatusResp
==
null
)
{
JsonResult
jsonResult
=
JSONObject
.
parseObject
(
res
,
JsonResult
.
class
);
if
(
jsonResult
==
null
)
{
throw
new
DataException
(
"系统内部错误。"
);
}
if
(!
userLoanStatusResp
.
isSuccess
()
||
!
userLoanStatusResp
.
isData
(
))
{
throw
new
DataException
(
"用户存在订单,不支持修改。"
);
if
(!
jsonResult
.
isSuccess
()
||
!
"true"
.
equals
(
jsonResult
.
getData
()
))
{
throw
new
DataException
(
jsonResult
.
getMsg
()
);
}
}
catch
(
Exception
e
)
{
}
catch
(
JSON
Exception
e
)
{
log
.
error
(
"allowModify4Audit e = 【{}】"
,
e
);
throw
new
DataException
(
"系统内部错误。"
);
}
...
...
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