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);
// }
// }
// }
Stringsql="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 ";