瀏覽代碼

使用人员排序

xuzhiheng 2 年之前
父節點
當前提交
2690af411f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/service.go

+ 1 - 1
service/service.go

@@ -92,7 +92,7 @@ func UsePersonList(this *entmanageapplication.UsePersonListReq) *entmanageapplic
 		LEFT JOIN entniche_department_user f on (a.ent_user_id=f.user_id) 
 		LEFT JOIN entniche_department g on (g.id=f.dept_id) 
 		where a.status = 1 and a.ent_id = ?
-		order by convert(c.name using gbk) COLLATE gbk_chinese_ci asc`, this.EntId)
+		order by a.update_time desc`, this.EntId)
 	arr := []*entmanageapplication.UsePersonList{}
 	if data != nil && len(*data) > 0 {
 		for _, v := range *data {