From 1ac72f3519f6f6ff4be550854505b1949705eeb0 Mon Sep 17 00:00:00 2001 From: Mlin Date: Wed, 2 Aug 2023 10:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E6=8B=96=E6=8B=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=960802?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organization/service/impl/DepartmentServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/engine/organization/service/impl/DepartmentServiceImpl.java b/src/com/engine/organization/service/impl/DepartmentServiceImpl.java index 2c513b23..bbcff0dc 100644 --- a/src/com/engine/organization/service/impl/DepartmentServiceImpl.java +++ b/src/com/engine/organization/service/impl/DepartmentServiceImpl.java @@ -694,9 +694,9 @@ public class DepartmentServiceImpl extends Service implements DepartmentService }else { querySupIdSql = "select subcompanyid1 as supComId,supdepid as supId from hrmdepartment where id = ?"; } - if ("-1".equals(dragPostion)) { - OrganizationAssert.isFalse( true,"分部、部门不能转移至与集团平级"); - }else if ("1".equals(dragPostion)) { + + OrganizationAssert.isFalse("-1".equals(dragPostion),"分部、部门不能转移至与集团平级"); + if ("1".equals(dragPostion)) { recordSet.executeQuery(querySupIdSql, targetId); if (recordSet.next()) { supId = Util.null2String(recordSet.getString("supId"));