Commit c83204e6 by guojuxing

门店选择器,门店域接口调整

parent 82589d5f
...@@ -89,8 +89,13 @@ public class StoreController { ...@@ -89,8 +89,13 @@ public class StoreController {
ServiceResponse<List<EnterpriseDTO>> enterpriseResponse = enterpriseApiService.listEnterpriseByIds(ownEnterpriseIdList); ServiceResponse<List<EnterpriseDTO>> enterpriseResponse = enterpriseApiService.listEnterpriseByIds(ownEnterpriseIdList);
List<EnterpriseDTO> enterpriseList = enterpriseResponse.getResult(); List<EnterpriseDTO> enterpriseList = enterpriseResponse.getResult();
Map<Integer, String> enterpriseMap = enterpriseList.stream().collect(Collectors.toMap(e -> e.getEnterpriseId(), e -> e.getEnterpriseName()));
Map<Integer, String> enterpriseMap;
if (CollectionUtils.isNotEmpty(enterpriseList)) {
enterpriseMap = enterpriseList.stream().collect(Collectors.toMap(e -> e.getEnterpriseId(), e -> e.getEnterpriseName()));
} else {
enterpriseMap = new HashMap<>();
}
List<StoreWidgetInterfaceShareVO> voList; List<StoreWidgetInterfaceShareVO> voList;
......
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