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
4241dcb3
Commit
4241dcb3
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
d83b5f57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
OrderQueryServiceImpl.java
...odule/order/service/order/impl/OrderQueryServiceImpl.java
+6
-10
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 @
4241dcb3
...
@@ -3888,17 +3888,13 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -3888,17 +3888,13 @@ public class OrderQueryServiceImpl implements OrderQueryService {
return
success
(
false
);
return
success
(
false
);
}
}
// 判断发货人是否是当前登录人
// 判断发货人是否是当前登录人
Long
customerId
=
dto
.
getConsignorVO
().
getCustomerId
();
Long
customerContactsId
=
dto
.
getConsignorVO
().
getCustomerContactsId
();
String
phone
=
dto
.
getConsignorVO
().
getPhone
();
CustomerContactsDO
customerContactsDO
=
customerContactsService
.
getById
(
customerContactsId
);
List
<
CustomerContactsDO
>
consignorCustomerList
=
customerContactsService
.
getCustomerContactsListByCustomerId
(
customerId
);
if
(
Objects
.
equals
(
customerContactsDO
.
getUserid
(),
user
.
getId
())){
CustomerContactsDO
customerContactsDO
=
consignorCustomerList
.
stream
().
filter
(
val
->
Objects
.
equals
(
val
.
getPhoneNew
(),
phone
)).
findFirst
().
orElse
(
null
);
if
(
Objects
.
equals
(
customerContactsDO
.
getPhoneNew
(),
user
.
getMobile
())){
return
success
(
true
);
return
success
(
true
);
}
}
Long
customerId1
=
dto
.
getConsigneeVO
().
getCustomerId
();
Long
customerContactsId1
=
dto
.
getConsigneeVO
().
getCustomerContactsId
();
String
phone1
=
dto
.
getConsigneeVO
().
getPhone
();
CustomerContactsDO
customerContactsDO1
=
customerContactsService
.
getById
(
customerContactsId1
);
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
);
List
<
OrderControlLogDO
>
orderControlLogListByOrderIdList
=
orderControlLogService
.
getOrderControlLogListByOrderId
(
orderId
,
null
);
boolean
isFirstAllAllow
=
false
;
boolean
isFirstAllAllow
=
false
;
int
count
=
0
;
// 新增计数器
int
count
=
0
;
// 新增计数器
...
@@ -3914,7 +3910,7 @@ public class OrderQueryServiceImpl implements OrderQueryService {
...
@@ -3914,7 +3910,7 @@ public class OrderQueryServiceImpl implements OrderQueryService {
}
}
}
}
isFirstAllAllow
=
(
count
==
1
);
// 最终判断是否严格等于1
isFirstAllAllow
=
(
count
==
1
);
// 最终判断是否严格等于1
if
(
dto
.
getSumNum
()==
dto
.
getReleaseNum
()&&
dto
.
getCargoControlStatus
()==
1
&&
isFirstAllAllow
&&
msg
.
contains
(
String
.
valueOf
(
customerContactsDO1
.
getPhoneNew
()))
&&
customerContactsDO1
.
get
PhoneNew
().
equals
(
user
.
getMobile
())){
if
(
dto
.
getSumNum
()==
dto
.
getReleaseNum
()&&
dto
.
getCargoControlStatus
()==
1
&&
isFirstAllAllow
&&
msg
.
contains
(
String
.
valueOf
(
customerContactsDO1
.
getPhoneNew
()))
&&
customerContactsDO1
.
get
Userid
().
equals
(
user
.
getId
())){
return
success
(
true
);
return
success
(
true
);
}
}
return
success
(
false
);
return
success
(
false
);
...
...
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