Commit f353e16f by fudahua

好友关联fix

parent 59dfd77a
......@@ -61,6 +61,7 @@ public class MemberUnionRelatedServiceImpl implements MemberUnionRelatedService
@Override
public void update(MemberUnionidRelatedDTO exsitDTO) {
exsitDTO.setUpdateTime(new Date());
mapper.updateByPrimaryKeySelective(EntityUtil.changeEntityByJSON(MemberUnionidRelated.class, exsitDTO));
}
......
......@@ -430,7 +430,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
String avatar = dto.getAvatar();
String unionId = dto.getUnionid();
if (StringUtils.isAnyBlank(wxUserId, wxEnterpriseId, name, createTime, externalUserId)) {
log.info("【新增外部联系人】wxUserId={},wxEnterpriseId={},name={},createTime={},avatar={},unionId={}", wxUserId, wxEnterpriseId, name, createTime, avatar, unionId, externalUserId);
log.info("【新增外部联系人】wxUserId={},wxEnterpriseId={},name={},createTime={},avatar={},unionId={},externalUserId={}", wxUserId, wxEnterpriseId, name, createTime, avatar, unionId, externalUserId);
checkQywxSettingApiService.saveFriendCallback(wxEnterpriseId, null, dto);
return;
}
......@@ -766,6 +766,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
memberUnionRelatedService.update(dto);
RedisUtil.unlock(lockKey);
RedisUtil.delCache(key);
return dto;
} else {
String memberUnionidRelatedId = memberUnionRelatedService.addMemberUnionidRelated(dto);
......
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