Commit 4ff16902 authored by zhouxudong's avatar zhouxudong

更新代码

parent 08330ec7
......@@ -12,6 +12,7 @@ import com.postcard.service.moudle.system.service.ScSourceInfoService;
import org.springframework.util.ObjectUtils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -35,7 +36,13 @@ public class ScSourceInfoServiceImpl extends ServiceImpl<ScSourceInfoMapper, ScS
List<Map> result=new ArrayList<>();
if(!ObjectUtils.isEmpty(scSourceInfo)&& StringUtils.isNotBlank(scSourceInfo.getContactInformation())){
String contactInformation = scSourceInfo.getContactInformation();
result = JSONUtil.toList(contactInformation, Map.class);
String[] split = contactInformation.split(";");
for (String data : split) {
Map map=new HashMap();
String[] split1 = data.split(":");
map.put(split1[0],split1[1]);
result.add(map);
}
}
return result;
}
......
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