| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.validation.Valid; |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @PostMapping("/hospital/page") |
| | | @ApiOperation(value = "转运记录分页列表") |
| | | @PostMapping("/hospital/page") |
| | | public R<PageDTO<MwCheckoutRecordVO>> pageList(@Valid @RequestBody CheckoutRecordQuery query) { |
| | | return R.ok(mwCheckoutRecordService.pageHospitalTransitList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 转运记录导出 |
| | | * |
| | | * @param query |
| | | * @param response |
| | | */ |
| | | @ApiOperation("转运记录导出") |
| | | @PostMapping("/hospital/export") |
| | | public void checkoutRecordExport(@RequestBody CheckoutRecordQuery query, HttpServletResponse response) { |
| | | try { |
| | | mwCheckoutRecordService.checkoutRecordExport(query, response); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | /** |
| | | * 转运记录详情 |
| | | * |
| | | * @param departmentId |
| | | * @return |
| | | */ |
| | | @GetMapping("/hospital/detail/{departmentId}") |
| | | @ApiOperation(value = "转运记录详情") |
| | | @GetMapping("/hospital/detail/{departmentId}") |
| | | public R<MwCheckoutRecordVO> hospitalDetail(@ApiParam(name = "id", value = "医院id", required = true) @PathVariable("departmentId") Long departmentId) { |
| | | return R.ok(mwCheckoutRecordService.hospitalDetail(departmentId)); |
| | | } |
| | |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @PostMapping("/hospital/detailPage") |
| | | @ApiOperation(value = "转运记录医废详情分页列表") |
| | | @PostMapping("/hospital/detailPage") |
| | | public R<PageDTO<MwMedicalWasteBoxVO>> hospitalDetailPage(@Valid @RequestBody MwCheckoutRecordItemQuery query) { |
| | | return R.ok(mwCheckoutRecordService.hospitalDetailPage(query)); |
| | | } |
| | |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @PostMapping("/transit/page") |
| | | @ApiOperation(value = "运输记录分页列表") |
| | | @PostMapping("/transit/page") |
| | | public R<PageDTO<MwTransitRecordVO>> transitPageList(@Valid @RequestBody MwTransitRecordQuery query) { |
| | | return R.ok(mwCheckoutRecordService.transitPageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 运输记录详情 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation("运输记录详情") |
| | | @GetMapping("/transit/detail/{id}") |
| | | public R<MwTransitRecordVO> transitDetail(@ApiParam(name = "id", value = "运输记录id", required = true) @PathVariable("id") Long id) { |
| | | return R.ok(mwCheckoutRecordService.transitDetail(id)); |
| | | } |
| | | |
| | | /** |
| | | * 运输记录详情分页列表 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation("运输记录详情分页列表") |
| | | @PostMapping("/transit/detailPage") |
| | | public R<PageDTO<MwMedicalWasteBoxVO>> transitDetailPage(@Valid @RequestBody MwTransitRecordQuery query) { |
| | | return R.ok(mwCheckoutRecordService.transitDetailPageList(query)); |
| | | } |
| | | } |