yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.qianwen.smartman.modules.tool.controller;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.qianwen.core.boot.ctrl.BladeController;
import com.qianwen.core.mp.support.Query;
import com.qianwen.core.oss.model.BladeFile;
import com.qianwen.core.scanner.modular.annotation.GetResource;
import com.qianwen.core.scanner.modular.annotation.PostResource;
import com.qianwen.core.scanner.modular.stereotype.ApiResource;
import com.qianwen.core.secure.annotation.PreAuth;
import com.qianwen.core.tool.api.R;
import com.qianwen.smartman.modules.tool.service.IToolChangeRecordService;
import com.qianwen.smartman.modules.tool.vo.ToolChangeRecordQueryVO;
import com.qianwen.smartman.modules.tool.vo.ToolChangeRecordVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
@Api(value = "刀具装卸记录管理", tags = {"刀具装卸记录管理"})
@ApiResource({"blade-tool/tool-change-record"})
@RestController
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tool/controller/ToolChangeRecordController.class */
public class ToolChangeRecordController extends BladeController {
    private final IToolChangeRecordService toolChangeRecordService;
 
    public ToolChangeRecordController(final IToolChangeRecordService toolChangeRecordService) {
        this.toolChangeRecordService = toolChangeRecordService;
    }
 
    @ApiOperationSupport(order = 3)
    @GetResource({"/page"})
    @ApiOperation(value = "刀具装卸记录分页", notes = "")
    @PreAuth
    public R<IPage<ToolChangeRecordVO>> page(ToolChangeRecordQueryVO toolChangeRecordQueryVO, Query query) {
        return R.data(this.toolChangeRecordService.pageToolChangeRecord(toolChangeRecordQueryVO, query));
    }
 
    @ApiOperationSupport(order = 6)
    @PostResource({"/excel/export"})
    @ApiOperation("导出装卸刀记录表")
    @PreAuth
    public R<BladeFile> exportProcessParam(@RequestBody ToolChangeRecordQueryVO toolChangeRecordQueryVO) throws Exception {
        return R.data(this.toolChangeRecordService.exportToolChangeRecord(toolChangeRecordQueryVO));
    }
}