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
4d740683
Commit
4d740683
authored
Aug 02, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手动重置订单业绩归属的业务完善
parent
140dacde
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
13 deletions
+60
-13
OrderAssociationOfferInfoEvent.java
...ork/apollo/core/event/OrderAssociationOfferInfoEvent.java
+28
-0
OrderBusinessServiceImpl.java
...le/order/service/order/impl/OrderBusinessServiceImpl.java
+16
-13
OrderAssociationOfferListener.java
...o/module/sale/listener/OrderAssociationOfferListener.java
+16
-0
No files found.
yudao-framework/yudao-spring-boot-starter-config/src/main/java/cn/iocoder/yudao/framework/apollo/core/event/OrderAssociationOfferInfoEvent.java
0 → 100644
View file @
4d740683
package
cn
.
iocoder
.
yudao
.
framework
.
apollo
.
core
.
event
;
import
cn.iocoder.yudao.framework.common.validation.Marks
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
@Data
@AllArgsConstructor
public
class
OrderAssociationOfferInfoEvent
{
/**
* 订单ID
*/
private
Long
orderId
;
@ApiModelProperty
(
value
=
"主键ID"
,
required
=
true
)
private
Long
offerId
;
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderBusinessServiceImpl.java
View file @
4d740683
This diff is collapsed.
Click to expand it.
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/listener/OrderAssociationOfferListener.java
View file @
4d740683
...
...
@@ -3,11 +3,14 @@ package cn.iocoder.yudao.module.sale.listener;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.iocoder.yudao.framework.apollo.core.event.OrderAssociationOfferCostEvent
;
import
cn.iocoder.yudao.framework.apollo.core.event.OrderAssociationOfferInfoEvent
;
import
cn.iocoder.yudao.module.product.dto.FeeDto
;
import
cn.iocoder.yudao.module.product.enums.FeeTypeEnum
;
import
cn.iocoder.yudao.module.sale.service.offer.OfferService
;
import
cn.iocoder.yudao.module.sale.vo.offer.EstCostVO
;
import
cn.iocoder.yudao.module.sale.vo.offer.OfferRespVO
;
import
lombok.AllArgsConstructor
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.context.event.EventListener
;
import
org.springframework.stereotype.Component
;
...
...
@@ -53,4 +56,17 @@ public class OrderAssociationOfferListener {
}
}
}
/**
* 根据订单id查询关联报价单信息
*
* @param event 参数与返回值
*/
@EventListener
(
OrderAssociationOfferInfoEvent
.
class
)
public
void
selectOfferInfoByOrderId
(
OrderAssociationOfferInfoEvent
event
)
{
OfferRespVO
offerRespVO
=
offerService
.
getOfferByOrderId
(
event
.
getOrderId
());
if
(
Objects
.
nonNull
(
offerRespVO
))
{
event
.
setOfferId
(
offerRespVO
.
getOfferId
());
}
}
}
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