- refactor model register.
This commit is contained in:
61
business/legacymodel/jxorder.go
Normal file
61
business/legacymodel/jxorder.go
Normal file
@@ -0,0 +1,61 @@
|
||||
package legacymodel
|
||||
|
||||
import "git.rosy.net.cn/jx-callback/globals"
|
||||
|
||||
type Jxorder2 struct {
|
||||
Id int `orm:"column(id);auto"`
|
||||
VenderId int8 `orm:"column(vender_id);null"`
|
||||
OrderId int64 `orm:"column(order_id);null;unique"`
|
||||
JxStoreId string `orm:"column(jx_store_id);size(20);null"`
|
||||
JxStoreName string `orm:"column(jx_store_name);size(100);null"`
|
||||
OrderNum int `orm:"column(order_num);null"`
|
||||
OrderStatus int8 `orm:"column(order_status);null"`
|
||||
OrderStatusTime string `orm:"column(order_status_time);size(50);null"`
|
||||
BusinessTag string `orm:"column(business_tag);size(100);null"`
|
||||
SkuCount int `orm:"column(sku_count);null"`
|
||||
OrderBuyerRemark string `orm:"column(order_buyer_remark);size(500);null"`
|
||||
BuyerFullName string `orm:"column(buyer_full_name);size(100);null"`
|
||||
BuyerFullAddress string `orm:"column(buyer_full_address);size(500);null"`
|
||||
BuyerMobile string `orm:"column(buyer_mobile);size(100);null"`
|
||||
BuyerCoordType int `orm:"column(buyer_coord_type);null"`
|
||||
BuyerLng float64 `orm:"column(buyer_lng);null"`
|
||||
BuyerLat float64 `orm:"column(buyer_lat);null"`
|
||||
StoreLng float64 `orm:"column(store_lng);null;default(-1)"`
|
||||
StoreLat float64 `orm:"column(store_lat);null;default(-1)"`
|
||||
DeliveryPackageWeight float64 `orm:"column(delivery_package_weight);null"`
|
||||
DeliveryCarrierNo string `orm:"column(delivery_carrier_no);size(20);null"`
|
||||
DeliveryCarrierName string `orm:"column(delivery_carrier_name);size(100);null"`
|
||||
DeliveryManNo string `orm:"column(delivery_man_no);size(20);null"`
|
||||
DeliveryManName string `orm:"column(delivery_man_name);size(20);null"`
|
||||
DeliveryManPhone string `orm:"column(delivery_man_phone);size(20);null"`
|
||||
DeliveryBillNo string `orm:"column(delivery_bill_no);size(100);null"`
|
||||
DeliveryStatus int8 `orm:"column(delivery_status);null"`
|
||||
DeliveryConfirmTime string `orm:"column(delivery_confirm_time);size(50);null"`
|
||||
AdjustIsExists int8 `orm:"column(adjust_is_exists);null"`
|
||||
AdjustId int64 `orm:"column(adjust_id);null"`
|
||||
OrderTotalMoney int `orm:"column(order_total_money);null"`
|
||||
OrderDiscountMoney int `orm:"column(order_discount_money);null"`
|
||||
OrderPlatDiscount int `orm:"column(order_plat_discount);null"`
|
||||
OrderVenderDiscount int `orm:"column(order_vender_discount);null"`
|
||||
OrderBuyerPayableMoney int `orm:"column(order_buyer_payable_money);null"`
|
||||
OrderReceivableFreight int `orm:"column(order_receivable_freight);null"`
|
||||
PlatFreightDis int `orm:"column(plat_freight_dis);null"`
|
||||
VenderFreightDis int `orm:"column(vender_freight_dis);null"`
|
||||
Tips int `orm:"column(tips);null"`
|
||||
Percentage float64 `orm:"column(percentage);null"`
|
||||
Allowance int `orm:"column(allowance);null"`
|
||||
CityName string `orm:"column(city_name);size(20);null"`
|
||||
OrderStartTime string `orm:"column(order_start_time);size(50);null"`
|
||||
OrderPreEndDelivTime string `orm:"column(order_pre_end_deliv_time);size(50);null"`
|
||||
OrderEndTime string `orm:"column(order_end_time);size(50);null"`
|
||||
JdStoreId string `orm:"column(jd_store_id);size(20);null"`
|
||||
DeliveryPrice float64 `orm:"column(delivery_price);null;digits(6);decimals(2);default(0.00)"`
|
||||
DeliveryPrice1 float64 `orm:"column(delivery_price1);null;digits(6);decimals(2);default(0.00)"`
|
||||
DeliveryStartTime string `orm:"column(delivery_start_time);size(50);null"`
|
||||
DeliveryFinishTime string `orm:"column(delivery_finish_time);size(50);null"`
|
||||
IsRecallDelivery int `orm:"column(is_recall_delivery);default(0)"`
|
||||
}
|
||||
|
||||
func (t *Jxorder2) TableName() string {
|
||||
return globals.JxorderTableName
|
||||
}
|
||||
Reference in New Issue
Block a user