mitao
2024-12-27 9c717849bee3d6cc25f29ad69a93a507e3de7d13
medicalWaste-admin/src/main/java/com/sinata/web/controller/backend/MwCollectRecordController.java
@@ -46,8 +46,8 @@
     * @param query
     * @return
     */
    @PostMapping("/page")
    @ApiOperation("医废追溯分页列表")
    @PostMapping("/page")
    public R<PageDTO<MwCollectRecordVO>> pageList(@Valid @RequestBody MwCollectRecordQuery query) {
        return R.ok(collectRecordService.pageList(query));
    }
@@ -58,8 +58,8 @@
     * @param id
     * @return
     */
    @GetMapping("/detail/{id}")
    @ApiOperation("医废追溯详情")
    @GetMapping("/detail/{id}")
    public R<MwCollectRecordVO> detail(@ApiParam(name = "id", value = "医废追溯id", required = true) @PathVariable("id") Long id) {
        return R.ok(collectRecordService.detail(id));
    }
@@ -70,8 +70,8 @@
     * @param dto
     * @return
     */
    @PostMapping("/edit")
    @ApiOperation("编辑")
    @PostMapping("/edit")
    public R<?> edit(@Valid @RequestBody MwCollectRecordDTO dto) {
        collectRecordService.edit(dto);
        return R.ok();
@@ -83,8 +83,8 @@
     * @param id
     * @return
     */
    @DeleteMapping("/{id}")
    @ApiOperation("删除")
    @DeleteMapping("/{id}")
    public R<?> remove(@ApiParam(name = "id", value = "医废追溯id", required = true) @PathVariable("id") Long id) {
        collectRecordService.removeById(id);
        return R.ok();
@@ -96,8 +96,8 @@
     * @param id
     * @return
     */
    @GetMapping("/process/{id}")
    @ApiOperation("流转过程")
    @GetMapping("/process/{id}")
    public R<MedicalWasteProcessVO> getProcess(@ApiParam(name = "id", value = "医废追溯id", required = true) @PathVariable("id") Long id) {
        return R.ok(collectRecordService.getProcess(id));
    }
@@ -108,8 +108,8 @@
     * @param query
     * @param response
     */
    @PostMapping("/export")
    @ApiOperation("导出")
    @PostMapping("/export")
    public void export(@RequestBody MwCollectRecordQuery query, HttpServletResponse response) {
        try {
            collectRecordService.export(query, response);