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
d83b5f57
Commit
d83b5f57
authored
Mar 12, 2025
by
Smile
Committed by
wux
Mar 12, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug312 APP/WEB控货订单下载提单添加限制条件
parent
495f0a53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
OrderQueryServiceImpl.java
...odule/order/service/order/impl/OrderQueryServiceImpl.java
+6
-4
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderQueryServiceImpl.java
View file @
d83b5f57
...
...
@@ -3889,14 +3889,16 @@ public class OrderQueryServiceImpl implements OrderQueryService {
}
// 判断发货人是否是当前登录人
Long
customerId
=
dto
.
getConsignorVO
().
getCustomerId
();
List
<
CustomerContactsDO
>
consigneeCustomerList
=
customerContactsService
.
getCustomerContactsListByCustomerId
(
customerId
);
CustomerContactsDO
customerContactsDO
=
consigneeCustomerList
.
stream
().
filter
(
val
->
Objects
.
equals
(
val
.
getIsDefault
(),
1
)).
findFirst
().
orElse
(
null
);
String
phone
=
dto
.
getConsignorVO
().
getPhone
();
List
<
CustomerContactsDO
>
consignorCustomerList
=
customerContactsService
.
getCustomerContactsListByCustomerId
(
customerId
);
CustomerContactsDO
customerContactsDO
=
consignorCustomerList
.
stream
().
filter
(
val
->
Objects
.
equals
(
val
.
getPhoneNew
(),
phone
)).
findFirst
().
orElse
(
null
);
if
(
Objects
.
equals
(
customerContactsDO
.
getPhoneNew
(),
user
.
getMobile
())){
return
success
(
true
);
}
Long
customerId1
=
dto
.
getConsigneeVO
().
getCustomerId
();
List
<
CustomerContactsDO
>
consignorCustomerList1
=
customerContactsService
.
getCustomerContactsListByCustomerId
(
customerId1
);
CustomerContactsDO
customerContactsDO1
=
consignorCustomerList1
.
stream
().
filter
(
val
->
Objects
.
equals
(
val
.
getIsDefault
(),
1
)).
findFirst
().
orElse
(
null
);
String
phone1
=
dto
.
getConsigneeVO
().
getPhone
();
List
<
CustomerContactsDO
>
consigneeCustomerList
=
customerContactsService
.
getCustomerContactsListByCustomerId
(
customerId1
);
CustomerContactsDO
customerContactsDO1
=
consigneeCustomerList
.
stream
().
filter
(
val
->
Objects
.
equals
(
val
.
getPhoneNew
(),
phone1
)).
findFirst
().
orElse
(
null
);
List
<
OrderControlLogDO
>
orderControlLogListByOrderIdList
=
orderControlLogService
.
getOrderControlLogListByOrderId
(
orderId
,
null
);
boolean
isFirstAllAllow
=
false
;
int
count
=
0
;
// 新增计数器
...
...
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