From 6c7aed9e16f5d0fabaab7203decdf1c359f329e9 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Sat, 4 Jan 2025 08:51:46 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ktg/mes/wm/controller/WmsInTaskController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java index ba15175..d56f45f 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/controller/WmsInTaskController.java @@ -241,7 +241,7 @@ public class WmsInTaskController extends BaseController { baseKnifeService.updateBaseKnife(baseKnife); // 判断物料是否有绑定了订单 - if (baseKnife.getPlanSheet() != null){ + if (baseKnife.getPlanSheet() != null) { // 获取台账锁定实体并将状态设置为已完成 BaseKnifeLocked baseKnifeLockedWrapper = new BaseKnifeLocked(); baseKnifeLockedWrapper.setStatus(0); @@ -251,7 +251,7 @@ public class WmsInTaskController extends BaseController { // 获取实体并修改状态 BaseKnifeLocked baseKnifeLocked; - if (!baseKnifeLockedList.isEmpty()){ + if (!baseKnifeLockedList.isEmpty()) { baseKnifeLocked = baseKnifeLockedList.get(0); baseKnifeLocked.setStatus(1); baseKnifeLockedMapper.updateBaseKnifeLocked(baseKnifeLocked); @@ -260,7 +260,7 @@ public class WmsInTaskController extends BaseController { // 再次查询物料是否有预订订单 baseKnifeLockedWrapper.setPlanSheet(null); baseKnifeLockedList = baseKnifeLockedMapper.selectBaseKnifeLockedList(baseKnifeLockedWrapper); - if (!baseKnifeLockedList.isEmpty()){ + if (!baseKnifeLockedList.isEmpty()) { baseKnifeLocked = baseKnifeLockedList.get(0); baseKnife.setPlanSheet(baseKnifeLocked.getPlanSheet()); baseKnife.setIsLocked(1); @@ -548,7 +548,7 @@ public class WmsInTaskController extends BaseController { .build(); // 发送请求 - try(Response response = client.newCall(request).execute()) { + try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);