Commit 3a47b15b by jianan

客户表,fna表单表字段修改2

parent 6419a025
......@@ -236,11 +236,11 @@ public class ApiPolicyFollowController {
.collect(Collectors.toSet());
// 根据保单持有人名称查询用户业务ID
List<Customer> customerList = customerService.lambdaQuery()
.in(Customer::getName, customerNames)
.in(Customer::getNamePyEn, customerNames)
.list();
// 构建保单持有人名称到用户业务ID的映射
Map<String, String> customerNameToBizIdMap = customerList.stream()
.collect(Collectors.toMap(Customer::getName, Customer::getCustomerBizId, (oldValue, newValue) -> oldValue));
.collect(Collectors.toMap(Customer::getNamePyEn, Customer::getCustomerBizId, (oldValue, newValue) -> oldValue));
for (PolicyExcelDTO policyExcelDTO : list) {
String policyNo = policyExcelDTO.getPolicyNo();
......
......@@ -597,7 +597,7 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
follow.setCustomerBizId(appointment.getCustomerBizId());
if (customer != null) {
//客户名称
follow.setCustomerName(customer.getFirstNamePinyin());
follow.setCustomerName(customer.getNamePyEn());
}
//待跟进
follow.setStatus(PolicyFollowStatusEnum.FOLLOW_UP.getItemValue());
......
......@@ -289,7 +289,7 @@ public class FnaServiceImpl extends ServiceImpl<FnaMapper, Fna> implements FnaSe
if (StringUtils.isNotBlank(fnaUpdateRequest.getCustomerBizId())) {
Customer customer = customerService.getByCustomerBizId(fnaUpdateRequest.getCustomerBizId());
fna.setCustomerName(customer.getFirstNamePinyin());
fna.setCustomerName(customer.getNamePyEn());
}
// 设置 状态
String customerBizId = fnaUpdateRequest.getCustomerBizId();
......
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