订单合并前
This commit is contained in:
@@ -1591,13 +1591,13 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
// cms.DeletedDuplicateWaitAuditData(ctx, dao.GetDB())
|
// cms.DeletedDuplicateWaitAuditData(ctx, dao.GetDB())
|
||||||
type tmp struct {
|
type tmp struct {
|
||||||
JdID string `json:"jdID"`
|
JdID string `json:"jdID"`
|
||||||
S float64 `json:"s"`
|
S int `json:"s"`
|
||||||
}
|
}
|
||||||
type SpecialtyStoreSkus struct {
|
type SpecialtyStoreSkus struct {
|
||||||
StoreID int `json:"门店ID"`
|
StoreID int `json:"门店ID"`
|
||||||
StoreName string `json:"门店名"`
|
StoreName string `json:"门店名"`
|
||||||
City string `json:"城市"`
|
City string `json:"城市"`
|
||||||
Area float64 `json:"面积"`
|
Area int `json:"面积"`
|
||||||
}
|
}
|
||||||
var (
|
var (
|
||||||
ss []*tmp
|
ss []*tmp
|
||||||
@@ -1622,7 +1622,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
strs := strings.Split(station.DeliveryRange, ";")
|
strs := strings.Split(station.DeliveryRange, ";")
|
||||||
ss = append(ss, &tmp{
|
ss = append(ss, &tmp{
|
||||||
JdID: v.VendorStoreID,
|
JdID: v.VendorStoreID,
|
||||||
S: math.Round(jxutils.ComputeSignedArea(strs[:len(strs)-1])),
|
S: utils.Float64TwoInt(math.Ceil((jxutils.ComputeSignedArea(strs[:len(strs)-1])))),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user