提交 6173549f authored 作者: zhoushaopan's avatar zhoushaopan

feat(rfid模块): 读写机调试

读写机调试
上级 b9fe98e4
......@@ -37,6 +37,14 @@
<systemPath>${project.basedir}/src/main/resources/lib/ZSDK_API.jar</systemPath>
</dependency>
<dependency>
<groupId>com.zebra</groupId>
<artifactId>sdk1</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/ModuleAPI_Java_2.2.0.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.rfid</groupId>
<artifactId>sdk</artifactId>
......
package com.tykj.dev.rfid.controller;
import com.tykj.dev.config.swagger.AutoDocument;
import com.tykj.dev.rfid.entity.domin.AccessControlName;
import com.tykj.dev.rfid.timeTask.ReadUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @author zsp
* @create 2021/12/2 10:39
*/
@RestController
@Api(tags = "读写机模块", value = "读写机模块")
@AutoDocument
@RequestMapping("/readMachine")
@Slf4j
public class ReadController {
@PostMapping("/startReadMachine")
@ApiOperation(value = "开始扫描读写机")
public ResponseEntity startReadMachine(){
ReadUtils readUtils = new ReadUtils();
//先开启
readUtils.testinitreader();
//开始盘存
readUtils.testinventory1();
return ResponseEntity.ok("读写成功");
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论