Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
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
QG
customer-service
Commits
47856f5e
Commit
47856f5e
authored
Feb 15, 2022
by
yexiong.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
7304bf8b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
16 deletions
+25
-16
OfflineRepayOperateRecord.java
...quantgroup/customer/entity/OfflineRepayOperateRecord.java
+3
-1
OfflineRepaySubmitRecord.java
.../quantgroup/customer/entity/OfflineRepaySubmitRecord.java
+3
-1
VccRest.java
src/main/java/cn/quantgroup/customer/rest/VccRest.java
+11
-8
VccServiceImpl.java
...a/cn/quantgroup/customer/service/impl/VccServiceImpl.java
+8
-6
No files found.
src/main/java/cn/quantgroup/customer/entity/OfflineRepayOperateRecord.java
View file @
47856f5e
...
...
@@ -5,6 +5,7 @@ import org.hibernate.annotations.DynamicInsert;
import
org.hibernate.annotations.DynamicUpdate
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
@Entity
...
...
@@ -17,8 +18,9 @@ import java.time.LocalDateTime;
@NoArgsConstructor
@DynamicUpdate
@DynamicInsert
public
class
OfflineRepayOperateRecord
{
public
class
OfflineRepayOperateRecord
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
9206318459421433518L
;
@Id
@Column
(
name
=
"id"
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
...
...
src/main/java/cn/quantgroup/customer/entity/OfflineRepaySubmitRecord.java
View file @
47856f5e
...
...
@@ -5,6 +5,7 @@ import org.hibernate.annotations.DynamicInsert;
import
org.hibernate.annotations.DynamicUpdate
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
...
...
@@ -20,8 +21,9 @@ import java.util.Date;
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
public
class
OfflineRepaySubmitRecord
{
public
class
OfflineRepaySubmitRecord
implements
Serializable
{
private
static
final
long
serialVersionUID
=
2930019435843122345L
;
@Id
@Column
(
name
=
"id"
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
...
...
src/main/java/cn/quantgroup/customer/rest/VccRest.java
View file @
47856f5e
package
cn
.
quantgroup
.
customer
.
rest
;
import
cn.quantgroup.customer.aop.OperateLog
;
import
cn.quantgroup.customer.rest.param.vcc.OfflineRepaySubmitParam
;
import
cn.quantgroup.customer.rest.param.vcc.UserPreRepayInfoQuery
;
import
cn.quantgroup.customer.rest.vo.JsonResult
;
...
...
@@ -48,7 +49,7 @@ public class VccRest {
return
jsonResult
;
}
catch
(
Exception
e
){
log
.
error
(
"queryPage | 用户待还款查询发生异常"
,
e
);
return
JsonResult
.
buildErrorStateResult
(
"用户待还款查询发生异常
"
);
return
JsonResult
.
buildErrorStateResult
(
"用户待还款查询发生异常
:"
+
e
.
getMessage
()
);
}
}
...
...
@@ -67,7 +68,7 @@ public class VccRest {
return
jsonResult
;
}
catch
(
Exception
e
){
log
.
error
(
"repayPlanDetail | 查询用户分期的详情及试算详情发生异常"
,
e
);
return
JsonResult
.
buildErrorStateResult
(
"查询用户分期的详情及试算详情发生异常
"
);
return
JsonResult
.
buildErrorStateResult
(
"查询用户分期的详情及试算详情发生异常
:"
+
e
.
getMessage
()
);
}
}
...
...
@@ -78,6 +79,7 @@ public class VccRest {
* @return
*/
@PostMapping
(
"/offline_repay/save_submit"
)
@OperateLog
public
JsonResult
saveSubmit
(
HttpServletRequest
request
,
@RequestBody@Valid
OfflineRepaySubmitParam
param
,
BindingResult
bindingResult
){
if
(
bindingResult
.
hasErrors
()){
return
JsonResult
.
buildErrorStateResult
(
bindingResult
.
getFieldError
().
getField
()
+
":"
+
bindingResult
.
getFieldError
().
getDefaultMessage
());
...
...
@@ -103,7 +105,7 @@ public class VccRest {
return
JsonResult
.
buildSuccessResult
(
"请求成功"
,
null
);
}
catch
(
Exception
e
){
log
.
error
(
"saveSubmit | 保存线下还款提交申请时发生异常"
,
e
);
return
JsonResult
.
buildErrorStateResult
(
"保存线下还款提交申请时发生异常
"
);
return
JsonResult
.
buildErrorStateResult
(
"保存线下还款提交申请时发生异常
:"
+
e
.
getMessage
()
);
}
}
...
...
@@ -121,7 +123,7 @@ public class VccRest {
return
JsonResult
.
buildSuccessResult
(
"请求成功"
,
param
);
}
catch
(
Exception
e
){
log
.
error
(
"approval | 点击审批按钮查询信息时发生异常"
,
e
);
return
JsonResult
.
buildErrorStateResult
(
"点击审批按钮查询信息时发生异常
"
);
return
JsonResult
.
buildErrorStateResult
(
"点击审批按钮查询信息时发生异常
:"
,
e
.
getMessage
()
);
}
}
...
...
@@ -139,7 +141,7 @@ public class VccRest {
return
jsonResult
;
}
catch
(
Exception
e
){
log
.
error
(
"queryApprovalRecord | 查询审批流水时发生异常"
,
e
);
return
JsonResult
.
buildErrorStateResult
(
"查询审批流水时发生异常
"
);
return
JsonResult
.
buildErrorStateResult
(
"查询审批流水时发生异常
:"
+
e
.
getMessage
()
);
}
}
...
...
@@ -152,6 +154,7 @@ public class VccRest {
* @return
*/
@GetMapping
(
"/approval/result"
)
@OperateLog
public
JsonResult
approvalResult
(
HttpServletRequest
request
,
@NotNull
String
serialNo
,
String
remark
,
@NotNull
Integer
status
){
log
.
info
(
"approvalResult | 开始提交审批结果,serialNo={},remark={},status={}"
,
serialNo
,
remark
,
status
);
try
{
...
...
@@ -161,7 +164,7 @@ public class VccRest {
return
JsonResult
.
buildSuccessResult
(
"请求成功"
,
null
);
}
catch
(
Exception
e
){
log
.
error
(
"approvalResult | 通过/拒绝审批时发生异常"
,
e
);
return
JsonResult
.
buildErrorStateResult
(
"通过/拒绝审批时发生异常
"
);
return
JsonResult
.
buildErrorStateResult
(
"通过/拒绝审批时发生异常
:"
+
e
.
getMessage
()
);
}
}
...
...
@@ -179,7 +182,7 @@ public class VccRest {
return
JsonResult
.
buildSuccessResult
(
"请求成功"
,
map
);
}
catch
(
Exception
e
){
log
.
error
(
"fileUpload | 文件上传时发生异常"
,
e
);
return
JsonResult
.
buildErrorStateResult
(
"文件上传时发生异常
"
);
return
JsonResult
.
buildErrorStateResult
(
"文件上传时发生异常
:"
+
e
.
getMessage
()
);
}
}
...
...
@@ -205,7 +208,7 @@ public class VccRest {
return
jsonResult
;
}
catch
(
Exception
e
){
log
.
error
(
"queryApplyRecord | 查询线下还款申请记录时发生异常"
,
e
);
return
JsonResult
.
buildErrorStateResult
(
"查询线下还款申请记录时发生异常
"
);
return
JsonResult
.
buildErrorStateResult
(
"查询线下还款申请记录时发生异常
:"
+
e
.
getMessage
()
);
}
}
}
src/main/java/cn/quantgroup/customer/service/impl/VccServiceImpl.java
View file @
47856f5e
...
...
@@ -59,12 +59,8 @@ public class VccServiceImpl implements IVccService {
@Autowired
private
IFastDFSService
fastDfsService
;
private
final
UserSdkImpl
userSdk
;
@Autowired
public
VccServiceImpl
(
UserSdkImpl
userSdk
)
{
this
.
userSdk
=
userSdk
;
}
private
UserSdkImpl
userSdk
;
@Override
public
JsonResult
queryPage
(
UserPreRepayInfoQuery
query
)
throws
Exception
{
...
...
@@ -197,7 +193,12 @@ public class VccServiceImpl implements IVccService {
param
.
setList
(
billList
);
String
[]
split
=
bySerialNoEquals
.
getCredentialsAddress
().
split
(
","
);
List
<
String
>
list
=
Arrays
.
asList
(
split
);
param
.
setCredentialsAddress
(
list
);
List
<
String
>
addressList
=
new
ArrayList
<>();
for
(
String
baseUrl:
list
){
String
viewUrl
=
fastDfsService
.
toUrl
(
baseUrl
);
addressList
.
add
(
viewUrl
);
}
param
.
setCredentialsAddress
(
addressList
);
return
param
;
}
...
...
@@ -277,6 +278,7 @@ public class VccServiceImpl implements IVccService {
String
phone
=
""
;
if
(
StringUtils
.
isNotBlank
(
query
.
getUserId
())){
log
.
info
(
"userSdk={}"
,
userSdk
);
UserSysResult
<
XUser
>
userByUserId
=
userSdk
.
getService
().
findUserByUserId
(
Long
.
getLong
(
query
.
getUserId
()));
phone
=
userByUserId
.
getData
().
getPhoneNo
();
}
...
...
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