Stringsql="select a.khny,b.* from uf_gbkhpd a left join uf_gbkhpd_mxb1 b on a.id = b.form_data_id where a.khny = '"+yearMonth+"' and a.IS_DELETE = 0 and a.delete_type = 0 and a.TENANT_KEY = 'tscemvfpqg' ";
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' ";