Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-smartcarlife
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f1957aa8
authored
Jul 02, 2026
by
潘诗林
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 客户导出查询条件特殊处理
1 parent
fe88a75f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
src/main/java/cn/com/glsx/dj/smartcarlife/controller/smartCarLife/CustomerInfoController.java
src/main/java/cn/com/glsx/dj/smartcarlife/request/smartcarlife/SearchGoodsOrderRequest.java
src/main/java/cn/com/glsx/dj/smartcarlife/controller/smartCarLife/CustomerInfoController.java
View file @
f1957aa
package
cn
.
com
.
glsx
.
dj
.
smartcarlife
.
controller
.
smartCarLife
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
com.google.common.collect.Lists
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.oreframework.boot.env.OrePropertyConfigurer
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -114,11 +116,15 @@ public class CustomerInfoController {
pagination
.
setNeedCount
(
false
);
CustomerInfoDTO
condition
=
CustomerInfoDTOConvert
.
INSTANCE
.
fromSearchGoodsOrderRequest
(
request
);
condition
.
setYqMerchantIds
(
CommonUtil
.
getMerchantIds
());
pagination
.
setCondition
(
condition
);
if
(
Objects
.
nonNull
(
condition
.
getSource
())){
condition
.
setSourceList
(
Lists
.
newArrayList
(
condition
.
getSource
()));
//转换
if
(
StringUtils
.
isNotBlank
(
request
.
getSourceStr
())){
condition
.
setSourceList
(
Arrays
.
stream
(
request
.
getSourceStr
().
split
(
","
))
.
map
(
String:
:
trim
)
.
filter
(
StringUtils:
:
isNotBlank
)
.
map
(
Byte:
:
parseByte
)
.
collect
(
Collectors
.
toList
()));
}
pagination
.
setCondition
(
condition
);
RpcResponse
<
RpcPagination
<
CustomerInfoDTO
>>
res
=
customerInfoRemote
.
page
(
pagination
);
List
<
OrderCustomerExportVo
>
excels
=
new
ArrayList
<
OrderCustomerExportVo
>();
if
(!
res
.
hasResult
()){
...
...
src/main/java/cn/com/glsx/dj/smartcarlife/request/smartcarlife/SearchGoodsOrderRequest.java
View file @
f1957aa
...
...
@@ -97,6 +97,6 @@ public class SearchGoodsOrderRequest extends AbstractRopRequest{
@ApiModelProperty
(
notes
=
"客户分类"
)
private
String
customerClass
;
@ApiModelProperty
(
name
=
"source
List"
,
notes
=
"创建方式"
,
dataType
=
"Byte
"
)
private
Byte
source
;
@ApiModelProperty
(
name
=
"source
Str"
,
notes
=
"创建方式"
,
dataType
=
"string
"
)
private
String
sourceStr
;
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment