Commit e042e6f9 by jinxin

添加gic品牌名称字段

parent ba494dcd
...@@ -127,6 +127,18 @@ public class StaffDTO implements Serializable { ...@@ -127,6 +127,18 @@ public class StaffDTO implements Serializable {
* 企微激活码 * 企微激活码
*/ */
private String activeCode; private String activeCode;
/**
* gic品牌名称
*/
private List<String> enterpriseNameList;
public List<String> getEnterpriseNameList() {
return enterpriseNameList;
}
public void setEnterpriseNameList(List<String> enterpriseNameList) {
this.enterpriseNameList = enterpriseNameList;
}
public String getActiveCode() { public String getActiveCode() {
return activeCode; return activeCode;
......
...@@ -107,6 +107,8 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -107,6 +107,8 @@ public class StaffApiServiceImpl implements StaffApiService {
private QywxOrderApiService qywxOrderApiService; private QywxOrderApiService qywxOrderApiService;
@Autowired @Autowired
private GroupChatService groupChatService; private GroupChatService groupChatService;
@Autowired
private WxEnterpriseRelatedService wxEnterpriseRelatedService;
@Override @Override
public StaffDTO selectById(String staffId) { public StaffDTO selectById(String staffId) {
...@@ -154,8 +156,17 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -154,8 +156,17 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
Set<String> staffIdList = staffDTOList.stream().map(dto -> dto.getStaffId()).collect(Collectors.toSet()); Set<String> staffIdList = staffDTOList.stream().map(dto -> dto.getStaffId()).collect(Collectors.toSet());
List<String> relationIdList = this.staffClerkRelationService.listRelationsStaffId(staffIdList); List<String> relationIdList = this.staffClerkRelationService.listRelationsStaffId(staffIdList);
//已关联的成员需要查询关联的品牌名称
List<TabHaobanWxEnterpriseRelated> list = wxEnterpriseRelatedService.getByWxEnterpriseId(wxEnterpriseId);
List<String> enterpriseNameSet = list.stream().map(dto -> dto.getEnterpriseName()).collect(Collectors.toList());
staffDTOList.forEach(one -> { staffDTOList.forEach(one -> {
one.setRelationFlag(relationIdList.contains(one.getStaffId()) ? 1 : 0); if(relationIdList.contains(one.getStaffId())){
one.setRelationFlag(1);
one.setEnterpriseNameList(enterpriseNameSet);
}else {
one.setRelationFlag(0);
}
}); });
return page; return page;
} }
......
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