功能描述: > online列表查询数据 可以通过配置 java增强 修改最终需要展示的数据 > 只有 “开始” 事件有效 示例: 1.访问online表数据 ![](https://img.kancloud.cn/54/a1/54a1b8a0cee335ca4b5d331d833d3532_1629x528.png) 2.增强配置 ![](https://img.kancloud.cn/32/5c/325ccbeb6c846809b4e8223bc28c4ae4_984x638.png) 3.编写java增强类 > 注意:java增强导出,需要实现的接口是:CgformEnhanceJavaListInter与常规的JAVA增强不同。 ``` ~~~ import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaListInter; import org.jeecg.modules.online.config.exception.BusinessException; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.List; import java.util.Map; @Component("cgformEnhanceQueryDemo") public class CgformEnhanceQueryDemo implements CgformEnhanceJavaListInter { @Override public void execute(String tableName, List<Map<String, Object>> data) throws BusinessException { List<VirtualDict> dict = virtualDictData(); for (Map<String, Object> map : data) { Object db = map.get("province"); if(db==null){ continue; } String text = dict.stream() .filter(p -> db.toString().equals(p.getValue())) .map(VirtualDict::getText) .findAny() .orElse(""); map.put("province",text); } } /** * 模拟字典数据 * @return */ private List<VirtualDict> virtualDictData(){ List<VirtualDict> dict = new ArrayList<VirtualDict>(); dict.add(new VirtualDict("bj","北京")); dict.add(new VirtualDict("sd","山东")); dict.add(new VirtualDict("ah","安徽")); return dict; } class VirtualDict { String value; String text; public VirtualDict(String value,String text){ this.value = value; this.text = text; } public String getValue(){ return value; } public String getText(){ return text; } } } ~~~ ``` 4.再次访问online表数据 ![](https://img.kancloud.cn/a9/88/a988c13e4004cc7e933666dd079a63bd_1590x543.png)