Browse Source

咨询聊天记录增加按时间排序。

zzy.zhiyuan.foxmail 8 years ago
parent
commit
c2639c7001
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/ekexiu/portal/dao/TidingsDao.java

+ 1 - 1
src/main/java/com/ekexiu/portal/dao/TidingsDao.java

@ -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);