|
@@ -1,5 +1,6 @@
|
|
|
package com.ruoyi.xuankuang.controller.test;
|
|
|
|
|
|
+import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.hard.xuankang.ConvertUtil;
|
|
|
import com.ruoyi.hard.xuankang.UnpackingMachineClient;
|
|
|
import com.ruoyi.hard.xuankang.UnpackingMachineSubClient;
|
|
@@ -99,8 +100,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("启动拆包机1#接口")
|
|
|
@PostMapping("/writeRun01")
|
|
|
- public boolean write01() {
|
|
|
- return unpackingMachineSubClient.writeV140_5();
|
|
|
+ public AjaxResult write01() {
|
|
|
+ boolean b = unpackingMachineSubClient.writeV140_5();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -110,8 +116,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("启动拆包机2#接口")
|
|
|
@PostMapping("/writeRun02")
|
|
|
- public boolean write02() {
|
|
|
- return unpackingMachineSubClient.writeV140_6();
|
|
|
+ public AjaxResult write02() {
|
|
|
+ boolean b = unpackingMachineSubClient.writeV140_6();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -121,8 +132,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("启动拆包机3#接口")
|
|
|
@PostMapping("/writeRun03")
|
|
|
- public boolean write03() {
|
|
|
- return unpackingMachineSubClient.writeV140_7();
|
|
|
+ public AjaxResult write03() {
|
|
|
+ boolean b = unpackingMachineSubClient.writeV140_7();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -132,8 +148,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("启动拆包机4#接口")
|
|
|
@PostMapping("/writeRun04")
|
|
|
- public boolean write04() {
|
|
|
- return unpackingMachineSubClient.writeV141_0();
|
|
|
+ public AjaxResult write04() {
|
|
|
+ boolean b = unpackingMachineSubClient.writeV141_0();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -143,8 +164,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("启动拆包机5#接口")
|
|
|
@PostMapping("/writeRun05")
|
|
|
- public boolean write05() {
|
|
|
- return unpackingMachineSubClient.writeV141_1();
|
|
|
+ public AjaxResult write05() {
|
|
|
+ boolean b = unpackingMachineSubClient.writeV141_1();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -154,8 +180,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("停止拆包机1#接口")
|
|
|
@PostMapping("/writeEnd01")
|
|
|
- public boolean writeEnd01(){
|
|
|
- return unpackingMachineSubClient.writeV141_2();
|
|
|
+ public AjaxResult writeEnd01(){
|
|
|
+ boolean b = unpackingMachineSubClient.writeV141_2();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -165,8 +196,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("停止拆包机2#接口")
|
|
|
@PostMapping("/writeEnd02")
|
|
|
- public boolean writeEnd02(){
|
|
|
- return unpackingMachineSubClient.writeV141_3();
|
|
|
+ public AjaxResult writeEnd02(){
|
|
|
+ boolean b = unpackingMachineSubClient.writeV141_3();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
/**
|
|
|
* 关闭拆包机3#
|
|
@@ -175,8 +211,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("停止拆包机3#接口")
|
|
|
@PostMapping("/writeEnd03")
|
|
|
- public boolean writeEnd03(){
|
|
|
- return unpackingMachineSubClient.writeV141_4();
|
|
|
+ public AjaxResult writeEnd03(){
|
|
|
+ boolean b = unpackingMachineSubClient.writeV141_4();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -186,8 +227,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("停止拆包机4#接口")
|
|
|
@PostMapping("/writeEnd04")
|
|
|
- public boolean writeEnd04(){
|
|
|
- return unpackingMachineSubClient.writeV141_5();
|
|
|
+ public AjaxResult writeEnd04(){
|
|
|
+ boolean b = unpackingMachineSubClient.writeV141_5();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -197,8 +243,13 @@ public class UnpackingMachineController {
|
|
|
*/
|
|
|
@ApiOperation("停止拆包机5#接口")
|
|
|
@PostMapping("/writeEnd05")
|
|
|
- public boolean writeEnd05(){
|
|
|
- return unpackingMachineSubClient.writeV141_6();
|
|
|
+ public AjaxResult writeEnd05(){
|
|
|
+ boolean b = unpackingMachineSubClient.writeV141_6();
|
|
|
+ if (b){
|
|
|
+ return AjaxResult.success("成功");
|
|
|
+ }else {
|
|
|
+ return AjaxResult.error("失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|