sql改造

main
Administrator 6 days ago
parent 4f727a94d2
commit 55390106ef

@ -36,21 +36,22 @@ public class EmployeeRelationServiceImpl implements EmployeeRelationService {
@Override @Override
public boolean checkIsNotBlackList(String userName, String mobile, String email, String identity) { public boolean checkIsNotBlackList(String userName, String mobile, String email, String identity) {
boolean flag = false; boolean flag = false;
String sql = ""; //String sql = "";
if (StringUtils.isNotBlank(identity)) { // 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' "; // 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); // log.error("queryLeaderPdByYear.sql:{}", sql);
} else { // } else {
if (StringUtils.isNotBlank(userName)) { // if (StringUtils.isNotBlank(userName)) {
if (StringUtils.isNotBlank(mobile)) { // 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' "; // 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); // log.error("queryLeaderPdByYear.sql:{}", sql);
} else { // } 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' "; // 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); // 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<String, Object> rs = databaseUtils.execute("LOGIC", "weaver-ebuilder-form-service", sql); Map<String, Object> rs = databaseUtils.execute("LOGIC", "weaver-ebuilder-form-service", sql);
List<Map<String, Object>> recordList = databaseUtils.getDataSourceList(rs); List<Map<String, Object>> recordList = databaseUtils.getDataSourceList(rs);
log.error("queryLeaderPdByYear.recordList:{}", recordList); log.error("queryLeaderPdByYear.recordList:{}", recordList);

Loading…
Cancel
Save