From 119baa8e4d47b8af6117dd0bbe35fd1755504ee1 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期一, 23 十二月 2024 22:20:03 +0800
Subject: [PATCH] 1、卧理不同界面报破损功能优化 2、大理片笼新增按照钢化版图查询笼内玻璃信息

---
 hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/controller/HollowGlassOutRelationInfoController.java |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/controller/HollowGlassOutRelationInfoController.java b/hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/controller/HollowGlassOutRelationInfoController.java
index f8eaebd..e935cc4 100644
--- a/hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/controller/HollowGlassOutRelationInfoController.java
+++ b/hangzhoumesParent/moduleService/howllowGlassModule/src/main/java/com/mes/hollow/controller/HollowGlassOutRelationInfoController.java
@@ -26,8 +26,31 @@
 
     @ApiOperation("棰嗗彇浠诲姟")
     @PostMapping("/receiveTask")
-    public Result<HollowGlassOutRelationInfo> receiveTask(String flowCardId, int cell) {
-        return Result.success(hollowGlassOutRelationInfoService.receiveTask(flowCardId, cell));
+    public Result<HollowGlassOutRelationInfo> receiveTask(String flowCardId, int cell, int totalPairQuantity) {
+        HollowGlassOutRelationInfo hollowGlassOutRelationInfo = hollowGlassOutRelationInfoService.receiveTask(flowCardId, cell, totalPairQuantity);
+        if (null == hollowGlassOutRelationInfo) {
+            return Result.error(500, "鏈夋鍦ㄦ墽琛岀殑浠诲姟锛岃鍏堢‘淇濅换鍔″畬鎴愬悗锛屽啀娆¢鍙栦换鍔�");
+        } else {
+            return Result.success(hollowGlassOutRelationInfo);
+        }
+
+    }
+
+    @ApiOperation("寮哄埗鍑虹墖")
+    @PostMapping("/forceOutGlass")
+    public Result<HollowGlassOutRelationInfo> forceOutGlass(String flowCardId, int cell, int totalPairQuantity) {
+        HollowGlassOutRelationInfo hollowGlassOutRelationInfo = hollowGlassOutRelationInfoService.forceOutGlass(flowCardId, cell, totalPairQuantity);
+        if (null == hollowGlassOutRelationInfo) {
+            return Result.error(500, "鏈夋鍦ㄦ墽琛岀殑浠诲姟锛岃鍏堢‘淇濅换鍔″畬鎴愬悗锛屽啀娆″己鍒舵墽琛屼换鍔�");
+        } else {
+            return Result.success(hollowGlassOutRelationInfo);
+        }
+    }
+
+    @ApiOperation("鏄惁璋冨害寮�鍏�")
+    @PostMapping("/dispatchHollowSwitch")
+    public Result<Boolean> dispatchHollowSwitch(Boolean flag) {
+        return Result.build(200, "淇敼鎴愬姛", hollowGlassOutRelationInfoService.dispatchHollowSwitch(flag));
     }
 
 }

--
Gitblit v1.8.0