|
@ -297,7 +297,7 @@ public abstract class ProfessorDao {
|
297
|
297
|
public Professor query(Connection con, String id) throws SQLException{
|
298
|
298
|
int _m_1 = 1;
|
299
|
299
|
String sql = "SELECT P.OFFICE,P.SUBJECT,P.INDUSTRY,P.ADDRESS,P.DEPARTMENT,ORG_ID,P.TITLE,AUTHENTICATION,"
|
300
|
|
+ "AUTH_TYPE,AUTH_STATUS,P.ID,P.NAME,P.DESCP,P.CREATE_TIME,P.MODIFY_TIME,ORGANIZATION.NAME "
|
|
300
|
+ "AUTH_TYPE,AUTH_STATUS,P.ID,P.NAME,P.DESCP,P.CREATE_TIME,P.MODIFY_TIME,PHONE,EMAIL,ORGANIZATION.NAME "
|
301
|
301
|
+ "FROM PROFESSOR P LEFT JOIN ORGANIZATION ON P.ORG_ID = ORGANIZATION.ID WHERE P.ID = ?";
|
302
|
302
|
PreparedStatement ps = con.prepareStatement(sql);
|
303
|
303
|
try{
|
|
@ -350,17 +350,27 @@ public abstract class ProfessorDao {
|
350
|
350
|
_result.setDescp(_m_8);
|
351
|
351
|
_result.setCreateTime(rs.getString(14));
|
352
|
352
|
_result.setModifyTime(rs.getString(15));
|
353
|
|
organization.setName(rs.getString(16));
|
|
353
|
String _m_9 = rs.getString(16);
|
|
354
|
if(rs.wasNull()){
|
|
355
|
_m_9 = null;
|
|
356
|
}
|
|
357
|
_result.setPhone(_m_9);
|
|
358
|
String _m_10 = rs.getString(17);
|
|
359
|
if(rs.wasNull()){
|
|
360
|
_m_10 = null;
|
|
361
|
}
|
|
362
|
_result.setEmail(_m_10);
|
|
363
|
organization.setName(rs.getString(18));
|
354
|
364
|
_result.setOrganization(organization);
|
355
|
365
|
return _result;
|
356
|
366
|
}else{
|
357
|
367
|
return null;
|
358
|
368
|
}
|
359
|
369
|
}finally{
|
360
|
|
try{rs.close();}catch(Exception _m_9){}
|
|
370
|
try{rs.close();}catch(Exception _m_11){}
|
361
|
371
|
}
|
362
|
372
|
}finally{
|
363
|
|
try{ps.close();}catch(Exception _m_10){}
|
|
373
|
try{ps.close();}catch(Exception _m_12){}
|
364
|
374
|
}
|
365
|
375
|
}
|
366
|
376
|
|