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
644b7db7
Commit
644b7db7
authored
Sep 12, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单中有无收货人字段值与发货人信息中区分,订单中只做是否有无收货人判断属性,客户中是是否允许设置控货无收货人
parent
f0fe3503
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
OrderBusinessServiceImpl.java
...le/order/service/order/impl/OrderBusinessServiceImpl.java
+2
-1
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+8
-5
OrderQueryVO.java
.../cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
+0
-8
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderBusinessServiceImpl.java
View file @
644b7db7
...
...
@@ -1891,6 +1891,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
private
void
updateConsignorAndConsignee
(
OrderConsignorDO
orderConsignorDO
,
OrderConsigneeDO
orderConsigneeDO
,
OrderDO
orderDO
,
List
<
String
>
bugList
)
{
orderDO
.
setHasConsignee
(
Objects
.
nonNull
(
orderConsigneeDO
));
boolean
flag
=
false
;
CustomerDO
consignorDO
=
null
;
CustomerDO
consigneeDO
=
null
;
...
...
@@ -2112,7 +2113,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
// 海外仓归属发货人
order
.
setCustomerId
(
orderConsignorDO
.
getCustomerId
());
}
else
{
if
(
consignorDO
!=
null
&&
!
consignorDO
.
getNoConsignee
()
&&
!
order
.
getHasConsignee
())
{
//发货人档案设置控货无收货人且订单无收获人,归属发货人业绩 -- 层级2
if
(
consignorDO
!=
null
&&
consignorDO
.
getNoConsignee
()
&&
!
order
.
getHasConsignee
())
{
//发货人档案设置控货无收货人且订单无收获人,归属发货人业绩 -- 层级2
order
.
setCustomerId
(
orderConsignorDO
.
getCustomerId
());
}
else
{
if
(
order
.
getDrawee
()
==
1
)
{
//发货人付款
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderServiceImpl.java
View file @
644b7db7
...
...
@@ -948,6 +948,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
public
int
checkOrderSalesman
(
OrderDO
order
,
Long
offerId
,
CustomerDO
consignorDO
,
CustomerDO
consigneeDO
,
OrderConsignorDO
orderConsignorDO
,
OrderConsigneeDO
orderConsigneeDO
)
{
order
.
setHasConsignee
(
Objects
.
nonNull
(
orderConsigneeDO
));
// 订单是否填写了收货人
int
customerType
=
1
;
//1-业绩归属发货人,2-业绩归属收货人
if
(
Objects
.
isNull
(
orderConsigneeDO
))
{
//订单收货人
orderConsigneeDO
=
orderConsigneeService
.
getOne
(
new
LambdaQueryWrapper
<
OrderConsigneeDO
>().
eq
(
OrderConsigneeDO:
:
getOrderId
,
order
.
getOrderId
()).
orderByDesc
(
OrderConsigneeDO:
:
getId
).
last
(
"limit 1"
));
...
...
@@ -970,7 +971,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
// 海外仓归属发货人
order
.
setCustomerId
(
orderConsignorDO
.
getCustomerId
());
}
else
{
if
(
consignorDO
!=
null
&&
!
consignorDO
.
getNoConsignee
()
&&
!
order
.
getHasConsignee
())
{
//发货人档案设置控货无收货人且订单无收获人,归属发货人业绩 -- 层级2
if
(
consignorDO
!=
null
&&
consignorDO
.
getNoConsignee
()
&&
!
order
.
getHasConsignee
())
{
//发货人档案设置控货无收货人且订单无收获人,归属发货人业绩 -- 层级2
order
.
setCustomerId
(
orderConsignorDO
.
getCustomerId
());
}
else
{
if
(
order
.
getDrawee
()
==
1
)
{
//发货人付款
...
...
@@ -1849,8 +1850,8 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if
(
vo
.
getIsCargoControl
()
&&
vo
.
getHasConsignee
()
!=
noConsignee
)
{
ApplyInfoVO
infoVO
=
new
ApplyInfoVO
();
infoVO
.
setName
(
"控货订单发货人控货无收货人"
);
infoVO
.
setOrgValue
(
vo
.
getHasConsignee
()
?
"
是"
:
"否
"
);
infoVO
.
setNewValue
(
noConsignee
?
"
是"
:
"否
"
);
infoVO
.
setOrgValue
(
vo
.
getHasConsignee
()
?
"
有"
:
"无
"
);
infoVO
.
setNewValue
(
noConsignee
?
"
无"
:
"有
"
);
vo
.
setHasConsignee
(
noConsignee
);
applyInfoList
.
add
(
infoVO
);
// 发货人控货无收货人属性设置变动,需要变动客户业绩
...
...
@@ -2558,7 +2559,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
vo
.
setCustomerId
(
orderConsignorBackVO
.
getCustomerId
());
}
}
else
{
if
(
consignorDO
!=
null
&&
!
consignorDO
.
getNoConsignee
()
&&
!
vo
.
getHasConsignee
())
{
//发货人档案设置控货无收货人且订单无收获人,归属发货人业绩 -- 层级2
if
(
consignorDO
!=
null
&&
consignorDO
.
getNoConsignee
()
&&
!
vo
.
getHasConsignee
())
{
//发货人档案设置控货无收货人且订单无收获人,归属发货人业绩 -- 层级2
vo
.
setCustomerId
(
orderConsignorBackVO
.
getCustomerId
());
}
else
{
OrderAssociationOfferInfoEvent
event
=
new
OrderAssociationOfferInfoEvent
(
vo
.
getOrderId
(),
null
,
null
);
...
...
@@ -6263,6 +6264,9 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
consigneeDO
.
setCreateTime
(
now
);
consigneeDO
.
setUpdateTime
(
now
);
orderConsigneeService
.
save
(
consigneeDO
);
newOrder
.
setHasConsignee
(
true
);
}
else
{
newOrder
.
setHasConsignee
(
false
);
}
if
(
newOrder
.
getIsCargoControl
())
{
// 控货信息
...
...
@@ -6431,7 +6435,6 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
newOrder
.
setIsException
(
null
);
newOrder
.
setExceptionReason
(
null
);
newOrder
.
setExternalWarehouseJson
(
null
);
newOrder
.
setHasConsignee
(
null
);
newOrder
.
setHasExitAndEntry
(
null
);
newOrder
.
setHasSendRucangSms
(
null
);
newOrder
.
setHasSendWarehouseInNotice
(
null
);
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
View file @
644b7db7
...
...
@@ -643,14 +643,6 @@ public class OrderQueryVO {
@ApiModelProperty
(
value
=
"是否有收货人"
)
private
Boolean
hasConsignee
;
public
void
setHasConsignee
(
Boolean
hasConsignee
)
{
if
(
Objects
.
nonNull
(
hasConsignee
))
{
// 这里数据的条件正好相反,数据库是同步的客户信息设置,是否允许无收货人,true为允许无收货人
this
.
hasConsignee
=
!
hasConsignee
;
}
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
this
.
asStatus
=
status
;
...
...
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