TMSTransportMod

package
v5.2.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTransport

func CreateTransport(args ArgsCreateTransport)

CreateTransport 创建新配送单

Types

type ArgsCreateTransport

type ArgsCreateTransport struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//当前配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//客户档案ID
	InfoID int64 `db:"info_id" json:"infoID" check:"id" empty:"true"`
	//客户用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"`
	//取货地址
	FromAddress CoreSQLAddress.FieldsAddress `db:"from_address" json:"fromAddress"`
	//收货地址
	ToAddress CoreSQLAddress.FieldsAddress `db:"to_address" json:"toAddress"`
	//订单ID
	OrderID int64 `db:"order_id" json:"orderID" check:"id" empty:"true"`
	//货物ID
	Goods FieldsTransportGoods `db:"goods" json:"goods"`
	//快递总重量
	Weight int `db:"weight" json:"weight" check:"intThan0" empty:"true"`
	//长宽
	Length int `db:"length" json:"length" check:"intThan0" empty:"true"`
	Width  int `db:"width" json:"width" check:"intThan0" empty:"true"`
	//货币
	Currency int `db:"currency" json:"currency" check:"currency"`
	//配送费用
	Price int64 `db:"price" json:"price" check:"price" empty:"true"`
	//是否完成了缴费
	PayFinish bool `db:"pay_finish" json:"payFinish" check:"bool" empty:"true"`
	//期望送货时间
	TaskAt string `db:"task_at" json:"taskAt" check:"isoTime" empty:"true"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsCreateTransport 创建新配送单参数

type ArgsGetTransport

type ArgsGetTransport struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//客户档案ID
	InfoID int64 `db:"info_id" json:"infoID" check:"id" empty:"true"`
	//客户用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"`
}

ArgsGetTransport 获取配送信息参数

type FieldsTransport

type FieldsTransport struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//完成时间
	FinishAt time.Time `db:"finish_at" json:"finishAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//当前配送人员
	// 组织成员ID
	BindID int64 `db:"bind_id" json:"bindID"`
	//客户档案ID
	InfoID int64 `db:"info_id" json:"infoID"`
	//客户用户ID
	UserID int64 `db:"user_id" json:"userID"`
	//编号
	// 商户下唯一
	SN int64 `db:"sn" json:"sn"`
	//今日编号
	SNDay int64 `db:"sn_day" json:"snDay"`
	//配送状态
	// 0 等待分配人员; 1 取货中; 2 送货中; 3 完成配送
	Status int `db:"status" json:"status"`
	//取货地址
	FromAddress CoreSQLAddress.FieldsAddress `db:"from_address" json:"fromAddress"`
	//收货地址
	ToAddress CoreSQLAddress.FieldsAddress `db:"to_address" json:"toAddress"`
	//订单ID
	OrderID int64 `db:"order_id" json:"orderID"`
	//货物ID
	Goods FieldsTransportGoods `db:"goods" json:"goods"`
	//快递总重量
	Weight int `db:"weight" json:"weight"`
	//长宽
	Length int `db:"length" json:"length"`
	Width  int `db:"width" json:"width"`
	//货币
	Currency int `db:"currency" json:"currency"`
	//配送费用
	Price int64 `db:"price" json:"price"`
	//完成缴费时间
	PayFinishAt time.Time `db:"pay_finish_at" json:"payFinishAt"`
	//缴费交易ID
	PayID int64 `db:"pay_id" json:"payID"`
	//历史支付请求
	PayIDs pq.Int64Array `db:"pay_ids" json:"payIDs" check:"ids" empty:"true"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

FieldsTransport 配送

func GetTransport

func GetTransport(args *ArgsGetTransport) (data FieldsTransport, err error)

GetTransport 获取配送信息

type FieldsTransportGood

type FieldsTransportGood struct {
	//来源系统
	System string `json:"system"`
	//来源ID
	ID int64 `json:"id"`
	//标识码
	Mark string `json:"mark"`
	//名称
	Name string `json:"name"`
	//数量
	Count int `json:"count"`
}

FieldsTransportGood 货物

func (*FieldsTransportGood) Scan

func (t *FieldsTransportGood) Scan(value interface{}) error

func (FieldsTransportGood) Value

func (t FieldsTransportGood) Value() (driver.Value, error)

Value sql底层处理器

type FieldsTransportGoods

type FieldsTransportGoods []FieldsTransportGood

func (*FieldsTransportGoods) Scan

func (t *FieldsTransportGoods) Scan(value interface{}) error

func (FieldsTransportGoods) Value

func (t FieldsTransportGoods) Value() (driver.Value, error)

Value sql底层处理器

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL