Commit b391d149 by 徐高华

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

Merge branch 'feature/五月需求迭代' of http://git.gicdev.com/haoban3.0/haoban-manage3.0.git into feature/五月需求迭代
parents 123a3165 81473330
...@@ -186,7 +186,8 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -186,7 +186,8 @@ public class StaffApiServiceImpl implements StaffApiService {
List<String> relationIdList = this.staffClerkRelationService.listRelationsStaffId(staffIdList); List<String> relationIdList = this.staffClerkRelationService.listRelationsStaffId(staffIdList);
//已关联的成员需要查询关联的品牌名称 //已关联的成员需要查询关联的品牌名称
List<TabHaobanWxEnterpriseRelated> list = wxEnterpriseRelatedService.getByWxEnterpriseId(wxEnterpriseId); List<TabHaobanWxEnterpriseRelated> list = wxEnterpriseRelatedService.getByWxEnterpriseId(wxEnterpriseId);
Map<String, String> map = list.stream().collect(Collectors.toMap(TabHaobanWxEnterpriseRelated::getEnterpriseId, TabHaobanWxEnterpriseRelated::getEnterpriseName)); //解决空指针异常问题
Map<String, Object> map = list.stream().collect(Collectors.toMap(TabHaobanWxEnterpriseRelated::getEnterpriseId, a->Optional.ofNullable(a.getEnterpriseName())));
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())){
...@@ -195,7 +196,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -195,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(map.get(dto.getEnterpriseId())); enterpriseNameList.add(String.valueOf(map.get(dto.getEnterpriseId())));
} }
} }
if (CollUtil.isNotEmpty(enterpriseNameList)){ if (CollUtil.isNotEmpty(enterpriseNameList)){
......
...@@ -250,6 +250,7 @@ ...@@ -250,6 +250,7 @@
AND a.delete_flag = 0 AND a.delete_flag = 0
AND b.delete_flag = 0 AND b.delete_flag = 0
AND b.status_flag = 1 AND b.status_flag = 1
AND b.end_time >= now()
</select> </select>
......
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