tuoling805 2 роки тому
батько
коміт
b5c7a1a2f7

+ 1 - 5
controllers/admin.go

@@ -78,11 +78,7 @@ func (c *AdminCommon) Login() {
 	resp.ProductName = productName
 	resp.Authority = adminWx.Authority
 	resp.Headimgurl = adminWx.Headimgurl
-	if utils.RunMode == "release" {
-		if adminWx.AdminId == 66 {
-			resp.IsBusinessTrip = true
-		}
-	} else {
+	if adminWx.AdminId == 66 {
 		resp.IsBusinessTrip = true
 	}
 	c.OkDetailed(resp, "登录成功")

+ 1 - 1
models/tables/business_trip/business_apply.go

@@ -88,7 +88,7 @@ func GetBusinessApplyList(condition string, pars []interface{}, startSize, pageS
 	if condition != "" {
 		sql += condition
 	}
-	sql += ` ORDER BY a.create_time ASC LIMIT ?,? `
+	sql += ` ORDER BY a.create_time DESC LIMIT ?,? `
 	_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&list)
 	return
 }