| | |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.bind.annotation.CrossOrigin; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | return ResultMessage.ok(); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除督办单", notes = "删除督办单") |
| | | @GetMapping("delete") |
| | | public ResultMessage delete(Integer supervisionId) { |
| | | if (ObjectUtils.isEmpty(supervisionId)) { |
| | | return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | } |
| | | supervisionService.deleteSupervision(supervisionId); |
| | | return ResultMessage.ok(); |
| | | } |
| | | |
| | | } |