提交 154d193b authored 作者: 黄夏豪's avatar 黄夏豪

增加节点信息类的字段 (又加了3个字段)

上级 0c2fda2e
...@@ -90,7 +90,6 @@ public class ModelController { ...@@ -90,7 +90,6 @@ public class ModelController {
} }
} }
modelService.NewTable(tableVO); modelService.NewTable(tableVO);
return ResultUtil.success("","新建成功"); return ResultUtil.success("","新建成功");
} }
...@@ -120,7 +119,6 @@ public class ModelController { ...@@ -120,7 +119,6 @@ public class ModelController {
@ApiOperation("根据表名查询所有数据") @ApiOperation("根据表名查询所有数据")
@GetMapping("/getAll") @GetMapping("/getAll")
public ResponseEntity getAll(String tableName) { public ResponseEntity getAll(String tableName) {
try { try {
return ResultUtil.success( modelService.findAllByName(tableName),""); return ResultUtil.success( modelService.findAllByName(tableName),"");
} catch (SQLException throwables) { } catch (SQLException throwables) {
......
...@@ -132,15 +132,11 @@ public class ModelImpl implements ModelService { ...@@ -132,15 +132,11 @@ public class ModelImpl implements ModelService {
Session session = creatTableUtil.getSession(entityManagerFactory, XML_MAPPING); Session session = creatTableUtil.getSession(entityManagerFactory, XML_MAPPING);
List<ColumnVO> dataList = tableVO.getDataList(); List<ColumnVO> dataList = tableVO.getDataList();
TableInfo tableInfo = new TableInfo(); TableInfo tableInfo = new TableInfo();
tableInfo.setName(tableVO.getModelName()+"_"); tableInfo.setName(tableVO.getModelName()+"_");
tableInfo.setCnName(tableVO.getModelTitle()); tableInfo.setCnName(tableVO.getModelTitle());
tableInfo.setXML(XML_MAPPING); tableInfo.setXML(XML_MAPPING);
tableInfo.setType(2); tableInfo.setType(2);
tableInfoDao.save(tableInfo); tableInfoDao.save(tableInfo);
for (ColumnVO columnVO : dataList) { for (ColumnVO columnVO : dataList) {
...@@ -152,7 +148,6 @@ public class ModelImpl implements ModelService { ...@@ -152,7 +148,6 @@ public class ModelImpl implements ModelService {
columnInfo.setDbName(tableInfo.getCnName()); columnInfo.setDbName(tableInfo.getCnName());
columnInfo.setDbId(tableInfo.getId()); columnInfo.setDbId(tableInfo.getId());
columnInfoDao.save(columnInfo); columnInfoDao.save(columnInfo);
} }
//关闭会话 //关闭会话
session.close(); session.close();
......
...@@ -45,14 +45,23 @@ public class NodeInfo { ...@@ -45,14 +45,23 @@ public class NodeInfo {
@ApiModelProperty("流程名") @ApiModelProperty("流程名")
private String flowName; private String flowName;
@ApiModelProperty("候选人类型")
private String candidateType;
@ApiModelProperty("候选人显示值")
private String candidateLabel;
@ApiModelProperty("候选人显示值")
private String candidateValue;
@ApiModelProperty("0为默认,1为可视,2为公式") @ApiModelProperty("0为默认,1为可视,2为公式")
private Integer type; private Integer expressionType;
@ApiModelProperty("输入框中的值 例如: 同意,不同意") @ApiModelProperty("输入框中的值 例如: 同意,不同意")
private Integer value; private Integer expressionValue;
@ApiModelProperty("连接条件") @ApiModelProperty("连接条件")
private String connectionConditions; private String expressionConnectionConditions;
@ApiModelProperty("判断条件拼接字段 例如:[{'resource':'${people.id}','comparator':'>=','value':'10'}]") @ApiModelProperty("判断条件拼接字段 例如:[{'resource':'${people.id}','comparator':'>=','value':'10'}]")
private String expressionCondition; private String expressionCondition;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论