| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | |
| | | return R.ok("Update Success").add(flowStepInstance); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:task:update')") |
| | | @OperationLog("Jump Current 子流程步骤实例") |
| | | @PostMapping("/flowStepInstance/jumpCurrent/{id}") |
| | | public R jumpCurrent(@PathVariable("id") Long id) { |
| | | if (!flowStepInstanceService.jumpCurrent(id)) { |
| | | return R.error("跳转异常"); |
| | | } |
| | | return R.ok("跳转成功").add(id); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:task:remove')") |
| | | @OperationLog("Delete 子流程步骤实例") |
| | | @PostMapping("/flowStepInstance/remove/{ids}") |
| | |
| | | } |
| | | |
| | | } |
| | | |