Procházet zdrojové kódy

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

tags/24080901
PoffyZhang před 1 rokem
rodič
revize
8c1297085a
1 změnil soubory, kde provedl 10 přidání a 5 odebrání
  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 Zobrazit soubor

@@ -1,9 +1,8 @@
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.WflowModelVo;
import com.wflow.workflow.service.FormService;
import com.wflow.workflow.service.WflowFormsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
@@ -25,11 +24,17 @@ import org.springframework.web.bind.annotation.*;
@RequiredArgsConstructor
public class SysFormController {

private final FormService formService;
private final WflowFormsService formService;

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

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

Načítá se…
Zrušit
Uložit