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
001209de
Commit
001209de
authored
Aug 28, 2019
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批期数 金额 默认值 取消非空限制
parent
28064fc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ApproveVo.java
...uantgroup/cashloanflowboss/api/order/model/ApproveVo.java
+0
-2
OrderService.java
...roup/cashloanflowboss/api/order/service/OrderService.java
+8
-0
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/order/model/ApproveVo.java
View file @
001209de
...
...
@@ -16,9 +16,7 @@ public class ApproveVo {
@NotNull
(
message
=
"审批,订单号不能为空"
)
private
String
channelOrderNumber
;
@NotNull
(
message
=
"审批,金额不能为空"
)
private
String
amount
;
@NotNull
(
message
=
"审批,期数不能为空"
)
private
Integer
period
;
@NotNull
(
message
=
"审批,资金类型不能为空"
)
private
Integer
fundType
;
...
...
src/main/java/cn/quantgroup/cashloanflowboss/api/order/service/OrderService.java
View file @
001209de
...
...
@@ -140,6 +140,14 @@ public class OrderService {
}
public
Boolean
approveOpt
(
ApproveVo
approveVo
)
{
if
(
StringUtils
.
isEmpty
(
approveVo
.
getAmount
()))
{
// 如果UI 金额为空 默认4000
approveVo
.
setAmount
(
"4000"
);
}
if
(
approveVo
.
getPeriod
()
==
null
)
{
// 如果UI 期数为空 3期
approveVo
.
setPeriod
(
3
);
}
ClfOrderMapping
orderMapping
=
clfOrderMappingRepository
.
findByChannelOrderNoLastOne
(
approveVo
.
getChannelOrderNumber
());
if
(
orderMapping
==
null
)
{
...
...
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