|
@@ -1,7 +1,7 @@
|
|
|
package com.zd.laboratory.controller;
|
|
package com.zd.laboratory.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
-import com.zd.algorithm.api.netty.feign.RemoteNettyService;
|
|
|
|
|
|
|
+import com.zd.algorithm.api.rfid.feign.RemoteRfidService;
|
|
|
import com.zd.common.core.annotation.Log;
|
|
import com.zd.common.core.annotation.Log;
|
|
|
import com.zd.common.core.annotation.PreAuthorize;
|
|
import com.zd.common.core.annotation.PreAuthorize;
|
|
|
import com.zd.common.core.exception.ServiceException;
|
|
import com.zd.common.core.exception.ServiceException;
|
|
@@ -73,7 +73,7 @@ public class LabHardwareController extends BaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
RedisService redisService;
|
|
RedisService redisService;
|
|
|
@Resource
|
|
@Resource
|
|
|
- private RemoteNettyService nettyService;
|
|
|
|
|
|
|
+ private RemoteRfidService rfidService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询硬件统计
|
|
* 查询硬件统计
|
|
@@ -393,7 +393,7 @@ public class LabHardwareController extends BaseController {
|
|
|
HardwareOperate operate = labHardwareVO.getOperate();
|
|
HardwareOperate operate = labHardwareVO.getOperate();
|
|
|
if (operate==null || operate.getCode()==4){
|
|
if (operate==null || operate.getCode()==4){
|
|
|
subjectManagerService.control(id, Symbol.command.open);
|
|
subjectManagerService.control(id, Symbol.command.open);
|
|
|
- R<Boolean> result = nettyService.startMonitorChannels(remoteLabHardware);
|
|
|
|
|
|
|
+ R<Boolean> result = rfidService.startMonitorChannels(remoteLabHardware);
|
|
|
if (result.getCode()== HttpStatus.SUCCESS){
|
|
if (result.getCode()== HttpStatus.SUCCESS){
|
|
|
operate=HardwareOperate.OPEN;
|
|
operate=HardwareOperate.OPEN;
|
|
|
}else {
|
|
}else {
|
|
@@ -401,7 +401,7 @@ public class LabHardwareController extends BaseController {
|
|
|
}
|
|
}
|
|
|
}else {
|
|
}else {
|
|
|
subjectManagerService.control(id, Symbol.command.close);
|
|
subjectManagerService.control(id, Symbol.command.close);
|
|
|
- R<Boolean> result = nettyService.disconnect(remoteLabHardware);
|
|
|
|
|
|
|
+ R<Boolean> result = rfidService.disconnect(remoteLabHardware);
|
|
|
if (result.getCode()== HttpStatus.SUCCESS){
|
|
if (result.getCode()== HttpStatus.SUCCESS){
|
|
|
operate=HardwareOperate.CLOSE;
|
|
operate=HardwareOperate.CLOSE;
|
|
|
}else {
|
|
}else {
|
|
@@ -416,10 +416,10 @@ public class LabHardwareController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * netty服务查询识别器列表
|
|
|
|
|
|
|
+ * Rfid门禁服务查询识别器列表
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/list/start")
|
|
@GetMapping("/list/start")
|
|
|
- @ApiOperation(value = "netty服务查询识别器列表")
|
|
|
|
|
|
|
+ @ApiOperation(value = "Rfid门禁服务查询识别器列表")
|
|
|
public R<List<RemoteLabHardware>> listStart(){
|
|
public R<List<RemoteLabHardware>> listStart(){
|
|
|
LabHardware hardware = new LabHardware();
|
|
LabHardware hardware = new LabHardware();
|
|
|
hardware.setOperate(HardwareOperate.OPEN);
|
|
hardware.setOperate(HardwareOperate.OPEN);
|