| | |
| | | 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 |
| | |
| | | @OperationLog("Create 步骤执行日志") |
| | | @PostMapping("/flowStepLog/save") |
| | | public R save(@RequestBody FlowStepLog flowStepLog) { |
| | | flowStepLog.setCreateBy(getLoginUserId()); |
| | | flowStepLog.setCreateTime(new Date()); |
| | | flowStepLog.setUpdateBy(getLoginUserId()); |
| | | flowStepLog.setUpdateTime(new Date()); |
| | | if (!flowStepLogService.save(flowStepLog)) { |
| | | return R.error("Save Fail"); |
| | | } |
| | |
| | | @OperationLog("Update 步骤执行日志") |
| | | @PostMapping("/flowStepLog/update") |
| | | public R update(@RequestBody FlowStepLog flowStepLog) { |
| | | flowStepLog.setUpdateBy(getLoginUserId()); |
| | | flowStepLog.setUpdateTime(new Date()); |
| | | if (!flowStepLogService.updateById(flowStepLog)) { |
| | | return R.error("Update Fail"); |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | |