From 0aeb748ea2a4c65a8a75dedcc43d20f428ca35b3 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Sun, 25 Apr 2021 11:37:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/models/c_surveysheet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/models/c_surveysheet.go b/web/models/c_surveysheet.go index a502d42..6787e26 100644 --- a/web/models/c_surveysheet.go +++ b/web/models/c_surveysheet.go @@ -414,9 +414,9 @@ func (t *CSurveysheet) SelectOne(level int) (CSurveysheet, error) { } datalist := make([]CSurveysheetSubjectlst, 0) if level > 0 { - err = e.Table("c_surveysheet_subjectlst").Where("cid = ? and cnr = ? and surveysheetid = ? and level != 1", t.Cid, t.Cnr, t.Surveysheetid).Desc("pos").Find(&datalist) + err = e.Table("c_surveysheet_subjectlst").Where("cid = ? and cnr = ? and surveysheetid = ? and level != 1", t.Cid, t.Cnr, t.Surveysheetid).Asc("pos").Find(&datalist) } else { - err = e.Table("c_surveysheet_subjectlst").Where("cid = ? and cnr = ? and surveysheetid = ?", t.Cid, t.Cnr, t.Surveysheetid).Desc("pos").Find(&datalist) + err = e.Table("c_surveysheet_subjectlst").Where("cid = ? and cnr = ? and surveysheetid = ?", t.Cid, t.Cnr, t.Surveysheetid).Asc("pos").Find(&datalist) } if err != nil { return data, err