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
4812e86b
Commit
4812e86b
authored
Feb 15, 2022
by
yexiong.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
37475111
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
13 deletions
+19
-13
OfflineRepaySubmitRecord.java
.../quantgroup/customer/entity/OfflineRepaySubmitRecord.java
+4
-3
VccRest.java
src/main/java/cn/quantgroup/customer/rest/VccRest.java
+1
-1
OfflineRepaySubmitParam.java
...roup/customer/rest/param/vcc/OfflineRepaySubmitParam.java
+13
-9
VccServiceImpl.java
...a/cn/quantgroup/customer/service/impl/VccServiceImpl.java
+1
-0
No files found.
src/main/java/cn/quantgroup/customer/entity/OfflineRepaySubmitRecord.java
View file @
4812e86b
...
@@ -6,6 +6,7 @@ import javax.persistence.*;
...
@@ -6,6 +6,7 @@ import javax.persistence.*;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
@Entity
@Entity
@Table
(
name
=
"offline_repay_submit_record"
)
@Table
(
name
=
"offline_repay_submit_record"
)
...
@@ -35,7 +36,7 @@ public class OfflineRepaySubmitRecord {
...
@@ -35,7 +36,7 @@ public class OfflineRepaySubmitRecord {
@Column
(
name
=
"actual_amount"
)
@Column
(
name
=
"actual_amount"
)
private
BigDecimal
actualAmount
;
private
BigDecimal
actualAmount
;
@Column
(
name
=
"actual_date"
)
@Column
(
name
=
"actual_date"
)
private
Local
Date
actualDate
;
private
Date
actualDate
;
@Column
(
name
=
"trans_no"
)
@Column
(
name
=
"trans_no"
)
private
String
transNo
;
private
String
transNo
;
@Column
(
name
=
"receive_account"
)
@Column
(
name
=
"receive_account"
)
...
@@ -61,7 +62,7 @@ public class OfflineRepaySubmitRecord {
...
@@ -61,7 +62,7 @@ public class OfflineRepaySubmitRecord {
@Column
(
name
=
"approval_status"
)
@Column
(
name
=
"approval_status"
)
private
Integer
approvalStatus
;
private
Integer
approvalStatus
;
@Column
(
name
=
"create_time"
)
@Column
(
name
=
"create_time"
)
private
LocalDateTim
e
createTime
;
private
Dat
e
createTime
;
@Column
(
name
=
"update_time"
)
@Column
(
name
=
"update_time"
)
private
LocalDateTim
e
updateTime
;
private
Dat
e
updateTime
;
}
}
src/main/java/cn/quantgroup/customer/rest/VccRest.java
View file @
4812e86b
...
@@ -80,7 +80,7 @@ public class VccRest {
...
@@ -80,7 +80,7 @@ public class VccRest {
@PostMapping
(
"/offline_repay/save_submit"
)
@PostMapping
(
"/offline_repay/save_submit"
)
public
JsonResult
saveSubmit
(
HttpServletRequest
request
,
@RequestBody@Valid
OfflineRepaySubmitParam
param
,
BindingResult
bindingResult
){
public
JsonResult
saveSubmit
(
HttpServletRequest
request
,
@RequestBody@Valid
OfflineRepaySubmitParam
param
,
BindingResult
bindingResult
){
if
(
bindingResult
.
hasErrors
()){
if
(
bindingResult
.
hasErrors
()){
return
JsonResult
.
buildErrorStateResult
(
bindingResult
.
getFieldError
(
bindingResult
.
getFieldError
().
getField
()
).
getDefaultMessage
());
return
JsonResult
.
buildErrorStateResult
(
bindingResult
.
getFieldError
(
).
getField
()
+
bindingResult
.
getFieldError
(
).
getDefaultMessage
());
}
}
if
(
param
.
getRepayType
()
==
1
){
if
(
param
.
getRepayType
()
==
1
){
if
(
CollectionUtils
.
isEmpty
(
param
.
getList
())){
if
(
CollectionUtils
.
isEmpty
(
param
.
getList
())){
...
...
src/main/java/cn/quantgroup/customer/rest/param/vcc/OfflineRepaySubmitParam.java
View file @
4812e86b
package
cn
.
quantgroup
.
customer
.
rest
.
param
.
vcc
;
package
cn
.
quantgroup
.
customer
.
rest
.
param
.
vcc
;
import
lombok.Data
;
import
lombok.Data
;
import
org.hibernate.validator.constraints.NotBlank
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
@Data
@Data
...
@@ -16,25 +20,25 @@ public class OfflineRepaySubmitParam {
...
@@ -16,25 +20,25 @@ public class OfflineRepaySubmitParam {
@NotNull
@NotNull
private
BigDecimal
actualAmount
;
private
BigDecimal
actualAmount
;
@NotNull
@NotNull
private
Local
Date
actualDate
;
private
Date
actualDate
;
@Not
Null
@Not
Blank
private
String
transNo
;
private
String
transNo
;
@Not
Null
@Not
Blank
private
String
receiveAccount
;
private
String
receiveAccount
;
@Not
Null
@Not
Blank
private
String
receiveAccountName
;
private
String
receiveAccountName
;
@Not
Null
@Not
Empty
private
List
<
String
>
credentialsAddress
;
private
List
<
String
>
credentialsAddress
;
private
String
mark
;
private
String
mark
;
@NotNull
@NotNull
private
Integer
repayType
;
private
Integer
repayType
;
@Not
Null
@Not
Blank
private
String
name
;
private
String
name
;
@Not
Null
@Not
Blank
private
String
phone
;
private
String
phone
;
@Not
Null
@Not
Blank
private
String
idNo
;
private
String
idNo
;
@Not
Null
@Not
Blank
private
String
repayStatus
;
private
String
repayStatus
;
@NotNull
@NotNull
private
Integer
userId
;
private
Integer
userId
;
...
...
src/main/java/cn/quantgroup/customer/service/impl/VccServiceImpl.java
View file @
4812e86b
...
@@ -36,6 +36,7 @@ import org.springframework.web.multipart.MultipartFile;
...
@@ -36,6 +36,7 @@ import org.springframework.web.multipart.MultipartFile;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.transaction.Transactional
;
import
javax.transaction.Transactional
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.*
;
import
java.util.*
;
...
...
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