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
4477e6eb
Commit
4477e6eb
authored
Nov 13, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改跟进状态可以由已提交修改为未提交
parent
bac48d7b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
+15
-7
20240903.sql
sql/v2.1/20240903.sql
+1
-1
CustomerFollowupServiceImpl.java
...service/customerFollowup/CustomerFollowupServiceImpl.java
+4
-4
CustomerFollowupController.http
...er/admin/customerFollowup/CustomerFollowupController.http
+9
-1
CustomerOperateTypeEnum.java
...coder/yudao/module/ecw/enums/CustomerOperateTypeEnum.java
+1
-1
No files found.
sql/v2.1/20240903.sql
View file @
4477e6eb
...
...
@@ -11,7 +11,7 @@ VALUES (25, '25', '新增跟进纪录', 'Create Customer Followup', 'customer_op
INSERT
INTO
`system_dict_data`
(
`sort`
,
`value`
,
`label`
,
`label_en`
,
`dict_type`
,
`status`
,
`color_type`
,
`css_class`
,
`remark`
,
`creator`
,
`create_time`
,
`updater`
,
`update_time`
,
`deleted`
)
VALUES
(
26
,
'26'
,
'编辑跟进纪录'
,
'Update Customer Followup'
,
'customer_operate_type'
,
0
,
'default'
,
''
,
NULL
,
'1'
,
now
(),
'115'
,
now
(),
b
'0'
);
INSERT
INTO
`system_dict_data`
(
`sort`
,
`value`
,
`label`
,
`label_en`
,
`dict_type`
,
`status`
,
`color_type`
,
`css_class`
,
`remark`
,
`creator`
,
`create_time`
,
`updater`
,
`update_time`
,
`deleted`
)
VALUES
(
27
,
'27'
,
'
提交跟进纪录
'
,
'Commit Customer Followup'
,
'customer_operate_type'
,
0
,
'default'
,
''
,
NULL
,
'1'
,
now
(),
'115'
,
now
(),
b
'0'
);
VALUES
(
27
,
'27'
,
'
修改跟进状态
'
,
'Commit Customer Followup'
,
'customer_operate_type'
,
0
,
'default'
,
''
,
NULL
,
'1'
,
now
(),
'115'
,
now
(),
b
'0'
);
INSERT
INTO
`system_dict_data`
(
`sort`
,
`value`
,
`label`
,
`label_en`
,
`dict_type`
,
`status`
,
`color_type`
,
`css_class`
,
`remark`
,
`creator`
,
`create_time`
,
`updater`
,
`update_time`
,
`deleted`
)
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customerFollowup/CustomerFollowupServiceImpl.java
View file @
4477e6eb
...
...
@@ -17,14 +17,12 @@ import cn.iocoder.yudao.module.customer.dal.dataobject.customerFollowup.Customer
import
cn.iocoder.yudao.module.customer.dal.mysql.customer.CustomerMapper
;
import
cn.iocoder.yudao.module.customer.dal.mysql.customerContacts.CustomerContactsMapper
;
import
cn.iocoder.yudao.module.customer.dal.mysql.customerFollowup.CustomerFollowupMapper
;
import
cn.iocoder.yudao.module.customer.enums.ErrorCodeConstants
;
import
cn.iocoder.yudao.module.customer.service.customerOperateLog.CustomerOperateLogService
;
import
cn.iocoder.yudao.module.customer.vo.customerFollowup.*
;
import
cn.iocoder.yudao.module.customer.vo.customerOperateLog.CustomerOperateLogCreateReqVO
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerFollowupStatusEnum
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerOperateTypeEnum
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -213,6 +211,8 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
for
(
Long
id
:
ids
)
{
CustomerFollowupDO
customerFollowupDO
=
followupMapper
.
selectById
(
id
);
Integer
statusOld
=
customerFollowupDO
.
getStatus
();
customerFollowupDO
.
setStatus
(
updateStatusReqVO
.
getStatus
());
customerFollowupDO
.
setUpdater
(
String
.
valueOf
(
userId
));
customerFollowupDO
.
setUpdateTime
(
now
);
...
...
@@ -236,8 +236,8 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
.
setOldCustomerService
(
customer
.
getCustomerService
())
.
setOldEstimateEnterOpenSeaTime
(
customer
.
getEstimateEnterOpenSeaTime
())
.
setNewEstimateEnterOpenSeaTime
(
customer
.
getEstimateEnterOpenSeaTime
())
.
setOperateType
(
CustomerOperateTypeEnum
.
FOLLOWUP_
COMMIT
.
getValue
())
.
setRemark
(
"提交跟进纪录"
);
.
setOperateType
(
CustomerOperateTypeEnum
.
FOLLOWUP_
UPDATE_STATUS
.
getValue
())
.
setRemark
(
String
.
format
(
"由【%s】修改为【%s】"
,
statusOld
==
1
?
"已提交"
:
"未提交"
,
updateStatusReqVO
.
getStatus
()
==
1
?
"已提交"
:
"未提交"
)
);
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
}
}
...
...
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customerFollowup/CustomerFollowupController.http
View file @
4477e6eb
...
...
@@ -10,4 +10,12 @@ Content-Type: application/json
GET {{baseUrl}}/customer/followup/page?pageNo=1&pageSize=10&followMethods[0]=1&followMethods[1]=2&beginCreateTime=&endCreateTime=1714485925000
Authorization: Bearer {{token}}
tenant-id: {{adminTenentId}}
Content-Type: application/json
\ No newline at end of file
Content-Type: application/json
### 客户跟进修改状态
PUT {{baseUrl}}//customer/followup/update-status
Authorization: Bearer {{token}}
tenant-id: {{adminTenentId}}
Content-Type: application/json
{"ids":[513,512],"status":1}
\ No newline at end of file
yudao-module-ecw/yudao-module-ecw-api/src/main/java/cn/iocoder/yudao/module/ecw/enums/CustomerOperateTypeEnum.java
View file @
4477e6eb
...
...
@@ -56,7 +56,7 @@ public enum CustomerOperateTypeEnum {
FOLLOWUP_CREATE
(
25
,
"新增跟进纪录"
),
FOLLOWUP_UPDATE
(
26
,
"编辑跟进纪录"
),
FOLLOWUP_
COMMIT
(
27
,
"提交跟进纪录
"
),
FOLLOWUP_
UPDATE_STATUS
(
27
,
"修改跟进状态
"
),
...
...
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