2025-02-10 17:41:16 +08:00
|
|
|
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;
|
2025-02-18 15:24:46 +08:00
|
|
|
import org.springframework.web.bind.annotation.*;
|
2025-02-10 17:41:16 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @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
|
|
|
|
|
*/
|
2025-02-18 15:24:46 +08:00
|
|
|
@PostMapping("scanBarcode")
|
2025-02-10 17:41:16 +08:00
|
|
|
public Result scanBarcode() {
|
|
|
|
|
return barcodeService.scanBarcode();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|