| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.ProcedureDoc; |
| | | import com.whyc.service.ProcedureDocService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | |
| | | service.download(filePath, response); |
| | | } |
| | | |
| | | @PostMapping("listPage") |
| | | @ApiOperation("查询列表分页") |
| | | public Response getListPage(@RequestBody ProcedureDoc procedureDoc, @RequestParam int pageNum, @RequestParam int pageSize){ |
| | | return service.getListPage(procedureDoc,pageNum,pageSize); |
| | | } |
| | | |
| | | |
| | | } |