Commit a4650ccb by 墨竹

feat:加好友

parent d37d72fb
...@@ -11,7 +11,7 @@ public interface MemberUnionidRelatedApiService { ...@@ -11,7 +11,7 @@ public interface MemberUnionidRelatedApiService {
/** /**
* 根据导购导购微信id和会员id查询关联关系 * 根据导购导购微信id和会员id查询关联关系
* *
* @param wxUserId : 导购微信id * @param staffId : 导购微信id
* @param memberId : 会员id * @param memberId : 会员id
* @return : 返回导购与会员关联关系 * @return : 返回导购与会员关联关系
*/ */
...@@ -65,7 +65,7 @@ public interface MemberUnionidRelatedApiService { ...@@ -65,7 +65,7 @@ public interface MemberUnionidRelatedApiService {
* 群发助手发送企业微信消息 * 群发助手发送企业微信消息
* *
* @param wxEnterpriseId * @param wxEnterpriseId
* @param userId * @param staffId
* @param extendUserList * @param extendUserList
* @param materialId * @param materialId
* @return {@link String } * @return {@link String }
...@@ -78,7 +78,7 @@ public interface MemberUnionidRelatedApiService { ...@@ -78,7 +78,7 @@ public interface MemberUnionidRelatedApiService {
* 创建企业群发, 支出素材批量发送 * 创建企业群发, 支出素材批量发送
* *
* @param wxEnterpriseId : 微信企业id * @param wxEnterpriseId : 微信企业id
* @param userId : 用户id * @param staffId : 用户id
* @param extendUserList : 发送的用户id * @param extendUserList : 发送的用户id
* @param materialIdList : 素材id列表 * @param materialIdList : 素材id列表
* @return : 返回群发执行结果 * @return : 返回群发执行结果
...@@ -181,7 +181,7 @@ public interface MemberUnionidRelatedApiService { ...@@ -181,7 +181,7 @@ public interface MemberUnionidRelatedApiService {
* 清理外部联系人 * 清理外部联系人
* *
* @param wxEnterpriseId * @param wxEnterpriseId
* @param wxUserId * @param staffId
* @param externalUserIds * @param externalUserIds
*/ */
void cleanNoExsitFriendNew(String wxEnterpriseId, String staffId, List<String> externalUserIds); void cleanNoExsitFriendNew(String wxEnterpriseId, String staffId, List<String> externalUserIds);
......
...@@ -190,6 +190,20 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -190,6 +190,20 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
String changeType = qwFrientNoticeDTO.getChangeType(); String changeType = qwFrientNoticeDTO.getChangeType();
//欧泊莱定制 //欧泊莱定制
if ("del_follow_user".equals(changeType)) { if ("del_follow_user".equals(changeType)) {
delExternalByUser(wxUserId, memberUnionidRelatedDTO);
return;
}
log.info("导购删除好友");
this.delMemberUnionidRelatedProcess(memberUnionidRelatedDTO, wxUserId);
}
}
/**
* 会员删除导购
* @param wxUserId
* @param memberUnionidRelatedDTO
*/
private void delExternalByUser(String wxUserId, MemberUnionidRelatedDTO memberUnionidRelatedDTO) {
log.info("会员删除导购"); log.info("会员删除导购");
String corpId = memberUnionidRelatedDTO.getCorpid(); String corpId = memberUnionidRelatedDTO.getCorpid();
TabHaobanWxApplication tabHaobanWxApplication = wxApplicationMapper.selectByCorpId(corpId, null); TabHaobanWxApplication tabHaobanWxApplication = wxApplicationMapper.selectByCorpId(corpId, null);
...@@ -201,7 +215,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -201,7 +215,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
memberUnionidRelatedDTO.setWxEnterpriseId(wxEnterpriseId); memberUnionidRelatedDTO.setWxEnterpriseId(wxEnterpriseId);
TabHaobanStaff staff = this.staffMapper.selectByUserIdAndEnterpriseId(wxUserId, wxEnterpriseId); TabHaobanStaff staff = this.staffMapper.selectByUserIdAndEnterpriseId(wxUserId, wxEnterpriseId);
if (staff == null) { if (staff == null) {
log.error("员工不存在:{}",wxUserId); log.error("员工不存在:{}", wxUserId);
return; return;
} }
String staffId = staff.getStaffId(); String staffId = staff.getStaffId();
...@@ -225,12 +239,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -225,12 +239,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
wxUserAddLogQDTO.setClerkId(related.getClerkId()); wxUserAddLogQDTO.setClerkId(related.getClerkId());
wxUserAddLogQDTO.setDelClerkFlag(true); wxUserAddLogQDTO.setDelClerkFlag(true);
wxUserAddLogService.save(wxUserAddLogQDTO); wxUserAddLogService.save(wxUserAddLogQDTO);
addDelFriendEvent(related.getUnionid(), related.getClerkId(), wxEnterpriseId, enterpriseId, related.getMemberId(), related.getStoreId(), 0); addDelFriendEvent(related.getUnionid(), related.getClerkId(), wxEnterpriseId, enterpriseId, related.getMemberId(), related.getStoreId(), 0);
return;
}
log.info("导购删除好友");
this.delMemberUnionidRelatedProcess(memberUnionidRelatedDTO, wxUserId);
}
} }
@Override @Override
......
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