| | |
| | | import com.ruoyi.inspectiontask.dto.QrCodeScanRecordDto; |
| | | import com.ruoyi.inspectiontask.pojo.QrCodeScanRecord; |
| | | import com.ruoyi.inspectiontask.service.QrCodeScanRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | * @date : 2025/9/19 10:53 |
| | | */ |
| | | @RestController |
| | | @Api(tags = "二维码扫描记录管理") |
| | | @Tag(name = "二维码扫描记录管理") |
| | | @RequestMapping("/qrCodeScanRecord") |
| | | @AllArgsConstructor |
| | | public class QrCodeScanRecordController extends BaseController { |
| | | |
| | | @Autowired |
| | | private QrCodeScanRecordService qrCodeScanRecordService; |
| | | |
| | | /** |
| | | * 二维码扫码记录表查询 |
| | | */ |
| | | @GetMapping("/list") |
| | | @ApiOperation("二维码扫码记录表查询") |
| | | @Operation(summary = "二维码扫码记录表查询") |
| | | public R<IPage<QrCodeScanRecordDto>> list(Page<QrCodeScanRecord> page, QrCodeScanRecordDto qrCodeScanRecordDto) { |
| | | IPage<QrCodeScanRecordDto> list = qrCodeScanRecordService.selectQrCodeScanRecordList(page, qrCodeScanRecordDto); |
| | | return R.ok(list); |
| | |
| | | * 二维码扫码记录表新增修改 |
| | | */ |
| | | @PostMapping("/addOrEditQrCodeRecord") |
| | | @ApiOperation("二维码扫码记录表新增修改") |
| | | @Operation(summary = "二维码扫码记录表新增修改") |
| | | public R addOrEditQrCodeRecord(@RequestBody QrCodeScanRecordDto qrCodeScanRecordDto) { |
| | | return R.ok(qrCodeScanRecordService.addOrEditQrCodeRecord(qrCodeScanRecordDto)); |
| | | } |
| | |
| | | * 二维码扫码记录表删除 |
| | | */ |
| | | @DeleteMapping("/delSalesRecord") |
| | | @ApiOperation("二维码扫码记录表删除") |
| | | @Operation(summary = "二维码扫码记录表删除") |
| | | public R remove(@RequestBody Long[] ids) { |
| | | return R.ok(qrCodeScanRecordService.delByIds(ids)); |
| | | } |