Explorar o código

使用人员排序

xuzhiheng %!s(int64=2) %!d(string=hai) anos
pai
achega
2690af411f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {