| @@ -211,7 +211,7 @@ public class WxFlowAbleController extends BaseController { | |||||
| * 根据id查询模板 | * 根据id查询模板 | ||||
| */ | */ | ||||
| @ApiOperation(value = "根据id查询模板",notes = "") | @ApiOperation(value = "根据id查询模板",notes = "") | ||||
| @PostMapping(value = "findModelById") | |||||
| @GetMapping(value = "findModelById") | |||||
| @SystemControllerLog(description = "工作流-根据id查询模板") | @SystemControllerLog(description = "工作流-根据id查询模板") | ||||
| public ResultData findById(@RequestBody WxFlowModel wxFlowModel){ | public ResultData findById(@RequestBody WxFlowModel wxFlowModel){ | ||||
| wxFlowModel.setTenantId(getTenantId()); | wxFlowModel.setTenantId(getTenantId()); | ||||
| @@ -0,0 +1,13 @@ | |||||
| drop table if exists `wx_flow_config`; | |||||
| CREATE TABLE `wx_flow_config` ( | |||||
| `id` bigint(20) NOT NULL COMMENT '主键ID', | |||||
| `parent_id` bigint(20) NOT NULL COMMENT '父类id', | |||||
| `tenant_id` varchar(10) NOT NULL COMMENT '租户id', | |||||
| `name` varchar(255) DEFAULT NULL COMMENT '名称', | |||||
| `type` tinyint(1) DEFAULT '0' COMMENT '流程类型1合同审批2账单审批3终止合同', | |||||
| `status` tinyint(1) DEFAULT '0' COMMENT '状态0启用 1停用', | |||||
| `model_id` bigint(20) NOT NULL COMMENT '模板id', | |||||
| `create_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', | |||||
| `update_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', | |||||
| PRIMARY KEY (`id`) | |||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; | |||||
| @@ -99,7 +99,7 @@ public class WxFlowServiceImpl implements WxFlowService { | |||||
| private WxFlowModelMapper wxFlowModelMapper; | private WxFlowModelMapper wxFlowModelMapper; | ||||
| /** | /** | ||||
| * 获取流程key,1合同 2账单 | |||||
| * 获取流程key | |||||
| * @param flowType | * @param flowType | ||||
| * @return | * @return | ||||
| */ | */ | ||||