doc: 格式化

This commit is contained in:
Kelvin 2025-01-04 08:51:46 +08:00
parent 57e6046dc6
commit 6c7aed9e16

View File

@ -241,7 +241,7 @@ public class WmsInTaskController extends BaseController {
baseKnifeService.updateBaseKnife(baseKnife); baseKnifeService.updateBaseKnife(baseKnife);
// 判断物料是否有绑定了订单 // 判断物料是否有绑定了订单
if (baseKnife.getPlanSheet() != null){ if (baseKnife.getPlanSheet() != null) {
// 获取台账锁定实体并将状态设置为已完成 // 获取台账锁定实体并将状态设置为已完成
BaseKnifeLocked baseKnifeLockedWrapper = new BaseKnifeLocked(); BaseKnifeLocked baseKnifeLockedWrapper = new BaseKnifeLocked();
baseKnifeLockedWrapper.setStatus(0); baseKnifeLockedWrapper.setStatus(0);
@ -251,7 +251,7 @@ public class WmsInTaskController extends BaseController {
// 获取实体并修改状态 // 获取实体并修改状态
BaseKnifeLocked baseKnifeLocked; BaseKnifeLocked baseKnifeLocked;
if (!baseKnifeLockedList.isEmpty()){ if (!baseKnifeLockedList.isEmpty()) {
baseKnifeLocked = baseKnifeLockedList.get(0); baseKnifeLocked = baseKnifeLockedList.get(0);
baseKnifeLocked.setStatus(1); baseKnifeLocked.setStatus(1);
baseKnifeLockedMapper.updateBaseKnifeLocked(baseKnifeLocked); baseKnifeLockedMapper.updateBaseKnifeLocked(baseKnifeLocked);
@ -260,7 +260,7 @@ public class WmsInTaskController extends BaseController {
// 再次查询物料是否有预订订单 // 再次查询物料是否有预订订单
baseKnifeLockedWrapper.setPlanSheet(null); baseKnifeLockedWrapper.setPlanSheet(null);
baseKnifeLockedList = baseKnifeLockedMapper.selectBaseKnifeLockedList(baseKnifeLockedWrapper); baseKnifeLockedList = baseKnifeLockedMapper.selectBaseKnifeLockedList(baseKnifeLockedWrapper);
if (!baseKnifeLockedList.isEmpty()){ if (!baseKnifeLockedList.isEmpty()) {
baseKnifeLocked = baseKnifeLockedList.get(0); baseKnifeLocked = baseKnifeLockedList.get(0);
baseKnife.setPlanSheet(baseKnifeLocked.getPlanSheet()); baseKnife.setPlanSheet(baseKnifeLocked.getPlanSheet());
baseKnife.setIsLocked(1); baseKnife.setIsLocked(1);
@ -548,7 +548,7 @@ public class WmsInTaskController extends BaseController {
.build(); .build();
// 发送请求 // 发送请求
try(Response response = client.newCall(request).execute()) { try (Response response = client.newCall(request).execute()) {
if (!response.isSuccessful()) if (!response.isSuccessful())
throw new IOException("Unexpected code " + response); throw new IOException("Unexpected code " + response);