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);
// 判断物料是否有绑定了订单
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);