|
@ -46,7 +46,7 @@ public abstract class TidingsDao {
|
46
|
46
|
|
47
|
47
|
public java.util.List<com.ekexiu.portal.po.Tidings> queryCon(java.sql.Connection con,java.lang.String consultId) throws java.sql.SQLException{
|
48
|
48
|
int _m_1 = 1;
|
49
|
|
String sql = "SELECT TIDINGS_ID,TIDINGS_CONTANT,SENDER_ID,TIDINGS.CONSULT_ID,TIDINGS.CREATE_TIME,PROFESSOR.NAME FROM TIDINGS LEFT JOIN PROFESSOR ON SENDER_ID = PROFESSOR.ID WHERE TIDINGS.CONSULT_ID = ?";
|
|
49
|
String sql = "SELECT TIDINGS_ID,TIDINGS_CONTANT,SENDER_ID,TIDINGS.CONSULT_ID,TIDINGS.CREATE_TIME,PROFESSOR.NAME FROM TIDINGS LEFT JOIN PROFESSOR ON SENDER_ID = PROFESSOR.ID WHERE TIDINGS.CONSULT_ID = ? ORDER BY TIDINGS.CREATE_TIME";
|
50
|
50
|
java.sql.PreparedStatement ps = con.prepareStatement(sql);
|
51
|
51
|
try{
|
52
|
52
|
ps.setString(_m_1++,consultId);
|