Commit 11db84a0 by fudahua

好友会员数量以及关联数量

parent 816f6f0f
...@@ -193,4 +193,12 @@ public interface ExternalClerkRelatedApiService { ...@@ -193,4 +193,12 @@ public interface ExternalClerkRelatedApiService {
* @date 2021-12-13 15:37:57 * @date 2021-12-13 15:37:57
*/ */
boolean updateNewExternalUserid(String wxEnterpriseId); boolean updateNewExternalUserid(String wxEnterpriseId);
/**
* 获取导购的好有数
*
* @param clerkId
* @return
*/
public int countFriendCountByClerkId(String wxEnterpriseId, String enterpriseId, String wxUserId, String clerkId);
} }
...@@ -252,4 +252,18 @@ public interface TabHaobanExternalClerkRelatedMapper { ...@@ -252,4 +252,18 @@ public interface TabHaobanExternalClerkRelatedMapper {
int updateExternalUserIdByOldExternalUserId(@Param("externalUserId") String externalUserId, int updateExternalUserIdByOldExternalUserId(@Param("externalUserId") String externalUserId,
@Param("oldExternalUserId") String oldExternalUserId, @Param("oldExternalUserId") String oldExternalUserId,
@Param("wxEnterpriseId") String wxEnterpriseId); @Param("wxEnterpriseId") String wxEnterpriseId);
/**
* 获取好友数量
*
* @param wxEnterpriseId 企业id
* @param enterpriseId 商户id
* @param wxUserId 企业微信导购账号
* @param clerkId 导购id
* @return
*/
int countByClerkId(@Param("wxEnterpriseId") String wxEnterpriseId,
@Param("enterpriseId") String enterpriseId,
@Param("wxUserId") String wxUserId,
@Param("clerkId") String clerkId);
} }
\ No newline at end of file
...@@ -376,4 +376,9 @@ public class ExternalClerkRelatedApiServiceImpl implements ExternalClerkRelatedA ...@@ -376,4 +376,9 @@ public class ExternalClerkRelatedApiServiceImpl implements ExternalClerkRelatedA
return new PageInfo<>(tabHaobanWxEnterpriseList); return new PageInfo<>(tabHaobanWxEnterpriseList);
} }
@Override
public int countFriendCountByClerkId(String wxEnterpriseId, String enterpriseId, String wxUserId, String clerkId) {
return tabHaobanExternalClerkRelatedMapper.countByClerkId(wxEnterpriseId, enterpriseId, wxUserId, clerkId);
}
} }
...@@ -591,4 +591,13 @@ ...@@ -591,4 +591,13 @@
and wx_enterprise_id = #{wxEnterpriseId} and wx_enterprise_id = #{wxEnterpriseId}
</update> </update>
<select id="countByClerkId" resultType="Integer">
select count(*)
from tab_haoban_external_clerk_related
where wx_enterprise_id = #{wxEnterpriseId}
and enterprise_id = #{enterpriseId}
and wx_user_id = #{wxUserId}
and clerk_id = #{clerkId}
AND status_flag = 1
</select>
</mapper> </mapper>
\ No newline at end of file
package com.gic.haoban.manage.web.vo.notify;
import java.io.Serializable;
/**
* Created 2021/12/20.
*
* @author hua
*/
public class CustomerFriendMemberVO implements Serializable {
private int friendCount;
private int memberCount;
public int getFriendCount() {
return friendCount;
}
public void setFriendCount(int friendCount) {
this.friendCount = friendCount;
}
public int getMemberCount() {
return memberCount;
}
public void setMemberCount(int memberCount) {
this.memberCount = memberCount;
}
}
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