| | |
| | | import com.moral.api.service.AllocationExtensionService; |
| | | import com.moral.constant.PageResult; |
| | | import com.moral.constant.ResultMessage; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/allocationExtension") |
| | | @Api(tags = {"延期申请"}) |
| | | public class AllocationExtensionController { |
| | | |
| | | private final AllocationExtensionService allocationExtensionService; |
| | |
| | | return ResultMessage.ok(result); |
| | | } |
| | | |
| | | @GetMapping("check") |
| | | @ApiOperation("审批") |
| | | public ResultMessage check(@RequestParam @ApiParam(value = "id",name = "主键id") Integer id, |
| | | @RequestParam @ApiParam(value = "state",name = "状态") Integer state){ |
| | | allocationExtensionService.check(id,state); |
| | | return ResultMessage.ok(); |
| | | } |
| | | |
| | | } |