@@ -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)