Commit 021ac79d by 墨竹

feat:绑定的好友数量

parent 9ef1580f
......@@ -1302,7 +1302,7 @@ public class ClerkController extends WebBaseController {
* @return
*/
@RequestMapping(value = "/getEnterpriseStoreListByStaffId", method = RequestMethod.GET)
public RestResponse<List<StaffStoreVO>> getEnterpriseStoreListByStaffId(Integer manageFlag,String gicEnterpriseId) {
public RestResponse<List<StaffStoreVO>> getEnterpriseStoreListByStaffId(Integer manageFlag, String gicEnterpriseId) {
if (manageFlag == null) {
return RestResponse.failure(Convert.toStr(HaoBanErrCode.ERR_2.getCode()), HaoBanErrCode.ERR_2.getMsg());
}
......@@ -1369,7 +1369,7 @@ public class ClerkController extends WebBaseController {
}
Map<String, EnterpriseDetailDTO> enterpriseTypeMap = enterpriseList.stream().collect(Collectors.toMap(dto -> dto.getEnterpriseId(), dto -> dto));
bindRelationList =staffClerkRelationApiService.listBindCodeByStaffId(enterpriseIdList, staffId);
bindRelationList = staffClerkRelationApiService.listBindCodeByStaffId(enterpriseIdList, staffId);
if (CollectionUtils.isEmpty(bindRelationList)) {
logger.info("没有关联任何商户导购:{}", wxEnterpriseId);
return RestResponse.successResult();
......@@ -1447,13 +1447,16 @@ public class ClerkController extends WebBaseController {
/**
* 会员关联数量
*
* @param staffId
* @param statusFlags
* @return
*/
@RequestMapping("external-friend-count")
public HaobanResponse friendCount(String staffId, List<Integer> statusFlags) {
public HaobanResponse friendCount(String staffId) {
StaffDTO staff = staffApiService.selectById(staffId);
List<Integer> statusFlags = new ArrayList<>();
statusFlags.add(3);
statusFlags.add(4);
int countExternalClerk = externalClerkRelatedApiService.getCountExternalClerk(staff.getWxEnterpriseId(), staffId, statusFlags);
return resultResponse(HaoBanErrCode.ERR_1, countExternalClerk);
}
......
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