无关风月
2024-07-30 87e07ac8b8f1868eb4302fac73dfc93c5417f977
ruoyi-modules/ruoyi-management/src/main/java/com/ruoyi/management/controller/ScanCodesController.java
@@ -6,6 +6,7 @@
import com.ruoyi.management.service.InventoriesSuppliesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -18,10 +19,10 @@
    @Resource
    private InventoriesSuppliesService inventoriesSuppliesService;
    @GetMapping("/scanCodes")
    @GetMapping("/scanCodes/{rkNumber}")
    @ApiOperation(value = "安卓扫描传输数据")
    public R scanCodes(@RequestBody ScanCodesDTO scanCodesDTO) {
        inventoriesSuppliesService.scanCodes(scanCodesDTO);
    public R scanCodes(   @ApiParam(name = "rkNumber", value = "入库编号", required = true) @PathVariable("rkNumber") String rkNumber) {
        inventoriesSuppliesService.scanCodes(rkNumber);
        return R.ok();
    }
}