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])))), }) } }