소스 검색

Merge branch 'master' of http://8.136.199.33:3000/hongze/hz_crm_api into debug

xingzai 1 년 전
부모
커밋
f6e375399a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      controllers/cygx/user.go

+ 2 - 1
controllers/cygx/user.go

@@ -2663,7 +2663,7 @@ func (this *UserController) CompanyExportInteraction() {
 			endDate += " 23:59:59"
 			condition += ` AND r.create_time <= '` + endDate + `' `
 		}
-
+		condition += ` ORDER BY r.create_time DESC  `
 		var pars []interface{}
 		var listRecord []*cygx.CygxArticleAndYanxuanRecordResp
 		if isAdminRole {
@@ -2751,6 +2751,7 @@ func (this *UserController) CompanyExportInteraction() {
 		if activityName != "" {
 			condition += ` AND a.activity_name LIKE '%` + activityName + `%' `
 		}
+		condition += ` ORDER BY a.activity_name DESC  `
 		if isAdminRole {
 			list, err = cygx.GetActivityMeetByCompany(condition, 0, pageSize)
 			if err != nil && err.Error() != utils.ErrNoRow() {