* 1、普通下拉选项
* 2、树形下拉选项
*
*/
public String store(){
Dic dictionary=dicService.getDic(dic);
if(dictionary==null){
LOG.info("没有找到数据词典 "+dic);
return null;
}
if("true".equals(tree)){
String json = dicService.toStoreJson(dictionary);
Struts2Utils.renderJson(json);
}else{
List<Map<String,String>> data=new ArrayList<>();
for(DicItem item : dictionary.getDicItems()){
Map<String,String> map=new HashMap<>();
if(justCode){
map.put("value", item.getCode());
}else{
map.put("value", item.getId().toString());