|
@@ -1,8 +1,10 @@
|
|
package com.ruoyi.xuankuang.controller.test;
|
|
package com.ruoyi.xuankuang.controller.test;
|
|
|
|
|
|
import com.ruoyi.ams.xuankuang.service.StirringTankClientService;
|
|
import com.ruoyi.ams.xuankuang.service.StirringTankClientService;
|
|
|
|
+import com.ruoyi.ams.xuankuang.service.WcsToWmsApiService;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.hard.xuankang.StirringTankClient;
|
|
import com.ruoyi.hard.xuankang.StirringTankClient;
|
|
|
|
+import com.ruoyi.hard.xuankang.BeltLineClient;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.models.auth.In;
|
|
import io.swagger.models.auth.In;
|
|
@@ -26,105 +28,109 @@ public class TankTestController {
|
|
StirringTankClient stirringTankClient;
|
|
StirringTankClient stirringTankClient;
|
|
@Autowired
|
|
@Autowired
|
|
StirringTankClientService stirringTankClientService;
|
|
StirringTankClientService stirringTankClientService;
|
|
|
|
+ @Autowired
|
|
|
|
+ WcsToWmsApiService wcsToWmsApiService;
|
|
|
|
+ @Autowired
|
|
|
|
+ BeltLineClient beltLine;
|
|
|
|
|
|
@ApiOperation("读碳酸钠搅拌槽液位")
|
|
@ApiOperation("读碳酸钠搅拌槽液位")
|
|
@GetMapping("/readTank01")
|
|
@GetMapping("/readTank01")
|
|
- public Number readTank01(){
|
|
|
|
|
|
+ public Number readTank01() {
|
|
return stirringTankClient.readTank01();
|
|
return stirringTankClient.readTank01();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读丁黄药搅拌槽液位")
|
|
@ApiOperation("读丁黄药搅拌槽液位")
|
|
@GetMapping("/readTank02")
|
|
@GetMapping("/readTank02")
|
|
- public Number readTank02(){
|
|
|
|
|
|
+ public Number readTank02() {
|
|
return stirringTankClient.readTank02();
|
|
return stirringTankClient.readTank02();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读丁铵黑药搅拌槽液位")
|
|
@ApiOperation("读丁铵黑药搅拌槽液位")
|
|
@GetMapping("/readTank03")
|
|
@GetMapping("/readTank03")
|
|
- public Number readTank03(){
|
|
|
|
|
|
+ public Number readTank03() {
|
|
return stirringTankClient.readTank03();
|
|
return stirringTankClient.readTank03();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读六偏磷酸钠搅拌槽液位")
|
|
@ApiOperation("读六偏磷酸钠搅拌槽液位")
|
|
@GetMapping("/readTank04")
|
|
@GetMapping("/readTank04")
|
|
- public Number readTank04(){
|
|
|
|
|
|
+ public Number readTank04() {
|
|
return stirringTankClient.readTank04();
|
|
return stirringTankClient.readTank04();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读硫酸铵搅拌槽液位")
|
|
@ApiOperation("读硫酸铵搅拌槽液位")
|
|
@GetMapping("/readTank05")
|
|
@GetMapping("/readTank05")
|
|
- public Number readTank05(){
|
|
|
|
|
|
+ public Number readTank05() {
|
|
return stirringTankClient.readTank05();
|
|
return stirringTankClient.readTank05();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读乙黄药搅拌槽液位")
|
|
@ApiOperation("读乙黄药搅拌槽液位")
|
|
@GetMapping("/readTank06")
|
|
@GetMapping("/readTank06")
|
|
- public Number readTank06(){
|
|
|
|
|
|
+ public Number readTank06() {
|
|
return stirringTankClient.readTank06();
|
|
return stirringTankClient.readTank06();
|
|
}
|
|
}
|
|
-//
|
|
|
|
|
|
+
|
|
|
|
+ //
|
|
@ApiOperation("读碳酸钠药剂量")
|
|
@ApiOperation("读碳酸钠药剂量")
|
|
@GetMapping("/readTank07")
|
|
@GetMapping("/readTank07")
|
|
- public Number readTank07(){
|
|
|
|
|
|
+ public Number readTank07() {
|
|
return stirringTankClient.readTank07();
|
|
return stirringTankClient.readTank07();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读丁黄药药剂量")
|
|
@ApiOperation("读丁黄药药剂量")
|
|
@GetMapping("/readTank08")
|
|
@GetMapping("/readTank08")
|
|
- public Number readTank08(){
|
|
|
|
|
|
+ public Number readTank08() {
|
|
return stirringTankClient.readTank08();
|
|
return stirringTankClient.readTank08();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读丁铵黑药药剂量")
|
|
@ApiOperation("读丁铵黑药药剂量")
|
|
@GetMapping("/readTank09")
|
|
@GetMapping("/readTank09")
|
|
- public Number readTank09(){
|
|
|
|
|
|
+ public Number readTank09() {
|
|
return stirringTankClient.readTank09();
|
|
return stirringTankClient.readTank09();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读六偏磷酸钠药剂量")
|
|
@ApiOperation("读六偏磷酸钠药剂量")
|
|
@GetMapping("/readTank10")
|
|
@GetMapping("/readTank10")
|
|
- public Number readTank10(){
|
|
|
|
|
|
+ public Number readTank10() {
|
|
return stirringTankClient.readTank10();
|
|
return stirringTankClient.readTank10();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读硫酸铵药剂量")
|
|
@ApiOperation("读硫酸铵药剂量")
|
|
@GetMapping("/readTank11")
|
|
@GetMapping("/readTank11")
|
|
- public Number readTank11(){
|
|
|
|
|
|
+ public Number readTank11() {
|
|
return stirringTankClient.readTank11();
|
|
return stirringTankClient.readTank11();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读乙黄药药剂量")
|
|
@ApiOperation("读乙黄药药剂量")
|
|
@GetMapping("/readTank12")
|
|
@GetMapping("/readTank12")
|
|
- public Number readTank12(){
|
|
|
|
|
|
+ public Number readTank12() {
|
|
return stirringTankClient.readTank12();
|
|
return stirringTankClient.readTank12();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读仓库是否可以完成该剂量的注入标志位")
|
|
@ApiOperation("读仓库是否可以完成该剂量的注入标志位")
|
|
@GetMapping("/readTank13")
|
|
@GetMapping("/readTank13")
|
|
- public boolean[] readTank13(){
|
|
|
|
|
|
+ public boolean[] readTank13() {
|
|
return stirringTankClient.readTank13();
|
|
return stirringTankClient.readTank13();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读药剂注入请求")
|
|
@ApiOperation("读药剂注入请求")
|
|
@GetMapping("/readTank14")
|
|
@GetMapping("/readTank14")
|
|
- public boolean[] readTank14(){
|
|
|
|
|
|
+ public boolean[] readTank14() {
|
|
return stirringTankClient.readTank14();
|
|
return stirringTankClient.readTank14();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读碳酸钠搅拌槽运行")
|
|
@ApiOperation("读碳酸钠搅拌槽运行")
|
|
@GetMapping("/readTank15")
|
|
@GetMapping("/readTank15")
|
|
- public boolean[] readTank15(){
|
|
|
|
|
|
+ public boolean[] readTank15() {
|
|
return stirringTankClient.readTank15();
|
|
return stirringTankClient.readTank15();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("读碳酸钠确认开始生产")
|
|
@ApiOperation("读碳酸钠确认开始生产")
|
|
@GetMapping("/readTank16")
|
|
@GetMapping("/readTank16")
|
|
- public boolean[] readTank16(){
|
|
|
|
|
|
+ public boolean[] readTank16() {
|
|
return stirringTankClient.readTank16();
|
|
return stirringTankClient.readTank16();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
@ApiOperation("写仓库无法完成碳酸钠注药量")
|
|
@ApiOperation("写仓库无法完成碳酸钠注药量")
|
|
@PostMapping("/writeTank01")
|
|
@PostMapping("/writeTank01")
|
|
public Boolean writeTank01() {
|
|
public Boolean writeTank01() {
|
|
@@ -314,33 +320,134 @@ public class TankTestController {
|
|
|
|
|
|
@ApiOperation("对比丁黄药库存")
|
|
@ApiOperation("对比丁黄药库存")
|
|
@PostMapping("/matchInventory_2")
|
|
@PostMapping("/matchInventory_2")
|
|
- public boolean matchInventory_2(){
|
|
|
|
|
|
+ public boolean matchInventory_2() {
|
|
return stirringTankClientService.matchInventory_2();
|
|
return stirringTankClientService.matchInventory_2();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("对比丁铵黑药库存")
|
|
@ApiOperation("对比丁铵黑药库存")
|
|
@PostMapping("/matchInventory_3")
|
|
@PostMapping("/matchInventory_3")
|
|
- public boolean matchInventory_3(){
|
|
|
|
|
|
+ public boolean matchInventory_3() {
|
|
return stirringTankClientService.matchInventory_3();
|
|
return stirringTankClientService.matchInventory_3();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("对比六偏磷酸钠库存")
|
|
@ApiOperation("对比六偏磷酸钠库存")
|
|
@PostMapping("/matchInventory_4")
|
|
@PostMapping("/matchInventory_4")
|
|
- public boolean matchInventory_4(){
|
|
|
|
|
|
+ public boolean matchInventory_4() {
|
|
return stirringTankClientService.matchInventory_4();
|
|
return stirringTankClientService.matchInventory_4();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("对比硫酸铵库存")
|
|
@ApiOperation("对比硫酸铵库存")
|
|
@PostMapping("/matchInventory_5")
|
|
@PostMapping("/matchInventory_5")
|
|
- public boolean matchInventory_5(){
|
|
|
|
|
|
+ public boolean matchInventory_5() {
|
|
return stirringTankClientService.matchInventory_5();
|
|
return stirringTankClientService.matchInventory_5();
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("对比乙黄药库存")
|
|
@ApiOperation("对比乙黄药库存")
|
|
@PostMapping("matchInventory_6")
|
|
@PostMapping("matchInventory_6")
|
|
- public boolean matchInventory_6(){
|
|
|
|
|
|
+ public boolean matchInventory_6() {
|
|
return stirringTankClientService.matchInventory_6();
|
|
return stirringTankClientService.matchInventory_6();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("正常关闭1号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpacker")
|
|
|
|
+ public AjaxResult turnOffTheUnpacker() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpacker();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("正常关闭2号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpacker1")
|
|
|
|
+ public AjaxResult turnOffTheUnpacker1() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpacker1();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("正常关闭3号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpacker2")
|
|
|
|
+ public AjaxResult turnOffTheUnpacker2() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpacker2();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("正常关闭4号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpacker3")
|
|
|
|
+ public AjaxResult turnOffTheUnpacker3() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpacker3();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("正常关闭5号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpacker4")
|
|
|
|
+ public AjaxResult turnOffTheUnpacker4() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpacker4();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("异常关闭1号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpackererror")
|
|
|
|
+ public AjaxResult turnOffTheUnpackererror() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpackererror();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("异常关闭2号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpackererror1")
|
|
|
|
+ public AjaxResult turnOffTheUnpackererror1() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpackererror1();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("异常关闭3号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpackererror2")
|
|
|
|
+ public AjaxResult turnOffTheUnpackererror2() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpackererror2();
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ @ApiOperation("异常关闭4号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpackererror3")
|
|
|
|
+ public AjaxResult turnOffTheUnpackererror3() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpackererror3();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("异常关闭5号拆包机")
|
|
|
|
+ @PostMapping("turnOffTheUnpackererror5")
|
|
|
|
+ public AjaxResult turnOffTheUnpackererror5() {
|
|
|
|
+ return wcsToWmsApiService.turnOffTheUnpackererror4();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @ApiOperation("读输送线心跳")
|
|
|
|
+ @GetMapping("/readHeart")
|
|
|
|
+ public Number readHeart() {
|
|
|
|
+ return beltLine.ReadHeartbeat();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("读模式")
|
|
|
|
+ @GetMapping("/readMode")
|
|
|
|
+ public Number readMode() {
|
|
|
|
+ return beltLine.readMode();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("读状态")
|
|
|
|
+ @GetMapping("/readState")
|
|
|
|
+ public Number readState() {
|
|
|
|
+ return beltLine.readState();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("写心跳")
|
|
|
|
+ @PostMapping("/writeHeart")
|
|
|
|
+ public Boolean writeHeart(int i) {
|
|
|
|
+ return beltLine.writeHeartbeat(i);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("写模式")
|
|
|
|
+ @PostMapping("/writeMode")
|
|
|
|
+ public Boolean writeMode(int i) {
|
|
|
|
+ return beltLine.writeMode(i);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("写状态")
|
|
|
|
+ @PostMapping("/writeState")
|
|
|
|
+ public Boolean writeState(int i) {
|
|
|
|
+ return beltLine.writeState(i);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("写通过方向")
|
|
|
|
+ @PostMapping("/writeDirection")
|
|
|
|
+ public Boolean writeDirection(int i) {
|
|
|
|
+ return beltLine.writeDirection(i);
|
|
|
|
+ }
|
|
}
|
|
}
|