Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
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
lanbaoming
jiedao-api-boot-master
Commits
adb1330c
Commit
adb1330c
authored
Sep 04, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单状态查询参数传递封装bug解决
parent
b2560fd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
OrderQueryVO.java
.../cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
+18
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
View file @
adb1330c
package
cn
.
iocoder
.
yudao
.
module
.
order
.
vo
.
order
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.*
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
io.swagger.annotations.*
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
;
...
...
@@ -578,6 +581,9 @@ public class OrderQueryVO {
@ApiModelProperty
(
value
=
"订单状态详情见字典:order_status"
)
private
List
<
Integer
>
statusList
;
@ApiModelProperty
(
value
=
"订单状态详情见字典:order_status"
)
private
String
statusString
;
@ApiModelProperty
(
value
=
"订单异常状态(字典 order_abnormal_state)"
)
private
List
<
Integer
>
abnormalStateList
;
...
...
@@ -617,7 +623,19 @@ public class OrderQueryVO {
}
}
}
public
void
setStatusString
(
String
statusString
)
{
if
(
StringUtils
.
isNotBlank
(
statusString
))
{
this
.
asStatusList
=
Arrays
.
stream
(
statusString
.
split
(
StrUtil
.
COMMA
)).
map
(
Integer:
:
parseInt
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isNotEmpty
(
this
.
asStatusList
))
{
this
.
statusList
=
new
ArrayList
<>();
for
(
Integer
asStatus
:
asStatusList
)
{
combinedStateList
(
asStatus
,
this
.
transportId
);
}
}
}
}
public
void
setStatusList
(
List
<
Integer
>
statusList
)
{
this
.
statusList
=
statusList
;
this
.
asStatusList
=
statusList
;
if
(
CollectionUtil
.
isNotEmpty
(
this
.
asStatusList
))
{
this
.
statusList
=
new
ArrayList
<>();
...
...
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