From 31a0569d7f0ebb1ddfe3ccd104f15b06ccb8dd9a Mon Sep 17 00:00:00 2001 From: xuan <255124139@qq.com> Date: Mon, 27 Sep 2021 17:49:50 +0800 Subject: [PATCH] =?UTF-8?q?cxs,2021,9,27=E6=9B=B4=E6=94=B9=EF=BC=9A=20?= =?UTF-8?q?=E5=BE=85=E5=AE=A1=E6=A0=B8=200=20=E5=B7=B2=E9=80=9A=E8=BF=87?= =?UTF-8?q?=201=20=E6=9C=AA=E9=80=9A=E8=BF=87=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/EmployeeRegisterController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/example/meetingroom/controller/EmployeeRegisterController.java b/src/main/java/com/example/meetingroom/controller/EmployeeRegisterController.java index 8d395f2..05f5f40 100644 --- a/src/main/java/com/example/meetingroom/controller/EmployeeRegisterController.java +++ b/src/main/java/com/example/meetingroom/controller/EmployeeRegisterController.java @@ -99,13 +99,13 @@ public class EmployeeRegisterController { //判断修改前后状态 // (相同状态) || (审前待审核 && 审后未通过)这种情况不用新增和删除员工,只用更改注册表 - if (previousState.equals(afterState) || (previousState.equals("待审核") && afterState.equals("未通过"))){ + if (previousState.equals(afterState) || (previousState.equals("0") && afterState.equals("2"))){ System.out.println("(相同状态) || (审前待审核 && 审后未通过)这种情况不用新增和删除员工,只用更改注册表"); judge = employeeRegisterService.updateEmployeeRegister(employeeRegister, (String) adminId); - } else if((previousState.equals("待审核") && afterState.equals("已通过")) || - (previousState.equals("未通过") && afterState.equals("已通过"))){ + } else if((previousState.equals("0") && afterState.equals("1")) || + (previousState.equals("2") && afterState.equals("1"))){ //(审前待审核 && 审后已通过) || (审前未通过 && 审后已通过) 这种情况需要新增员工和用更改注册表 System.out.println("(审前待审核 && 审后已通过) || (审前未通过 && 审后已通过) 这种情况需要新增员工和用更改注册表"); @@ -115,7 +115,7 @@ public class EmployeeRegisterController { employeeRegister.setPassword(employeeRegisterService.selectEmployeeInfoPasswode(employeeRegister.getPhone())); employeeRegisterService.insertEmployeeInfo(employeeRegister); - } else if(previousState.equals("已通过") && afterState.equals("未通过")) { + } else if(previousState.equals("1") && afterState.equals("2")) { // 审前已通过 && 审后未通过 这种情况需要删除员工和用更改注册表 System.out.println("审前已通过 && 审后未通过 这种情况需要删除员工和用更改注册表"); -- Gitee