Browse Source

修改表单数据 同时也更新 流程配置

tags/24080901
PoffyZhang 1 year ago
parent
commit
8c1297085a
1 changed files with 10 additions and 5 deletions
  1. +10
    -5
      pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/SysFormController.java

+ 10
- 5
pmapi/src/main/java/com/ningdatech/pmapi/sys/controller/SysFormController.java View File

@@ -1,9 +1,8 @@
package com.ningdatech.pmapi.sys.controller; package com.ningdatech.pmapi.sys.controller;


import com.ningdatech.basic.model.PageVo;
import com.wflow.bean.dto.WflowFormsDto;
import com.wflow.bean.vo.WflowFormVo; import com.wflow.bean.vo.WflowFormVo;
import com.wflow.bean.vo.WflowModelVo;
import com.wflow.workflow.service.FormService;
import com.wflow.workflow.service.WflowFormsService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@@ -25,11 +24,17 @@ import org.springframework.web.bind.annotation.*;
@RequiredArgsConstructor @RequiredArgsConstructor
public class SysFormController { public class SysFormController {


private final FormService formService;
private final WflowFormsService formService;


@ApiOperation(value = "获取系统表单", notes = "获取系统表单") @ApiOperation(value = "获取系统表单", notes = "获取系统表单")
@GetMapping("/{regionCode}") @GetMapping("/{regionCode}")
public WflowFormVo list(@PathVariable String regionCode) {
public WflowFormVo detail(@PathVariable String regionCode) {
return formService.getFormByRegionCode(regionCode); return formService.getFormByRegionCode(regionCode);
} }

@ApiOperation(value = "编辑系统表单", notes = "编辑系统表单")
@PostMapping("/modify")
public String modify(@Validated @RequestBody WflowFormsDto dto) {
return formService.modifySysForm(dto);
}
} }

Loading…
Cancel
Save