From 55390106efb4a37d9c500e68c6862156eb73993e Mon Sep 17 00:00:00 2001 From: Administrator <704728292@qq.com> Date: Mon, 14 Apr 2025 09:14:48 +0800 Subject: [PATCH] =?UTF-8?q?sql=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/EmployeeRelationServiceImpl.java | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/service/impl/EmployeeRelationServiceImpl.java b/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/service/impl/EmployeeRelationServiceImpl.java index 00d4d6c..d15a53d 100644 --- a/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/service/impl/EmployeeRelationServiceImpl.java +++ b/jcl-hrmorganization/secondev-jcl-hrmorganization/src/main/java/com/weaver/seconddev/jcl/organization/service/impl/EmployeeRelationServiceImpl.java @@ -36,21 +36,22 @@ public class EmployeeRelationServiceImpl implements EmployeeRelationService { @Override public boolean checkIsNotBlackList(String userName, String mobile, String email, String identity) { boolean flag = false; - String sql = ""; - if (StringUtils.isNotBlank(identity)) { - sql = "select id from uf_jcl_ryhmd where zjhm = '" + identity + "' and IS_DELETE = 0 and delete_type = 0 and TENANT_KEY = 't7n9jpeaoa' "; - log.error("queryLeaderPdByYear.sql:{}", sql); - } else { - if (StringUtils.isNotBlank(userName)) { - if (StringUtils.isNotBlank(mobile)) { - sql = "select id from uf_jcl_ryhmd where xm = '" + userName + "' and lxdh = '" + mobile + "' and IS_DELETE = 0 and delete_type = 0 and TENANT_KEY = 't7n9jpeaoa' "; - log.error("queryLeaderPdByYear.sql:{}", sql); - } else { - sql = "select id from uf_jcl_ryhmd where xm = '" + userName + "' and yx = '" + email + "' and IS_DELETE = 0 and delete_type = 0 and TENANT_KEY = 't7n9jpeaoa' "; - log.error("queryLeaderPdByYear.sql:{}", sql); - } - } - } + //String sql = ""; +// if (StringUtils.isNotBlank(identity)) { +// sql = "select id from uf_jcl_ryhmd where zjhm = '" + identity + "' and IS_DELETE = 0 and delete_type = 0 and TENANT_KEY = 't7n9jpeaoa' "; +// log.error("queryLeaderPdByYear.sql:{}", sql); +// } else { +// if (StringUtils.isNotBlank(userName)) { +// if (StringUtils.isNotBlank(mobile)) { +// sql = "select id from uf_jcl_ryhmd where xm = '" + userName + "' and lxdh = '" + mobile + "' and IS_DELETE = 0 and delete_type = 0 and TENANT_KEY = 't7n9jpeaoa' "; +// log.error("queryLeaderPdByYear.sql:{}", sql); +// } else { +// sql = "select id from uf_jcl_ryhmd where xm = '" + userName + "' and yx = '" + email + "' and IS_DELETE = 0 and delete_type = 0 and TENANT_KEY = 't7n9jpeaoa' "; +// log.error("queryLeaderPdByYear.sql:{}", sql); +// } +// } +// } + String sql = "select id from uf_jcl_employee_information where id_no ='" + identity + "' and IS_DELETE = 0 and delete_type = 0 and TENANT_KEY = 't7n9jpeaoa' and sfjrhmd = 1 "; Map rs = databaseUtils.execute("LOGIC", "weaver-ebuilder-form-service", sql); List> recordList = databaseUtils.getDataSourceList(rs); log.error("queryLeaderPdByYear.recordList:{}", recordList);