Просмотр исходного кода

邀请注册接口返回数据增加按日期升序排列

hejq 8 лет назад
Родитель
Сommit
3dbb4018c9

+ 1 - 1
src/main/java/com/uas/platform/b2b/v2/service/impl/InviteRecordServiceImpl.java

@@ -108,7 +108,7 @@ public class InviteRecordServiceImpl implements InviteRecordService {
      */
     @Override
     public List<Invitation> getCountGroupByDate(Long userUU, Long enUU, String year) {
-        String sql = "select time, count, 0 as doneCount from v$invitation_all where time like '%" + year + "%' and useruu = " + userUU;
+        String sql = "select time, count, 0 as doneCount from v$invitation_all where time like '%" + year + "%' and useruu = " + userUU + "order by time asc";
         List<Invitation> all = commonDao.query(sql, Invitation.class);
         String sql1 = "select time, count doneCount from v$invitation where time like'%" + year + "%' and useruu = " + userUU + "and active = 1";
         List<Invitation> done = commonDao.query(sql1, Invitation.class);