package model import "time" type OrderFinancial struct { ModelIDCUL VendorID int `orm:"column(vendor_id)" json:"vendorID"` // 平台id VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"` // 订单ID VendorOrderID2 string `orm:"column(vendor_order_id2);size(48);index" json:"vendorOrderID2"` // 订单ID2,饿百独有 DeliveryConfirmTime time.Time `orm:"type(datetime);index" json:"deliveryConfirmTime"` // 订单妥投/完成时间 ShopPriceMoney int64 `json:"shopPriceMoney"` // 门店价-左右商品在京西的价格总和(报价模式会用到)0 SalePriceMoney int64 `json:"salePriceMoney"` // 商品标价总额(用户下单满减之前的商品售价)+ ActualPayMoney int64 `json:"actualPayMoney"` // 用户实际支付金额0 TotalDiscountMoney int64 `json:"totalDiscountMoney"` // 订单总优惠(订单主体+运费)- DiscountMoney int64 `json:"discountMoney"` // 订单主体优惠0 ReceivableFreight int64 `json:"receivableFreight"` // 订单应收运费0 FreightMoney int64 `json:"freightMoney"` // 用户支付运费0 FreightDiscountMoney int64 `json:"freightDiscountMoney"` // 订单运费优惠(商家设置满减discountType == 8)0 VendorFreightDiscountMoney int64 `json:"vendorFreightDiscountMoney"` // 订单运费优惠(平台运费优惠discountType == 7/12/15)+ DistanceFreightMoney int64 `json:"distanceFreightMoney"` // 订单远距离费- FreightTipsMoney int64 `json:"freightTipsMoney"` // 订单小费- DonationMoney int64 `json:"donationMoney"` // 公益捐款- SelfDeliveryDiscountMoney int64 `json:"selfDeliveryDiscountMoney"` // 平台承担运费补贴(商家自送)+ PmSubsidyMoney int64 `json:"pmSubsidyMoney"` // 平台订单活动补贴1+ BoxMoney int64 `json:"boxMoney"` // 餐盒费1+ PmMoney int64 `json:"pmMoney"` // 平台费1- ShopMoney int64 `json:"shopMoney"` // 应结金额-第三方平台结算给京西的金额M ShopMoneyByCal int64 `json:"shopMoneyByCal"` // 应结金额-通过公式计算平台结给京西的金额M PmMoneyFormJx int64 `json:"pmMoneyFormJx"` // 京西平台费- FreightMoneyFromJx int64 `json:"freightMoneyFromJx"` // 转自送-->美团/达达订单产生运费0 FreightMoneyFromJxByShop int64 `json:"freightMoneyFromJxByShop"` // 转自送-->美团/达达订单产生运费,由商家承担的部分- SubsidyMoneyFromJx int64 `json:"subsidyMoneyFromJx"` // 京西补贴,针对单品活动补贴+ ShopMoneyFromJx int64 `json:"shopMoneyFromJx"` // 店铺应结金额-京西结算给店铺的金额M } func (o *OrderFinancial) TableUnique() [][]string { return [][]string{ []string{"VendorOrderID", "VendorID"}, } } type AfterSalesOrder struct { ModelIDCUL VendorID int `orm:"column(vendor_id)" json:"vendorID"` VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"` // 关联原始订单ID VendorOrderID2 string `orm:"column(vendor_order_id2);size(48);index" json:"vendorOrderID2"` // 关联原始订单ID2,饿百独有 AfterSalesOrderID string `orm:"column(after_sales_order_id);size(48)" json:"afterSalesOrderID"` // 售后订单ID ConfirmTime time.Time `orm:"type(datetime);index" json:"confirmTime"` // 售后单完成时间 VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"` // 外部系统里记录的storeid StoreID int `orm:"column(store_id)" json:"storeID"` // 接口返回的京西门店ID JxStoreID int `orm:"column(jx_store_id)" json:"jxStoreID"` // 根据VendorStoreID在本地系统里查询出来的 jxstoreid SkuUserMoney int64 `json:"skuUserMoney"` // 用户支付菜品金额 FreightUserMoney int64 `json:"freightUserMoney"` // 用户支付运费金额 AfsFreightMoney int64 `json:"afsFreightMoney"` // 退货取件费 BoxMoney int64 `json:"boxMoney"` // 应退包装费金额 TongchengFreightMoney int64 `json:"tongchengFreightMoney"` // 退货单产生的同城送费用 MealBoxMoney int64 `json:"mealBoxMoney"` // 应退订单餐盒费 PmSubsidyMoney int64 `json:"pmSubsidyMoney"` // 平台补贴金额 RefundMoney int64 `json:"refundMoney"` // 平台扣款总额 1 RefundMoneyByCal int64 `json:"refundMoneyByCal"` // 平台扣款总额-通过公式计算平台扣除京西的金额M // SkuJxMoney int64 `json:"SkuJxMoney"` // 京西补贴金额,现阶段是平台扣京西多少钱,京西扣商家多少钱,暂不考虑撤回京西补贴 Skus []*AfterSalesOrderSku `orm:"-" json:"-"` } func (o *AfterSalesOrder) TableUnique() [][]string { return [][]string{ []string{"AfterSalesOrderID", "VendorID"}, } } type AfterSalesOrderSku struct { ModelIDCUL VendorID int `orm:"column(vendor_id)" json:"vendorID"` // 平台id VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"` // 关联原始订单ID VendorOrderID2 string `orm:"column(vendor_order_id2);size(48);index" json:"vendorOrderID2"` // 关联原始订单ID2,饿百独有 AfterSalesOrderID string `orm:"column(after_sales_order_id);size(48)" json:"afterSalesOrderID"` // 售后订单ID ConfirmTime time.Time `orm:"type(datetime)" json:"confirmTime"` // 订单完成时间 VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"` // 外部系统里记录的storeid StoreID int `orm:"column(store_id)" json:"storeID"` // 接口返回的京西门店ID JxStoreID int `orm:"column(jx_store_id)" json:"jxStoreID"` // 根据VendorStoreID在本地系统里查询出来的 jxstoreid VendorSkuID string `orm:"column(vendor_sku_id);size(48)" json:"vendorSkuID"` // 平台skuid SkuID int `orm:"column(sku_id)" json:"skuID"` // 平台返回的京西skuid JxSkuID int `orm:"column(jx_sku_id)" json:"jxSkuID"` // 京西skuid Name string `orm:"size(255)" json:"name"` // 商品名 SkuUserMoney int64 `json:"skuUserMoney"` // 用户支付金额 SkuVendorMoney int64 `json:"skuVendorMoney"` // 平台补贴金额 SkuRefundMoney int64 `json:"skuRefundMoney"` // 平台扣款总额 1 SkuRefundMoneyByCal int64 `json:"skuRefundMoneyByCal"` // 平台扣款总额-通过公式计算平台扣除京西的金额M // CreatedAt time.Time `orm:"type(datetime);index" json:"createdAt"` // 订单创建时间 // SkuJxMoney int64 `json:"skuJxFee"` // 京西补贴金额,现阶段是平台扣京西多少钱,京西扣商家多少钱,暂不考虑撤回京西补贴 } func (o *AfterSalesOrderSku) TableIndex() [][]string { return [][]string{ []string{"AfterSalesOrderID", "SkuID", "VendorID"}, } } // type ActivityForSku struct { // ModelIDCUL // CityName string `json:"cityName"` // 活动所在城市 // VendorID int `orm:"column(vendor_id)" json:"vendorID"` // 平台id // ActivityCreatedAt time.Time `orm:"type(datetime);index" json:"activityCreatedAt"` // 活动开始时间时间 // ActivityEndAt time.Time `orm:"type(datetime);index" json:"activityEndAt"` // 活动结束时间 // VendorSkuID string `orm:"column(vendor_sku_id)" json:"vendorSkuID"` // 平台skuid // SkuID int `orm:"column(sku_id)" json:"skuID"` // 平台返回的京西skuid // JxSkuID int `orm:"column(jx_sku_id)" json:"jxSkuID"` // 京西本地系统查询到的skuid // ActivityPrice int64 `json:"activityPrice"` // 活动价格 // JxSubsidy int64 `json:"jxSubsidy"` // 京西补贴 // ManagerSubsidy int64 `json:"managerSubsidy"` // 城市经理补贴 // Remark string `json:"remark"` // 备注 // }