Browse Source

feat:xiugai

wangchuanjin 1 năm trước cách đây
mục cha
commit
9f8d3673d7
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      api/internal/service/CoopHistoryService.go

+ 3 - 0
api/internal/service/CoopHistoryService.go

@@ -53,6 +53,9 @@ func (n *ResultDatas) Len() int {
 }
 
 func (n *ResultDatas) Less(i, j int) bool {
+	if (*n)[i].RecentTime == (*n)[j].RecentTime {
+		return (*n)[i].EntName < (*n)[j].EntName
+	}
 	return (*n)[i].RecentTime > (*n)[j].RecentTime
 }