From 90b9a1c487673f17c5d5ade3c078df9e5b344f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 1 Sep 2020 16:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BA=AC=E4=B8=9C=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/tempop/tempop.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 85fa60e9b..a13843fd1 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1585,8 +1585,8 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { // fmt.Println("deleteList2", deleteList) // cms.DeletedDuplicateWaitAuditData(ctx, dao.GetDB()) type tmp struct { - jdID string - s float64 + JdID string `json:"jdID"` + S float64 `json:"s"` } var ( ss []*tmp @@ -1601,15 +1601,14 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { if station.DeliveryRangeType == 2 { strs := strings.Split(station.DeliveryRange, ";") ss = append(ss, &tmp{ - jdID: v.VendorStoreID, - s: jxutils.ComputeSignedArea(strs[:len(strs)-1]), + JdID: v.VendorStoreID, + S: jxutils.ComputeSignedArea(strs[:len(strs)-1]), }) } } - fmt.Println("2222222222222222222222222222222222222222", utils.Format4Output(ss, false)) for i := 0; i < len(ss)-1; i++ { for j := 0; j < len(ss)-1-i; j++ { - if ss[j].s > ss[j+1].s { + if ss[j].S > ss[j+1].S { temp := ss[j] ss[j] = ss[j+1] ss[j+1] = temp