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
97064616
Commit
97064616
authored
Sep 19, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理渠道异常时,如果变更渠道处理方式,是不支持自定义价格修改的
parent
dd0cc472
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
OrderExceptionServiceImpl.java
...der/service/orderException/OrderExceptionServiceImpl.java
+14
-13
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderException/OrderExceptionServiceImpl.java
View file @
97064616
...
...
@@ -1334,22 +1334,23 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
}
List
<
OrderChangePriceParam
>
channelPriceParams
=
new
ArrayList
<>();
if
(
null
!=
vo
.
getChannelPriceList
()
&&
vo
.
getChannelPriceList
().
size
()
>
0
)
{
for
(
OrderExceptionChannelPriceCreateReqVO
channelPrice
:
vo
.
getChannelPriceList
())
{
channelPrice
.
setExceptionId
(
vo
.
getOrderExceptionId
());
channelPrice
.
setExceptionResultId
(
orderExceptionResult
.
getId
());
orderExceptionChannelPriceService
.
createExceptionChannelPrice
(
channelPrice
);
OrderChangePriceParam
priceParam
=
new
OrderChangePriceParam
();
BeanUtil
.
copyProperties
(
channelPrice
,
priceParam
);
channelPriceParams
.
add
(
priceParam
);
}
}
//
List<OrderChangePriceParam> channelPriceParams = new ArrayList<>();
//
if (null != vo.getChannelPriceList() && vo.getChannelPriceList().size() > 0) {
//
for (OrderExceptionChannelPriceCreateReqVO channelPrice : vo.getChannelPriceList()) {
//
channelPrice.setExceptionId(vo.getOrderExceptionId());
//
channelPrice.setExceptionResultId(orderExceptionResult.getId());
//
orderExceptionChannelPriceService.createExceptionChannelPrice(channelPrice);
//
//
OrderChangePriceParam priceParam = new OrderChangePriceParam();
//
BeanUtil.copyProperties(channelPrice, priceParam);
//
channelPriceParams.add(priceParam);
//
}
//
}
this
.
updateById
(
orderExceptionDO
);
//回调之前保存一下异常状态,防止删除
orderBusinessService
.
handleOrderChannelException
(
orderExceptionDO
.
getOrderId
(),
vo
.
getChannelId
(),
vo
.
getLineId
(),
channelPriceParams
);
// orderBusinessService.handleOrderChannelException(orderExceptionDO.getOrderId(), vo.getChannelId(), vo.getLineId(), channelPriceParams);
orderBusinessService
.
handleOrderChannelException
(
orderExceptionDO
.
getOrderId
(),
vo
.
getChannelId
(),
vo
.
getLineId
(),
null
);
}
else
{
throw
exception
(
ORDER_HANDLER_EXCEPTION_NOT_EXISTS
);
}
...
...
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