From 5faf388b338951c290ed4a56c78e4a091bce6997 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Thu, 14 Nov 2024 19:32:35 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=A3=80=E6=9F=A5=E9=97=AE=E9=A2=98"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 636cd2ddc2b58e7c92c76a665772b3d489a3d65f. --- .../app/service/impl/LeaseOutDetailsServiceImpl.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java index 792f425..f1f1f38 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java @@ -161,20 +161,16 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService { public AjaxResult submitOut(LeaseOutDetails record) { int res = 0; try { - log.error("check001"); // 1、判断是否重复提交 res = checkRepeatSubmit(record); - log.error("check002"); record.setPreStoreNum(getStorageNum(record)); if (res > 0) { if ((record.getManageType() == 1 || record.getManageType() == 2) && record.getInputNum() != null) { record.setOutNum(record.getInputNum()); } - log.error("check003"); //2、判断成套机具出库库存是否足够 if (record.getManageType() == 2) { res = checkStorageNumCt(record); - log.error("check004"); if (res == 0) { throw new RuntimeException("出库失败,库存不足"); } @@ -182,30 +178,24 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService { res = checkStorageNum(record); } - log.error("check005"); if (res > 0) { // 3、插入出库记录,修改库存,修改机具状态 res = insertRecords(record); - log.error("check006"); if (res == 0) { throw new RuntimeException("出库失败,更新设备规格库存数量时出错!"); } // 4、修改任务状态(tm_task) res = updateTaskStatus(record); - log.error("check007"); if (res == 0) { throw new RuntimeException("出库失败,修改任务状态失败"); } // 5、插入结算记录 String taskId = leaseOutDetailsMapper.getTaskId(record.getParentId()); - log.error("check008"); res = insSltInfo(taskId, record); - log.error("check009"); if (res == 0) { throw new RuntimeException("出库失败,插入结算记录失败"); } record.setPostStoreNum(getStorageNum(record)); - log.error("check0010"); } else { return AjaxResult.error("领料出库失败,机具库存不足"); }