//package com.landtool.lanbase.common.utils; // //import com.alibaba.fastjson.JSONArray; //import com.alibaba.fastjson.JSONObject; //import com.landtool.lanbase.config.SysTemPropertyConfig; //import com.landtool.lanbase.modules.sys.entity.SysFieldvalue; //import com.landtool.lanbase.modules.sys.entity.SysResource; // //import org.apache.http.HttpEntity; //import org.apache.http.HttpResponse; //import org.apache.http.client.HttpClient; //import org.apache.http.client.methods.HttpGet; //import org.apache.http.impl.client.DefaultHttpClient; //import org.apache.http.util.EntityUtils; //import org.springframework.beans.factory.annotation.Autowired; // //import java.io.IOException; //import java.util.ArrayList; //import java.util.LinkedHashMap; //import java.util.List; // ///** // * @author lanCatalog // * @Description: TODO(获取字典信息) // * @date 2018-3-22 15:09 // */ //public class FieldUtils { // /** // * 根据字典key获取对应字典值 // * @param Key // * @return // */ // public static LinkedHashMap getFieldListByKey(String Key, SysTemPropertyConfig sysConfig) { // // LinkedHashMap map = new LinkedHashMap(); // List permsList = new ArrayList(); // try { // String url =sysConfig.getApiServer()+ "/api/sys/field/queryListByKey/" + Key; // permsList= HttpOperateUtils.getJsonObjectArray(url,SysFieldvalue.class); // if (permsList != null) { // for (int i = 0; i < permsList.size(); i++) { // SysFieldvalue item = permsList.get(i); // String key =item.getVcode(); // String value =item.getVtext(); // map.put(key, value); // } // } // // } catch (IOException e) { // e.printStackTrace(); // } // return map; // } //}