Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
external
on-site-service
Commits
b92681be
Commit
b92681be
authored
Aug 02, 2022
by
shangtx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 订单价格必须为正
parent
cb11fee3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
SendServiceOrderDTO.java
...m/onsiteservice/common/order/dto/SendServiceOrderDTO.java
+2
-1
No files found.
common/src/main/java/com/onsiteservice/common/order/dto/SendServiceOrderDTO.java
View file @
b92681be
...
@@ -6,6 +6,7 @@ import lombok.Data;
...
@@ -6,6 +6,7 @@ import lombok.Data;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Positive
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
/**
/**
...
@@ -24,8 +25,8 @@ public class SendServiceOrderDTO {
...
@@ -24,8 +25,8 @@ public class SendServiceOrderDTO {
private
Long
id
;
private
Long
id
;
@ApiModelProperty
(
value
=
"订单价格,维修价格不能低于1元"
,
required
=
true
)
@ApiModelProperty
(
value
=
"订单价格,维修价格不能低于1元"
,
required
=
true
)
@Min
(
value
=
0
,
message
=
"维修价格不能低于1元"
)
@NotNull
(
message
=
"请输入维修价格"
)
@NotNull
(
message
=
"请输入维修价格"
)
@Positive
(
message
=
"价格必须为正数"
)
private
BigDecimal
price
;
private
BigDecimal
price
;
}
}
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