Commit d7bd0cad authored by zhengyi's avatar zhengyi

根据客户ID获得联系人列表补充返回客户编号

parent 1f11eca7
...@@ -104,7 +104,6 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu ...@@ -104,7 +104,6 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
// 待将最新单号持久化 // 待将最新单号持久化
event.setNewNumber(newNumber); event.setNewNumber(newNumber);
applicationContext.publishEvent(event); applicationContext.publishEvent(event);
// 插入 // 插入
CustomerFollowupDO followup = CustomerFollowupConvert.INSTANCE.convert(createReqVO); CustomerFollowupDO followup = CustomerFollowupConvert.INSTANCE.convert(createReqVO);
// 设置联系人名称 // 设置联系人名称
......
package cn.iocoder.yudao.module.customer.vo.customer.customerContacts; package cn.iocoder.yudao.module.customer.vo.customer.customerContacts;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*; import lombok.*;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import javax.validation.constraints.*; import javax.validation.constraints.*;
...@@ -54,4 +55,11 @@ public class CustomerContactsBaseVO { ...@@ -54,4 +55,11 @@ public class CustomerContactsBaseVO {
@NotNull(message = "手机号码(不带任何区号)不能为空") @NotNull(message = "手机号码(不带任何区号)不能为空")
private String phoneNew; private String phoneNew;
/**
* 客户编号
*/
@TableField(exist = false)
@ApiModelProperty(value = "客户编号")
private String customerNumber;
} }
...@@ -100,7 +100,7 @@ public class CustomerContactsController { ...@@ -100,7 +100,7 @@ public class CustomerContactsController {
// @PreAuthorize("@ss.hasPermission('ecw:customer-contacts:query')") // @PreAuthorize("@ss.hasPermission('ecw:customer-contacts:query')")
public CommonResult<List<CustomerContactsRespVO>> public CommonResult<List<CustomerContactsRespVO>>
getCustomerContactsListByCustomerId(@RequestParam("customerId") Long customerId) { getCustomerContactsListByCustomerId(@RequestParam("customerId") Long customerId) {
List<CustomerContactsDO> list = List<CustomerContactsRespVO> list =
customerContactsService.getCustomerContactsListByCustomerId(customerId); customerContactsService.getCustomerContactsListByCustomerId(customerId);
List<CustomerContactsRespVO> respVOList = List<CustomerContactsRespVO> respVOList =
CustomerContactsConvert.INSTANCE.convertList(list); CustomerContactsConvert.INSTANCE.convertList(list);
...@@ -109,6 +109,7 @@ public class CustomerContactsController { ...@@ -109,6 +109,7 @@ public class CustomerContactsController {
if (customer != null) { if (customer != null) {
respVOList.stream().forEach(customerContactsRespVO -> { respVOList.stream().forEach(customerContactsRespVO -> {
customerContactsRespVO.setCompany(customer.getCompany()); customerContactsRespVO.setCompany(customer.getCompany());
customerContactsRespVO.setCustomerNumber(customer.getNumber());
}); });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment