37 lines
942 B
Java
37 lines
942 B
Java
|
|
package com.dpkj.modules.barcode.controller;
|
||
|
|
|
||
|
|
import com.dpkj.common.vo.Result;
|
||
|
|
import com.dpkj.modules.barcode.service.BarCodeService;
|
||
|
|
import lombok.extern.slf4j.Slf4j;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @BelongsProject: 银医通-澜沧中医院-DLL-台式机
|
||
|
|
* @BelongsPackage: com.dpkj.modules.keypad.controller
|
||
|
|
* @Author: wzc
|
||
|
|
* @Description: 条码读取
|
||
|
|
* @CreateTime: 2025-02-10 15:21
|
||
|
|
*/
|
||
|
|
@Slf4j
|
||
|
|
@RestController
|
||
|
|
@RequestMapping("barcode")
|
||
|
|
public class BarCodeController {
|
||
|
|
|
||
|
|
@Autowired
|
||
|
|
private BarCodeService barcodeService;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 条码扫描
|
||
|
|
*
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
@GetMapping("scanBarcode")
|
||
|
|
public Result scanBarcode() {
|
||
|
|
return barcodeService.scanBarcode();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|