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