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));
|
}
|
}
|