| | |
| | | package com.ruoyi.projectManagement.controller; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.projectManagement.dto.InfoStageDto; |
| | | import com.ruoyi.projectManagement.dto.UpdateStateInfo; |
| | |
| | | |
| | | @PostMapping("/save") |
| | | @Operation(summary = "保存") |
| | | @Log(title = "项目信息-保存", businessType = BusinessType.INSERT) |
| | | public AjaxResult save(@RequestBody @Valid SaveInfoVo saveInfoVo) { |
| | | infoService.save(saveInfoVo); |
| | | return AjaxResult.success(); |
| | |
| | | |
| | | @PostMapping("/updateStatus") |
| | | @Operation(summary = "修改状态") |
| | | @Log(title = "项目信息-修改状态", businessType = BusinessType.UPDATE) |
| | | public AjaxResult updateStatus(@RequestBody @Valid UpdateStateInfo updateStateInfo){ |
| | | infoService.updateStatus(updateStateInfo); |
| | | return AjaxResult.success(); |
| | |
| | | |
| | | @PostMapping("/delete/{id}") |
| | | @Operation(summary = "删除") |
| | | @Log(title = "项目信息-删除", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@PathVariable Long id) { |
| | | infoService.deleteInfo(id); |
| | | return AjaxResult.success(); |
| | |
| | | |
| | | @PostMapping("/saveStage") |
| | | @Operation(summary = "保存阶段") |
| | | @Log(title = "项目信息-保存阶段", businessType = BusinessType.INSERT) |
| | | public AjaxResult saveStage(@RequestBody @Valid SaveInfoStageVo dto) { |
| | | infoStageHandleService.save(dto); |
| | | return AjaxResult.success(); |
| | |
| | | |
| | | @PostMapping("/deleteStage/{id}") |
| | | @Operation(summary = "删除阶段") |
| | | @Log(title = "项目信息-删除阶段", businessType = BusinessType.DELETE) |
| | | public AjaxResult deleteStage(@PathVariable Long id) { |
| | | infoStageHandleService.deleteById(id); |
| | | return AjaxResult.success(); |