Ver código fonte

撒料计划查询排序方式修改

bsj 2 anos atrás
pai
commit
4652c1efa1
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      routers/api/spillage.go

+ 1 - 1
routers/api/spillage.go

@@ -839,7 +839,7 @@ func GetSpillage(c *gin.Context) {
 	  lpplan
 	WHERE pastureid = ?   and times <= (SELECT sysopt.inforvalue  FROM sysopt 
 	 WHERE sysopt.pastureid= lpplan.pastureid  AND sysopt.inforname='times')
-	ORDER BY  lpplan.sort`
+	ORDER BY  times,lpplan.sort`
 		session := tx.SQL(sqlstr, pastureid)
 		lppList, err := session.Query().List()
 		if err != nil {