|
|
|
@ -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"));
|
|
|
|
|