huminmin
5 天以前 7a8827c634b53bb1cb861ebc1fd4ac6d1ae6cb5a
src/main/java/com/ruoyi/approve/controller/ApproveNodeController.java
@@ -2,6 +2,8 @@
import com.ruoyi.approve.pojo.ApproveNode;
import com.ruoyi.approve.service.IApproveNodeService;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -25,6 +27,7 @@
     */
    @GetMapping("/details/{id}")
    @ApiOperation(value = "流程状态详情")
    @Log(title = "流程状态详情", businessType = BusinessType.OTHER)
    public AjaxResult details(@PathVariable String id) {
        return AjaxResult.success(approveNodeService.details(id));
    }
@@ -37,6 +40,7 @@
    @PostMapping("/updateApproveNode")
    @Transactional(rollbackFor = Exception.class)
    @ApiOperation(value = "审批节点")
    @Log(title = "审批节点", businessType = BusinessType.OTHER)
    public AjaxResult updateApproveNode(@RequestBody ApproveNode approveNode) throws IOException {
        approveNodeService.updateApproveNode(approveNode);
        return AjaxResult.success();
@@ -48,6 +52,7 @@
     * @return
     */
    @PostMapping("/init")
    @Log(title = "初始化审批节点", businessType = BusinessType.OTHER)
    public AjaxResult init(String id) {
        approveNodeService.initApproveNodes("",id,1L);
        return AjaxResult.success();