|
@@ -53,18 +53,19 @@ public class EchoNodeFormData {
|
|
|
//查询表名、条件封装的集合
|
|
|
List<BpmRunNodeFormFilterConditionsVo> formDataVoList = bpmRunNodeFromVo.getFormDataVoList();
|
|
|
formDataVoList.forEach(item -> {
|
|
|
+ //表单回填数据查询
|
|
|
+ if (item.isNodeOnlyData()) {//默认是带这个流程条件信息的
|
|
|
+ item.getCondition().put("taskProcessKey", bpmRunNodeFromVo.getTaskProcessKey());
|
|
|
+ item.getCondition().put("taskNodeKey", bpmRunNodeFromVo.getTaskNodeKey());
|
|
|
+ }
|
|
|
//是否是节点回填数据(默认是true)
|
|
|
String listKey = item.getListKey();
|
|
|
if (listKey != null) {
|
|
|
- //下拉框查询
|
|
|
- List<Map<String, Object>> maps = commonMapper.selectDropDownListNotWhere(item.getTableName());
|
|
|
+ //下拉框数据、或者表格多条数据
|
|
|
+ List<Map<String, Object>> maps = commonMapper.selectListMap(item.getTableName(),item.getCondition());
|
|
|
commonEntity.get().getResultMap().put(item.getListKey(), maps);
|
|
|
} else {
|
|
|
- //表单回填数据查询
|
|
|
- if (item.isNodeOnlyData()) {//默认是带这个流程条件信息的
|
|
|
- item.getCondition().put("taskProcessKey", bpmRunNodeFromVo.getTaskProcessKey());
|
|
|
- item.getCondition().put("taskNodeKey", bpmRunNodeFromVo.getTaskNodeKey());
|
|
|
- }
|
|
|
+ //单条数据的回显逻辑
|
|
|
CommonEntity common = commonMapper.selectOne(item.getTableName(), item.getCondition());
|
|
|
commonEntity.get().getResultMap().putAll(common.getResultMap());
|
|
|
}
|