浏览代码

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

bsj 2 年之前
父节点
当前提交
4652c1efa1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {