From 05b6df6700f402858a7705ed46f8251333a91ee8 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 17:29:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=90=88=E5=B9=B6=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/tempop/tempop.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 86de6121f..8ff6b4b37 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1590,14 +1590,14 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { // fmt.Println("deleteList2", deleteList) // cms.DeletedDuplicateWaitAuditData(ctx, dao.GetDB()) type tmp struct { - JdID string `json:"jdID"` - S float64 `json:"s"` + JdID string `json:"jdID"` + S int `json:"s"` } type SpecialtyStoreSkus struct { - StoreID int `json:"门店ID"` - StoreName string `json:"门店名"` - City string `json:"城市"` - Area float64 `json:"面积"` + StoreID int `json:"门店ID"` + StoreName string `json:"门店名"` + City string `json:"城市"` + Area int `json:"面积"` } var ( ss []*tmp @@ -1622,7 +1622,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { strs := strings.Split(station.DeliveryRange, ";") ss = append(ss, &tmp{ JdID: v.VendorStoreID, - S: math.Round(jxutils.ComputeSignedArea(strs[:len(strs)-1])), + S: utils.Float64TwoInt(math.Ceil((jxutils.ComputeSignedArea(strs[:len(strs)-1])))), }) } }