Commit 0cd89daf authored by Smile's avatar Smile

bug312 APP/WEB控货订单下载提单添加限制条件

parent 2b502b55
...@@ -3860,14 +3860,16 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -3860,14 +3860,16 @@ public class OrderQueryServiceImpl implements OrderQueryService {
} }
// 判断发货人是否是当前登录人 // 判断发货人是否是当前登录人
Long customerId = dto.getConsignorVO().getCustomerId(); Long customerId = dto.getConsignorVO().getCustomerId();
List<CustomerContactsDO> consigneeCustomerList = customerContactsService.getCustomerContactsListByCustomerId(customerId); String phone = dto.getConsignorVO().getPhone();
CustomerContactsDO customerContactsDO = consigneeCustomerList.stream().filter(val -> Objects.equals(val.getIsDefault(), 1)).findFirst().orElse(null); 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())){ if (Objects.equals(customerContactsDO.getPhoneNew(),user.getMobile())){
return success(true); return success(true);
} }
Long customerId1 = dto.getConsigneeVO().getCustomerId(); Long customerId1 = dto.getConsigneeVO().getCustomerId();
List<CustomerContactsDO> consignorCustomerList1 = customerContactsService.getCustomerContactsListByCustomerId(customerId1); String phone1 = dto.getConsigneeVO().getPhone();
CustomerContactsDO customerContactsDO1 = consignorCustomerList1.stream().filter(val -> Objects.equals(val.getIsDefault(), 1)).findFirst().orElse(null); 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; // 新增计数器
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment