Browse Source

Merge branch 'dm' of http://8.136.199.33:3000/eta_gn_server/eta_api into dm

xyxie 6 months ago
parent
commit
6a3f64f16a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      controllers/bi_approve/bi_approve_flow.go

+ 3 - 0
controllers/bi_approve/bi_approve_flow.go

@@ -59,6 +59,9 @@ func (c *BiApproveFlowController) List() {
 	}
 	startSize := paging.StartIndex(currentIndex, pageSize)
 	orderMap := map[int]string{1: "ASC", 2: "DESC"}
+	if sortRule == 0 {
+		sortRule = 2
+	}
 	condition += " ORDER BY create_time " + orderMap[sortRule]
 
 	res, total, msg, err := biapprove.GetBiApproveFlowList(condition, pars, startSize, pageSize)