Commit 583552f6 by 徐高华

Merge branch 'feature/五月需求迭代' of…

Merge branch 'feature/五月需求迭代' of http://git.gicdev.com/haoban3.0/haoban-manage3.0.git into feature/五月需求迭代
parents dfdbcd39 53aca31a
...@@ -187,7 +187,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -187,7 +187,7 @@ public class StaffApiServiceImpl implements StaffApiService {
//已关联的成员需要查询关联的品牌名称 //已关联的成员需要查询关联的品牌名称
List<TabHaobanWxEnterpriseRelated> list = wxEnterpriseRelatedService.getByWxEnterpriseId(wxEnterpriseId); List<TabHaobanWxEnterpriseRelated> list = wxEnterpriseRelatedService.getByWxEnterpriseId(wxEnterpriseId);
//解决空指针异常问题 //解决空指针异常问题
Map<String, Object> map = list.stream().collect(Collectors.toMap(TabHaobanWxEnterpriseRelated::getEnterpriseId, a->Optional.ofNullable(a.getEnterpriseName()))); Map<String, String> map = list.stream().collect(HashMap::new,(k, v) -> k.put(v.getEnterpriseId(), v.getEnterpriseName()), HashMap::putAll);
List<StaffClerkRelationDTO> relationDTOList = staffClerkRelationService.listByWxEnterpriseIdAndStaffId(wxEnterpriseId, staffIdList); List<StaffClerkRelationDTO> relationDTOList = staffClerkRelationService.listByWxEnterpriseIdAndStaffId(wxEnterpriseId, staffIdList);
staffDTOList.forEach(one -> { staffDTOList.forEach(one -> {
if(relationIdList.contains(one.getStaffId())){ if(relationIdList.contains(one.getStaffId())){
...@@ -196,7 +196,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -196,7 +196,7 @@ public class StaffApiServiceImpl implements StaffApiService {
List<String> enterpriseNameList = new ArrayList<>(8); List<String> enterpriseNameList = new ArrayList<>(8);
for (StaffClerkRelationDTO dto : relationDTOList){ for (StaffClerkRelationDTO dto : relationDTOList){
if (dto.getStaffId().equals(one.getStaffId())){ if (dto.getStaffId().equals(one.getStaffId())){
enterpriseNameList.add(String.valueOf(map.get(dto.getEnterpriseId()))); enterpriseNameList.add(map.get(dto.getEnterpriseId()));
} }
} }
if (CollUtil.isNotEmpty(enterpriseNameList)){ if (CollUtil.isNotEmpty(enterpriseNameList)){
......
...@@ -102,6 +102,7 @@ public class WxEnterpriseVO implements Serializable { ...@@ -102,6 +102,7 @@ public class WxEnterpriseVO implements Serializable {
private Integer wxSecurityType ; private Integer wxSecurityType ;
private String wxCorpid ; private String wxCorpid ;
private String openCorpid ; private String openCorpid ;
private String wxaAppid ;
public Integer getWxSecurityType() { public Integer getWxSecurityType() {
return wxSecurityType; return wxSecurityType;
...@@ -466,4 +467,12 @@ public class WxEnterpriseVO implements Serializable { ...@@ -466,4 +467,12 @@ public class WxEnterpriseVO implements Serializable {
public void setEnterpriseId(String enterpriseId) { public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId; this.enterpriseId = enterpriseId;
} }
public String getWxaAppid() {
return wxaAppid;
}
public void setWxaAppid(String wxaAppid) {
this.wxaAppid = wxaAppid;
}
} }
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