Commit d7bd0cad authored by zhengyi's avatar zhengyi

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

parent 1f11eca7
......@@ -104,7 +104,6 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
// 待将最新单号持久化
event.setNewNumber(newNumber);
applicationContext.publishEvent(event);
// 插入
CustomerFollowupDO followup = CustomerFollowupConvert.INSTANCE.convert(createReqVO);
// 设置联系人名称
......
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;
}
......@@ -100,7 +100,7 @@ public class CustomerContactsController {
// @PreAuthorize("@ss.hasPermission('ecw:customer-contacts:query')")
public CommonResult<List<CustomerContactsRespVO>>
getCustomerContactsListByCustomerId(@RequestParam("customerId") Long customerId) {
List<CustomerContactsDO> list =
List<CustomerContactsRespVO> 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());
});
}
}
......
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