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
a45fd369
Commit
a45fd369
authored
Apr 16, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release'
parents
3197e2d0
d09f1dd4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
5 deletions
+28
-5
OfferAssociationOrderEvent.java
...amework/apollo/core/event/OfferAssociationOrderEvent.java
+5
-0
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+2
-2
OfferAssociationOrderListener.java
...o/module/sale/listener/OfferAssociationOrderListener.java
+7
-2
OfferService.java
...iocoder/yudao/module/sale/service/offer/OfferService.java
+13
-0
OfferServiceImpl.java
...udao/module/sale/service/offer/impl/OfferServiceImpl.java
+1
-1
No files found.
yudao-framework/yudao-spring-boot-starter-config/src/main/java/cn/iocoder/yudao/framework/apollo/core/event/OfferAssociationOrderEvent.java
View file @
a45fd369
...
...
@@ -19,4 +19,9 @@ public class OfferAssociationOrderEvent {
* 订单编号
*/
private
String
orderNo
;
/**
* 操作人
*/
private
String
operator
;
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderServiceImpl.java
View file @
a45fd369
...
...
@@ -349,7 +349,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
// 如果报价单id不为空,则表示此订单关联报价单
if
(
Objects
.
nonNull
(
createReqVO
.
getOfferId
())
&&
createReqVO
.
getOfferId
()
>
0L
)
{
applicationContext
.
publishEvent
(
new
OfferAssociationOrderEvent
(
createReqVO
.
getOfferId
(),
order
.
getOrderId
(),
order
.
getOrderNo
()));
applicationContext
.
publishEvent
(
new
OfferAssociationOrderEvent
(
createReqVO
.
getOfferId
(),
order
.
getOrderId
(),
order
.
getOrderNo
()
,
order
.
getCreator
()
));
}
try
{
if
(
memberUserDO
!=
null
&&
null
!=
createReqVO
.
getUserId
())
{
...
...
@@ -1389,7 +1389,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
// 如果报价单id不为空,则表示此订单关联报价单
if
(
Objects
.
nonNull
(
updateReqVO
.
getOfferId
())
&&
updateReqVO
.
getOfferId
()
>
0L
)
{
applicationContext
.
publishEvent
(
new
OfferAssociationOrderEvent
(
updateReqVO
.
getOfferId
(),
updateObj
.
getOrderId
(),
updateObj
.
getOrderNo
()));
applicationContext
.
publishEvent
(
new
OfferAssociationOrderEvent
(
updateReqVO
.
getOfferId
(),
updateObj
.
getOrderId
(),
updateObj
.
getOrderNo
()
,
updater
));
}
// 更新特需
this
.
saveOrUpdateSpecialNeed
(
updateObj
.
getOrderId
(),
updateObj
.
getPackageType
(),
updateObj
.
getPackageRemarks
(),
updater
,
now
);
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/listener/OfferAssociationOrderListener.java
View file @
a45fd369
...
...
@@ -10,6 +10,7 @@ import lombok.AllArgsConstructor;
import
org.springframework.context.event.EventListener
;
import
org.springframework.stereotype.Component
;
import
java.util.Date
;
import
java.util.Objects
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
exception
.
util
.
ServiceExceptionUtil
.
exception
;
...
...
@@ -34,10 +35,10 @@ public class OfferAssociationOrderListener {
@EventListener
(
OfferAssociationOrderEvent
.
class
)
public
void
OfferUpdateOrderNumber
(
OfferAssociationOrderEvent
event
)
{
OfferDO
offerDO
=
offerService
.
getOffer
(
event
.
getOfferId
());
if
(
Objects
.
isNull
(
offerDO
)){
if
(
Objects
.
isNull
(
offerDO
))
{
throw
exception
(
OFFER_NOT_EXISTS
);
}
if
(
offerDO
.
getStatus
()
==
1
)
{
if
(
offerDO
.
getStatus
()
==
1
)
{
throw
exception
(
OFFER_STATUS_ERROR
);
}
if
(
Objects
.
nonNull
(
offerDO
.
getOrderId
())
&&
offerDO
.
getOrderId
()
>
0L
)
{
...
...
@@ -47,6 +48,10 @@ public class OfferAssociationOrderListener {
}
offerDO
.
setOrderNo
(
event
.
getOrderNo
());
offerDO
.
setOrderId
(
event
.
getOrderId
());
offerDO
.
setStatus
(
4
);
offerDO
.
setUpdater
(
event
.
getOperator
());
offerDO
.
setUpdateTime
(
new
Date
());
offerService
.
updateById
(
offerDO
);
offerService
.
addOfferLog
(
offerDO
.
getOfferId
(),
offerDO
.
getNumber
(),
offerDO
.
getRelationId
(),
6
,
event
.
getOperator
(),
"报价单赢单"
);
}
}
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/service/offer/OfferService.java
View file @
a45fd369
...
...
@@ -175,4 +175,17 @@ public interface OfferService extends IService<OfferDO> {
void
associationOfferAndOrder
(
Long
offerId
,
Long
orderId
);
EstCostVO
getOfferCostByOrderId
(
Long
orderId
);
/**
* 报价单操作日志添加
*
* @param offerId 报价单ID
* @param number 报价单号
* @param customerId 客户ID
* @param followUpMethod 方式 1:新建报价 2 修改报价 3特价申请 4电话 5网络 6报价结束
* @param userId 操作用户ID(业务员ID)
* @param result 处理结果说明
*/
void
addOfferLog
(
Long
offerId
,
String
number
,
Long
customerId
,
Integer
followUpMethod
,
String
userId
,
String
result
);
}
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/service/offer/impl/OfferServiceImpl.java
View file @
a45fd369
...
...
@@ -291,7 +291,7 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl
* @param userId 操作用户ID(业务员ID)
* @param result 处理结果说明
*/
p
rivate
void
addOfferLog
(
Long
offerId
,
String
number
,
Long
customerId
,
Integer
followUpMethod
,
String
userId
,
String
result
)
{
p
ublic
void
addOfferLog
(
Long
offerId
,
String
number
,
Long
customerId
,
Integer
followUpMethod
,
String
userId
,
String
result
)
{
String
contacts
=
""
;
if
(
null
!=
customerId
)
{
// TODO 查询客户信息
...
...
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