public String getControlMerInfo() { ControlMerInfoService controlMerInfoService = SpringContextHolder.getBean("controlMerInfoService"); List<Object> collection = new ArrayList<Object>(); Map map = new HashMap(); collection.addAll(controlMerInfoService.getListByMap(map)); Set<String> unIncludes = new HashSet<String>(); return BeanUtil.getCollection2XML(collection, "root", "ControlMerInfo", unIncludes); }
public String saveControlMerInfo( String controlMerName, String controlMerNameE, String simpleName, String description) { ControlMerInfoService controlMerInfoService = SpringContextHolder.getBean("controlMerInfoService"); ControlMerInfo controlMerInfo = new ControlMerInfo(); controlMerInfo.setControlMerName(controlMerName); controlMerInfo.setControlMerNameE(controlMerNameE); controlMerInfo.setSimpleName(simpleName); controlMerInfo.setDescription(description); controlMerInfoService.save(controlMerInfo); return null; }