|
@@ -22,6 +22,7 @@ import com.ruoyi.base.service.IBaseLocationInfoService;
|
|
|
import com.ruoyi.base.service.IBaseSkuService;
|
|
|
import com.ruoyi.base.utils.IdSequenceUtils;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
+import com.ruoyi.common.exception.base.BaseException;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.hard.xuankang.StirringTankClient;
|
|
|
import com.ruoyi.hard.xuankang.UnpackingMachineSubClient;
|
|
@@ -377,6 +378,23 @@ public class WcsToWmsApiService {
|
|
|
return unpackingMachineFacade.unpackingMachineOpen(lineId, booleans) ? AjaxResult.success() : AjaxResult.error();
|
|
|
}
|
|
|
|
|
|
+ public AjaxResult turnOffTheUnpacker(LineOpenNotificationForm lineOpenNotificationForm){
|
|
|
+ switch (lineOpenNotificationForm.getLineId()) {
|
|
|
+ case "1":
|
|
|
+ return turnOffTheUnpacker();
|
|
|
+ case "2":
|
|
|
+ return turnOffTheUnpacker1();
|
|
|
+ case "3":
|
|
|
+ return turnOffTheUnpacker2();
|
|
|
+ case "4":
|
|
|
+ return turnOffTheUnpacker3();
|
|
|
+ case "5":
|
|
|
+ return turnOffTheUnpacker4();
|
|
|
+ default:
|
|
|
+ throw new BaseException("lineId is not exist ......");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 正常关闭1号拆包机
|
|
|
*
|