Commit 9eb1fdfc authored by wux's avatar wux

修复由于联系人中关联会员ID为0导致不能入仓的问题

parent ac46d56b
......@@ -130,7 +130,7 @@ public class CustomerContactsServiceImpl extends AbstractService<CustomerContact
public List<CustomerContactsDO> getCustomerContactsListByCustomerId(Long customerId) {
List<CustomerContactsDO> customerContactsDOS = customerContactsMapper.selectList(new LambdaQueryWrapperX<CustomerContactsDO>().eqIfPresent(CustomerContactsDO::getCustomerId, customerId));
customerContactsDOS.forEach(customerContactsDO -> {
if (customerContactsDO.getUserid()!=null) {
if (customerContactsDO.getUserid()!=null && customerContactsDO.getUserid()!=0L) {
UserRespDTO user = memberUserApi.getUser(customerContactsDO.getUserid());
customerContactsDO.setUsername(user.getNickname());
}
......
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