|
@@ -167,12 +167,13 @@ public class LeadServiceImpl extends ServiceImpl<LeadMapper, Lead> implements IL
|
|
|
public void weChatNameLead(String traceId, String weiChatName) {
|
|
public void weChatNameLead(String traceId, String weiChatName) {
|
|
|
log.info("用户微信昵称线索信息:{} {}", traceId, weiChatName);
|
|
log.info("用户微信昵称线索信息:{} {}", traceId, weiChatName);
|
|
|
Lead byTraceId = this.getByTraceId(traceId);
|
|
Lead byTraceId = this.getByTraceId(traceId);
|
|
|
- if (byTraceId == null) {
|
|
|
|
|
|
|
+ if (byTraceId == null || StrUtil.isEmpty(weiChatName)) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
this.update(new LambdaUpdateWrapper<Lead>()
|
|
this.update(new LambdaUpdateWrapper<Lead>()
|
|
|
.eq(Lead::getTraceId, traceId)
|
|
.eq(Lead::getTraceId, traceId)
|
|
|
- .set(ObjectUtil.isNotEmpty(weiChatName), Lead::getWeiChatName, weiChatName)
|
|
|
|
|
|
|
+ .isNull(Lead::getWeiChatName)
|
|
|
|
|
+ .set(Lead::getWeiChatName, weiChatName)
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|