Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
f9d497be
Commit
f9d497be
authored
Dec 21, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询估价详情
parent
431b5261
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ConsignSaleServiceImpl.java
...main/java/com/wwdz/ch/wx/impl/ConsignSaleServiceImpl.java
+4
-2
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ConsignSaleServiceImpl.java
View file @
f9d497be
...
@@ -333,17 +333,18 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
...
@@ -333,17 +333,18 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSaleRecordVo
.
setItemName
(
item
.
getName
());
consignSaleRecordVo
.
setItemName
(
item
.
getName
());
consignSaleRecordVo
.
setCustomState
(
consignSale
.
getCustomState
());
consignSaleRecordVo
.
setCustomState
(
consignSale
.
getCustomState
());
consignSaleRecordVo
.
setIsTimeOut
(
false
);
consignSaleRecordVo
.
setIsTimeOut
(
false
);
consignSaleRecordVo
.
setTip
(
"初步估价结果仅供参考,想要获得真实的报价需要将货品送至平台,由平台专家对实物进行专业鉴定才可以得出结果。"
);
consignSaleRecordList
=
consignSaleRecordList
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
().
intValue
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
VALUATE
.
getCode
()).
collect
(
Collectors
.
toList
());
consignSaleRecordList
=
consignSaleRecordList
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
().
intValue
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
VALUATE
.
getCode
()).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
consignSaleRecordList
))
{
if
(
CollectionUtils
.
isEmpty
(
consignSaleRecordList
))
{
consignSaleRecordVo
.
setIsHasPrice
(
false
);
consignSaleRecordVo
.
setIsHasPrice
(
false
);
return
Result
.
success
(
consignSaleRecordVo
);
}
else
{
}
else
{
consignSaleRecordVo
.
setIsHasPrice
(
true
);
consignSaleRecordVo
.
setIsHasPrice
(
true
);
consignSaleRecordVo
.
setContent
(
consignSaleRecordList
.
get
(
0
).
getContent
());
consignSaleRecordVo
.
setContent
(
consignSaleRecordList
.
get
(
0
).
getContent
());
consignSaleRecordVo
.
setRemark
(
consignSaleRecordList
.
get
(
0
).
getRemark
());
consignSaleRecordVo
.
setRemark
(
consignSaleRecordList
.
get
(
0
).
getRemark
());
consignSaleRecordVo
.
setTime
(
consignSaleRecordList
.
get
(
0
).
getCreateTime
());
consignSaleRecordVo
.
setTime
(
consignSaleRecordList
.
get
(
0
).
getCreateTime
());
}
}
consignSaleRecordVo
.
setTip
(
"初步估价结果仅供参考,想要获得真实的报价需要将货品送至平台,由平台专家对实物进行专业鉴定才可以得出结果。"
);
long
num
=
consignSaleRecordList
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
().
intValue
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
USER_CONFIRM_VALUATE
.
getCode
()).
count
();
long
num
=
consignSaleRecordList
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
().
intValue
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
USER_CONFIRM_VALUATE
.
getCode
()).
count
();
//尚未确认
//尚未确认
if
(
num
==
0
)
{
if
(
num
==
0
)
{
...
@@ -389,6 +390,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
...
@@ -389,6 +390,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSaleRecordList
=
consignSaleRecordList
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
().
intValue
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
IDENTIFY
.
getCode
()).
collect
(
Collectors
.
toList
());
consignSaleRecordList
=
consignSaleRecordList
.
stream
().
filter
(
consignSaleRecord
->
consignSaleRecord
.
getType
().
intValue
()
==
ConsignSaleEnum
.
OperateTypeEnum
.
IDENTIFY
.
getCode
()).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
consignSaleRecordList
))
{
if
(
CollectionUtils
.
isEmpty
(
consignSaleRecordList
))
{
consignSaleRecordVo
.
setIsHasPrice
(
false
);
consignSaleRecordVo
.
setIsHasPrice
(
false
);
return
Result
.
success
(
consignSaleRecordVo
);
}
else
{
}
else
{
consignSaleRecordVo
.
setIsHasPrice
(
true
);
consignSaleRecordVo
.
setIsHasPrice
(
true
);
consignSaleRecordVo
.
setContent
(
consignSaleRecordList
.
get
(
0
).
getContent
());
consignSaleRecordVo
.
setContent
(
consignSaleRecordList
.
get
(
0
).
getContent
());
...
...
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