|
|
@ -68,15 +68,19 @@ public class IcServiceOrgServiceImpl extends BaseServiceImpl<IcServiceOrgDao, Ic |
|
|
|
Map<String, String> statusMap = statusRes.success() && MapUtils.isNotEmpty(statusRes.getData()) ? statusRes.getData() : new HashMap<>(); |
|
|
|
List<IcServiceOrgListResultDTO.ServiceType> stList = null; |
|
|
|
IcServiceOrgListResultDTO.ServiceType st = null; |
|
|
|
StringBuffer buffer = null; |
|
|
|
for (IcServiceOrgListResultDTO dto : list) { |
|
|
|
stList = new ArrayList<>(); |
|
|
|
buffer = new StringBuffer(""); |
|
|
|
for (String str : dto.getServiceType().split(",")) { |
|
|
|
st = new IcServiceOrgListResultDTO.ServiceType(); |
|
|
|
st.setValue(str); |
|
|
|
st.setName(null != statusMap.get(str) ? statusMap.get(str) : ""); |
|
|
|
stList.add(st); |
|
|
|
buffer.append(buffer.length() > NumConstant.ZERO ? "、" : "").append(st.getName()); |
|
|
|
} |
|
|
|
dto.setServiceTypeList(stList); |
|
|
|
dto.setServiceTypeName(buffer.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -167,13 +171,16 @@ public class IcServiceOrgServiceImpl extends BaseServiceImpl<IcServiceOrgDao, Ic |
|
|
|
Map<String, String> statusMap = statusRes.success() && MapUtils.isNotEmpty(statusRes.getData()) ? statusRes.getData() : new HashMap<>(); |
|
|
|
List<IcServiceOrgListResultDTO.ServiceType> stList = new ArrayList<>(); |
|
|
|
IcServiceOrgListResultDTO.ServiceType st = null; |
|
|
|
StringBuffer buffer = new StringBuffer(""); |
|
|
|
for (String str : resultDTO.getServiceType().split(",")) { |
|
|
|
st = new IcServiceOrgListResultDTO.ServiceType(); |
|
|
|
st.setValue(str); |
|
|
|
st.setName(null != statusMap.get(str) ? statusMap.get(str) : ""); |
|
|
|
stList.add(st); |
|
|
|
buffer.append(buffer.length() > NumConstant.ZERO ? "、" : "").append(st.getName()); |
|
|
|
} |
|
|
|
resultDTO.setServiceTypeList(stList); |
|
|
|
resultDTO.setServiceTypeName(buffer.toString()); |
|
|
|
} |
|
|
|
|
|
|
|
return resultDTO; |
|
|
|