查询出网点负责人
//查询出网点负责人邮箱
public static String getPrincipalemail(String orgNo,Connection conn,ZjLogger logger) {
String Principalemail="";
String qryPrincipal="select EMAIL from SYS_ORG_PRINCIPAL sop left join SYS_USER su on sop.USER_NO=su.NO where sop.ORG_NO =? and PRINCIPAL_TYPE ='1'";
List<SQLPara> sqlParas = new ArrayList<SQLPara>();
sqlParas.add(new SQLPara("ORG_NO",Types.VARCHAR,orgNo));
try {
CachedRowSet orgResult = DbOperate.executeQueryByParamName(qryPrincipal, sqlParas, conn, logger);
while(orgResult.next()) {
Principalemail=orgResult.getString("EMAIL");
}
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
logger.debug(Principalemail);
return Principalemail;
}