|
|
@ -800,4 +800,30 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo |
|
|
|
return new PageData<>(list, NumConstant.ONE_NEG); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 社区自组织详情 |
|
|
|
* |
|
|
|
* @param orgId |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public CommunitySelfOrganizationListDTO communitySelfOrganizationDetail(String orgId,String customerId) { |
|
|
|
//获取分类名称字典
|
|
|
|
Result<Map<String, String>> dictMapRes=adminOpenFeignClient.dictMap(DictTypeEnum.SELF_ORG_CATEGORY.getCode()); |
|
|
|
Map<String, String> dictMap = dictMapRes.success() && MapUtils.isNotEmpty(dictMapRes.getData()) ? dictMapRes.getData() : new HashMap<>(); |
|
|
|
CommunitySelfOrganizationListFormDTO formDTO=new CommunitySelfOrganizationListFormDTO(); |
|
|
|
formDTO.setCustomerId(customerId); |
|
|
|
formDTO.setOrgId(orgId); |
|
|
|
List<CommunitySelfOrganizationListDTO> list=baseDao.selectCommunitySelfOrganizationList(formDTO); |
|
|
|
if(CollectionUtils.isEmpty(list)){ |
|
|
|
return null; |
|
|
|
} |
|
|
|
for (CommunitySelfOrganizationListDTO l : list) { |
|
|
|
//赋值分类名称
|
|
|
|
l.setCategoryName(dictMap.get(l.getCategoryCode())); |
|
|
|
} |
|
|
|
return list.get(NumConstant.ZERO); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|