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
2042616b
Commit
2042616b
authored
Feb 24, 2025
by
Smile
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务103 跟进记录调整
parent
dd708fe2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
1 deletion
+60
-1
CustomerFollowupServiceImpl.java
...service/customerFollowup/CustomerFollowupServiceImpl.java
+1
-1
OfferService.java
...iocoder/yudao/module/sale/service/offer/OfferService.java
+8
-0
OfferServiceImpl.java
...udao/module/sale/service/offer/impl/OfferServiceImpl.java
+20
-0
OfferUpdateByCustomerFollowReqVO.java
...odule/sale/vo/offer/OfferUpdateByCustomerFollowReqVO.java
+23
-0
OfferController.java
...o/module/sale/controller/admin/offer/OfferController.java
+8
-0
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customerFollowup/CustomerFollowupServiceImpl.java
View file @
2042616b
...
...
@@ -175,7 +175,7 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
if
(
Objects
.
isNull
(
followup
.
getFollowUserId
())){
throw
exception
(
CUSTOMER_SERVICE_NOT_NULL
);
}
if
(
Objects
.
isNull
(
followup
.
getSaleStage
())){
if
(
Objects
.
isNull
(
followup
.
getSaleStage
())
&&
followup
.
getFollowType
()
==
2
){
throw
exception
(
SALE_STAGE_NOT_NULL
);
}
// if (Objects.isNull(followup.getResultType())){
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/service/offer/OfferService.java
View file @
2042616b
...
...
@@ -35,6 +35,14 @@ public interface OfferService extends IService<OfferDO> {
void
updateOffer
(
@Valid
OfferUpdateReqVO
updateReqVO
);
/**
* 客户跟进更新报价单管理
*
* @param updateReqVO 更新信息
*/
void
updateOfferByCustomerFollow
(
@Valid
OfferUpdateByCustomerFollowReqVO
updateReqVO
);
/**
* 删除报价单管理
*
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/service/offer/impl/OfferServiceImpl.java
View file @
2042616b
...
...
@@ -610,6 +610,26 @@ public class OfferServiceImpl extends AbstractService<OfferMapper, OfferDO> impl
}
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateOfferByCustomerFollow
(
OfferUpdateByCustomerFollowReqVO
updateReqVO
)
{
OfferDO
offerDO
=
offerMapper
.
selectById
(
updateReqVO
.
getOfferId
());
if
(
Objects
.
isNull
(
offerDO
))
{
throw
exception
(
OFFER_NOT_EXISTS
);
}
if
(
Objects
.
nonNull
(
updateReqVO
.
getCargoStatus
()))
{
offerDO
.
setCargoStatus
(
updateReqVO
.
getCargoStatus
());
}
if
(
Objects
.
nonNull
(
updateReqVO
.
getSaleStage
()))
{
offerDO
.
setSaleStage
(
updateReqVO
.
getSaleStage
());
}
String
updater
=
String
.
valueOf
(
SecurityFrameworkUtils
.
getLoginUserId
());
offerDO
.
setUpdateTime
(
new
Date
());
offerDO
.
setUpdater
(
updater
);
offerMapper
.
updateById
(
offerDO
);
}
@Override
public
void
deleteOffer
(
Long
id
)
{
// 删除
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/vo/offer/OfferUpdateByCustomerFollowReqVO.java
0 → 100644
View file @
2042616b
package
cn
.
iocoder
.
yudao
.
module
.
sale
.
vo
.
offer
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
import
javax.validation.constraints.NotNull
;
@ApiModel
(
"管理后台 - 报价单管理更新 Request VO"
)
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ToString
(
callSuper
=
true
)
public
class
OfferUpdateByCustomerFollowReqVO
extends
OfferBaseVO
{
@ApiModelProperty
(
value
=
"主键ID"
,
required
=
true
)
@NotNull
(
message
=
"主键ID不能为空"
)
private
Long
offerId
;
}
yudao-module-sale/yudao-module-sale-rest/src/main/java/cn/iocoder/yudao/module/sale/controller/admin/offer/OfferController.java
View file @
2042616b
...
...
@@ -79,6 +79,14 @@ public class OfferController {
return
success
(
true
);
}
@PutMapping
(
"/updateByCustomerFollow"
)
@ApiOperation
(
"客户跟进更新报价单管理"
)
// @PreAuthorize("@ss.hasPermission('ecw:offer:update')")
public
CommonResult
<
Boolean
>
updateOfferByCustomerFollow
(
@Valid
@RequestBody
OfferUpdateByCustomerFollowReqVO
updateReqVO
)
{
offerService
.
updateOfferByCustomerFollow
(
updateReqVO
);
return
success
(
true
);
}
@PutMapping
(
"/update/result"
)
@ApiOperation
(
"更新报价单结果"
)
...
...
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