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
d7bd0cad
Commit
d7bd0cad
authored
Nov 18, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据客户ID获得联系人列表补充返回客户编号
parent
1f11eca7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
CustomerFollowupServiceImpl.java
...service/customerFollowup/CustomerFollowupServiceImpl.java
+0
-1
CustomerContactsBaseVO.java
.../vo/customer/customerContacts/CustomerContactsBaseVO.java
+8
-0
CustomerContactsController.java
...er/admin/customerContacts/CustomerContactsController.java
+2
-1
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customerFollowup/CustomerFollowupServiceImpl.java
View file @
d7bd0cad
...
...
@@ -104,7 +104,6 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
// 待将最新单号持久化
event
.
setNewNumber
(
newNumber
);
applicationContext
.
publishEvent
(
event
);
// 插入
CustomerFollowupDO
followup
=
CustomerFollowupConvert
.
INSTANCE
.
convert
(
createReqVO
);
// 设置联系人名称
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/customerContacts/CustomerContactsBaseVO.java
View file @
d7bd0cad
package
cn
.
iocoder
.
yudao
.
module
.
customer
.
vo
.
customer
.
customerContacts
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
lombok.*
;
import
io.swagger.annotations.*
;
import
javax.validation.constraints.*
;
...
...
@@ -54,4 +55,11 @@ public class CustomerContactsBaseVO {
@NotNull
(
message
=
"手机号码(不带任何区号)不能为空"
)
private
String
phoneNew
;
/**
* 客户编号
*/
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"客户编号"
)
private
String
customerNumber
;
}
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customerContacts/CustomerContactsController.java
View file @
d7bd0cad
...
...
@@ -100,7 +100,7 @@ public class CustomerContactsController {
// @PreAuthorize("@ss.hasPermission('ecw:customer-contacts:query')")
public
CommonResult
<
List
<
CustomerContactsRespVO
>>
getCustomerContactsListByCustomerId
(
@RequestParam
(
"customerId"
)
Long
customerId
)
{
List
<
CustomerContacts
D
O
>
list
=
List
<
CustomerContacts
RespV
O
>
list
=
customerContactsService
.
getCustomerContactsListByCustomerId
(
customerId
);
List
<
CustomerContactsRespVO
>
respVOList
=
CustomerContactsConvert
.
INSTANCE
.
convertList
(
list
);
...
...
@@ -109,6 +109,7 @@ public class CustomerContactsController {
if
(
customer
!=
null
)
{
respVOList
.
stream
().
forEach
(
customerContactsRespVO
->
{
customerContactsRespVO
.
setCompany
(
customer
.
getCompany
());
customerContactsRespVO
.
setCustomerNumber
(
customer
.
getNumber
());
});
}
}
...
...
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