Browse Source

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

bsj 2 years ago
parent
commit
4652c1efa1
1 changed files with 1 additions and 1 deletions
  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 {