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