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