From 36f80f794631e52e76b3b1dc35494e37ae560136 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期日, 25 六月 2023 10:51:22 +0800 Subject: [PATCH] #登录、修改密码限制 --- src/main/java/com/zy/asrs/task/handler/WorkMastHandler.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/handler/WorkMastHandler.java b/src/main/java/com/zy/asrs/task/handler/WorkMastHandler.java index 1fbf220..67a1fc6 100644 --- a/src/main/java/com/zy/asrs/task/handler/WorkMastHandler.java +++ b/src/main/java/com/zy/asrs/task/handler/WorkMastHandler.java @@ -188,10 +188,10 @@ manPakOutEntityWrapper.eq("doc_num",wrkDetl.getOrderNo()); manPakOutEntityWrapper.eq("matnr",wrkDetl.getMatnr()); ManPakOut manPakOut = manPakOutService.selectOne(manPakOutEntityWrapper); - manPakOut.setCount(manPakOut.getCount() + wrkDetl.getAnfme()); - if (manPakOut.getCount() + wrkDetl.getAnfme() == manPakOut.getAnfme()){ + if (manPakOut.getCount() + wrkDetl.getAnfme() >= manPakOut.getAnfme()){ manPakOut.setStatus(1); } + manPakOut.setCount(manPakOut.getCount() + wrkDetl.getAnfme()); if (!manPakOutService.update(manPakOut,manPakOutEntityWrapper)){ return FAIL.setMsg("鏇存柊鎷h揣鍗曞畬鎴愭暟閲忓け璐�"); } @@ -401,10 +401,11 @@ manPakOutEntityWrapper.eq("doc_num",wrkDetls101.get(0).getOrderNo()); manPakOutEntityWrapper.eq("matnr",wrkDetls101.get(0).getMatnr()); ManPakOut manPakOut = manPakOutService.selectOne(manPakOutEntityWrapper); - manPakOut.setCount(manPakOut.getCount() + wrkDetls101.get(0).getAnfme()); - if (manPakOut.getCount() + wrkDetls101.get(0).getAnfme() == manPakOut.getAnfme()){ + if (manPakOut.getCount() + wrkDetls101.get(0).getAnfme() >= manPakOut.getAnfme()){ manPakOut.setStatus(1); } + manPakOut.setCount(manPakOut.getCount() + wrkDetls101.get(0).getAnfme()); + if (!manPakOutService.update(manPakOut,manPakOutEntityWrapper)){ return FAIL.setMsg("鏇存柊鎷h揣鍗曞畬鎴愭暟閲忓け璐�"); } -- Gitblit v1.9.1