TMSTransport

package
v5.1.39 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//OpenSub 是否启动订阅
	OpenSub = false
)

Functions

func CheckTransport

func CheckTransport(args *ArgsCheckTransport) (updateIDs []int64)

CheckTransport 检查ID列最近是否更新过 如果存在更新,才会反馈数据

func DeleteBind

func DeleteBind(args *ArgsDeleteBind) (err error)

DeleteBind 删除绑定关系

func DeleteBindToMall

func DeleteBindToMall(args *ArgsDeleteBindToMall) (err error)

DeleteBindToMall 删除绑定关系

func DeleteTransport

func DeleteTransport(args *ArgsDeleteTransport) (err error)

DeleteTransport 删除配送单

func GetAnalysisBindAllUnFinishCount

func GetAnalysisBindAllUnFinishCount(args *ArgsGetAnalysisBindAllUnFinishCount) (count int64, err error)

GetAnalysisBindAllUnFinishCount 计算当前配送员配送单未完成总量

func GetAnalysisBindCount

func GetAnalysisBindCount(args *ArgsGetAnalysisBindCount) (count int64, err error)

func GetAnalysisBindFinishCount

func GetAnalysisBindFinishCount(args *ArgsGetAnalysisBindWaitCount) (count int64, err error)

GetAnalysisBindFinishCount 获取已完成任务

func GetAnalysisBindUnFinishCount

func GetAnalysisBindUnFinishCount(args *ArgsGetAnalysisBindUnFinishCount) (count int64, err error)

GetAnalysisBindUnFinishCount 计算当前配送员配送单未完成总量

func GetAnalysisBindWaitCount

func GetAnalysisBindWaitCount(args *ArgsGetAnalysisBindWaitCount) (count int64, err error)

func GetAnalysisCashSum

func GetAnalysisCashSum(args *ArgsGetAnalysisCashSum) (count int64, err error)

func GetAnalysisCount

func GetAnalysisCount(args *ArgsGetAnalysisCount) (count int64, err error)

func GetAnalysisPrice

func GetAnalysisPrice(args *ArgsGetAnalysisPrice) (count int64, err error)

GetAnalysisPrice 配送单费用合计

func GetAnalysisTakeBindCount

func GetAnalysisTakeBindCount(args *ArgsGetAnalysisTakeBindCount) (count int64, err error)

GetAnalysisTakeBindCount 计算配送安排人次

func GetAnalysisWaitCount

func GetAnalysisWaitCount(args *ArgsGetAnalysisWaitCount) (count int64, err error)

func Init

func Init()

func PayForceTransport

func PayForceTransport(args *ArgsPayForceTransport) (err error)

PayForceTransport 支付配送单费用

func PayPhysical

func PayPhysical(args *ArgsPayPhysical) (errCode string, err error)

PayPhysical 实物支付配送单

func PayTransport

func PayTransport(args *ArgsPayTransport) (payData FinancePay.FieldsPayType, errCode string, err error)

PayTransport 请求支付配送单

func SetBindToMall

func SetBindToMall(args *ArgsSetBindToMall) (err error)

SetBindToMall 设置绑定关系

func UpdateAnalysis

func UpdateAnalysis(args *ArgsUpdateAnalysis) (err error)

UpdateAnalysis 为配送单评价 只能由用户或档案人修改数据

func UpdatePrice

func UpdatePrice(args *ArgsUpdatePrice) (err error)

UpdatePrice 修改配送费

func UpdateTransportBind

func UpdateTransportBind(args *ArgsUpdateTransportBind) (err error)

UpdateTransportBind 修改配送人员

func UpdateTransportCash

func UpdateTransportCash(args *ArgsUpdateTransportCash) (errCode string, err error)

UpdateTransportCash 完成配送单的现金收取

func UpdateTransportComment

func UpdateTransportComment(args *ArgsUpdateTransportComment) (err error)

UpdateTransportComment 评价配送单

func UpdateTransportFinish

func UpdateTransportFinish(args *ArgsUpdateTransportFinish) (err error)

UpdateTransportFinish 更新配送单状态为完成

func UpdateTransportGPS

func UpdateTransportGPS(args *ArgsUpdateTransportGPS) (err error)

UpdateTransportGPS 更新配送单定位信息

func UpdateTransportOldToNewBind

func UpdateTransportOldToNewBind(args *ArgsUpdateTransportOldToNewBind) (err error)

UpdateTransportOldToNewBind 修改配送员所有未完成配送单为新的配送员

func UpdateTransportPayClient

func UpdateTransportPayClient(args *ArgsUpdateTransportPayClient) (payData FinancePay.FieldsPayType, result interface{}, needResult bool, errCode string, err error)

UpdateTransportPayClient 代客户确认配送单付款

func UpdateTransportPick

func UpdateTransportPick(args *ArgsUpdateTransportPick) (err error)

UpdateTransportPick 更新配送单状态到取货中

func UpdateTransportSend

func UpdateTransportSend(args *ArgsUpdateTransportSend) (err error)

UpdateTransportSend 更新配送单状态到送货中

func UpdateTransportTaskAt

func UpdateTransportTaskAt(args *ArgsUpdateTransportTaskAt) (err error)

UpdateTransportTaskAt 修改上门时间

Types

type ArgsCheckTransport

type ArgsCheckTransport struct {
	//检查的ID列
	Data []ArgsCheckTransportData `json:"data"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//当前配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
}

ArgsCheckTransport 检查ID列最近是否更新过参数

type ArgsCheckTransportData

type ArgsCheckTransportData struct {
	//ID
	ID int64 `json:"id"`
	//更新时间
	UpdateAt string `json:"updateAt"`
}

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 ArgsDeleteBind

type ArgsDeleteBind struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsDeleteBind 删除绑定关系参数

type ArgsDeleteBindToMall

type ArgsDeleteBindToMall struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsDeleteBindToMall 删除绑定关系参数

type ArgsDeleteTransport

type ArgsDeleteTransport struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//描述信息
	Des string `json:"des" check:"des" min:"1" max:"1000"`
}

ArgsDeleteTransport 删除配送单参数

type ArgsGetAnalysisAvg

type ArgsGetAnalysisAvg struct {
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送人员
	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"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID" check:"id" empty:"true"`
	//时间范围
	BetweenTime CoreSQLTime.DataCoreTime `json:"betweenTime"`
	//结构方式
	// year / month / day / hour
	TimeType string `json:"timeType" check:"mark"`
}

ArgsGetAnalysisAvg 获取指定时间范围平均数据参数

type ArgsGetAnalysisBind

type ArgsGetAnalysisBind struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//查询时间范围
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetAnalysisBind 获取配送员分量统计信息参数 只允许统计配送员最近1个月数据,会自动忽略更新时间早于1个月的人

type ArgsGetAnalysisBindAllUnFinishCount

type ArgsGetAnalysisBindAllUnFinishCount struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//当前配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
}

ArgsGetAnalysisBindAllUnFinishCount 计算当前配送员配送单未完成总量参数

type ArgsGetAnalysisBindCount

type ArgsGetAnalysisBindCount struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//成员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id"`
	//时间范围
	// 部分统计支持
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetAnalysisBindCount 获取配送单总量

type ArgsGetAnalysisBindGoods

type ArgsGetAnalysisBindGoods struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//多个成员ID
	BindIDs pq.Int64Array `db:"bind_ids" json:"bindIDs" check:"ids"`
	//是否为退单
	NeedIsRefund bool `json:"needIsRefund"`
	IsRefund     bool `json:"isRefund"`
	//查询时间范围
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetAnalysisBindGoods 反馈指定配送员的统计数据参数

type ArgsGetAnalysisBindUnFinishCount

type ArgsGetAnalysisBindUnFinishCount struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//当前配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//查询时间范围
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetAnalysisBindUnFinishCount 计算当前配送员配送单未完成总量参数

type ArgsGetAnalysisBindWaitCount

type ArgsGetAnalysisBindWaitCount struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//成员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id"`
	//时间范围
	// 部分统计支持
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetAnalysisBindWaitCount 获取配送单未完成总量

type ArgsGetAnalysisCashSum

type ArgsGetAnalysisCashSum struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//收付款类型
	// 0 收款(配送员收到款项) 1 付款(配送员付出款项)
	PayType int `db:"pay_type" json:"payType"`
	//时间范围
	// 部分统计支持
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetAnalysisCashSum 获取配送员

type ArgsGetAnalysisCount

type ArgsGetAnalysisCount struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//时间范围
	// 部分统计支持
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetAnalysisCount 获取配送单总量

type ArgsGetAnalysisList

type ArgsGetAnalysisList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送人员
	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"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID" check:"id" empty:"true"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetAnalysisList 获取统计信息列表参数

type ArgsGetAnalysisPrice

type ArgsGetAnalysisPrice struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//查询时间范围
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

type ArgsGetAnalysisSUM

type ArgsGetAnalysisSUM struct {
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送人员
	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"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID" check:"id" empty:"true"`
	//时间范围
	BetweenTime CoreSQLTime.DataCoreTime `json:"betweenTime"`
	//结构方式
	// year / month / day / hour
	TimeType string `json:"timeType" check:"mark"`
}

ArgsGetAnalysisSUM 获取指定时间范围合计数据参数

type ArgsGetAnalysisTakeBindCount

type ArgsGetAnalysisTakeBindCount struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//查询时间范围
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetAnalysisTakeBindCount 计算配送安排人次参数

type ArgsGetAnalysisTimeCount

type ArgsGetAnalysisTimeCount struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//查询时间范围
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
	//结构方式
	// year / month / day / hour
	TimeType string `json:"timeType"`
}

ArgsGetAnalysisTimeCount 获取配送员分量统计信息参数

type ArgsGetAnalysisWaitCount

type ArgsGetAnalysisWaitCount struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//时间范围
	// 部分统计支持
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetAnalysisWaitCount 获取配送单未完成总量

type ArgsGetBind

type ArgsGetBind struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsGetBind 获取指定ID参数

type ArgsGetBindByBindID

type ArgsGetBindByBindID struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//组织成员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id"`
}

ArgsGetBindByBindID 通过组织成员ID获取绑定关系参数

type ArgsGetBindGPSGroup

type ArgsGetBindGPSGroup struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id"`
	//最早的时间
	MinTime string `db:"min_time" json:"minTime" check:"isoTime"`
}

ArgsGetBindGPSGroup 分组反馈数据参数 根据时间长度,超出3天的按照天划分,否则按照小时划分;超出3个月的按照月划分;超出24个月的按照年划分

type ArgsGetBindGPSLast

type ArgsGetBindGPSLast struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id"`
}

ArgsGetBindGPSLast 获取指定人员的最近定位数据参数

type ArgsGetBindGPSList

type ArgsGetBindGPSList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
}

ArgsGetBindGPSList 获取定位列表参数

type ArgsGetBindList

type ArgsGetBindList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//分区ID
	MapAreaID int64 `db:"map_area_id" json:"mapAreaID" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `db:"is_remove" json:"isRemove" check:"bool"`
}

ArgsGetBindList 获取绑定列表参数

type ArgsGetBindToMallList

type ArgsGetBindToMallList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//商品ID
	BindMallID int64 `db:"bind_mall_id" json:"bindMallID" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `db:"is_remove" json:"isRemove" check:"bool"`
}

ArgsGetBindToMallList 获取绑定列表参数

type ArgsGetCashByTransport

type ArgsGetCashByTransport struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID" check:"id"`
}

ArgsGetCashByTransport 获取配送单对应的收支记录参数

type ArgsGetCashList

type ArgsGetCashList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//收付款类型
	// 0 收款 1 付款
	PayType int `db:"pay_type" json:"payType"`
}

ArgsGetCashList 获取现金收取列表参数

type ArgsGetLogList

type ArgsGetLogList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//数据产生来源
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID" check:"id" empty:"true"`
	//配送人员
	TransportBindID int64 `db:"transport_bind_id" json:"transportBindID" check:"id" empty:"true"`
	//行为特征
	Mark string `db:"mark" json:"mark" check:"mark" empty:"true"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetLogList 获取日志列表参数

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 ArgsGetTransportGPSGroup

type ArgsGetTransportGPSGroup struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID" check:"id"`
	//最早的时间
	MinTime string `db:"min_time" json:"minTime" check:"isoTime"`
}

ArgsGetTransportGPSGroup 分组反馈数据参数 根据时间长度,超出3天的按照天划分,否则按照小时划分;超出3个月的按照月划分;超出24个月的按照年划分

type ArgsGetTransportGPSLast

type ArgsGetTransportGPSLast struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID" check:"id"`
}

ArgsGetTransportGPSLast 获取指定配送单的最近定位数据参数

type ArgsGetTransportGPSList

type ArgsGetTransportGPSList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID" check:"id" empty:"true"`
}

ArgsGetTransportGPSList 获取定位列表参数

type ArgsGetTransportList

type ArgsGetTransportList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//当前配送人员
	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"`
	//订单ID
	OrderID int64 `db:"order_id" json:"orderID" check:"id" empty:"true"`
	//编号
	// 商户下唯一
	SN int64 `db:"sn" json:"sn" check:"int64Than0" empty:"true"`
	//今日编号
	SNDay int64 `db:"sn_day" json:"snDay" check:"int64Than0" empty:"true"`
	//符合条件的一组配送状态
	// 0 等待分配人员; 1 取货中; 2 送货中; 3 完成配送
	Status pq.Int32Array `db:"status" json:"status"`
	//是否需要支付参数
	NeedIsPay bool `db:"need_is_pay" json:"needIsPay" check:"bool"`
	//是否已经支付配送
	IsPay bool `db:"is_pay" json:"isPay" check:"bool"`
	//缴费交易ID
	PayID int64 `db:"pay_id" json:"payID" check:"id" empty:"true"`
	//是否为完成时间的时间范围
	IsFinishAt bool `json:"isFinishAt" check:"bool"`
	//时间范围
	// 部分统计支持
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
	//是否删除
	IsRemove bool `db:"is_remove" json:"isRemove" check:"bool"`
	//是否为历史
	IsHistory bool `db:"is_history" json:"isHistory" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetTransportList 获取配送列表参数

type ArgsGetTransports

type ArgsGetTransports struct {
	//ID列
	IDs pq.Int64Array `json:"ids" check:"ids"`
	//是否包含删除数据
	HaveRemove bool `json:"haveRemove" check:"bool"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
}

ArgsGetTransports 查询多个配送单参数

type ArgsPayForceTransport

type ArgsPayForceTransport struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//支付渠道
	PaySystem string
}

ArgsPayForceTransport 强制完成费用支付

type ArgsPayPhysical

type ArgsPayPhysical struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//抵扣物品数量集合
	Data []ArgsPayPhysicalData `json:"data"`
}

ArgsPayPhysical 实物支付配送单参数

type ArgsPayPhysicalData

type ArgsPayPhysicalData struct {
	//获取来源
	// 如果商品mark带有virtual标记,且订单商品全部带有该标记,订单将在付款后直接完成
	From CoreSQLFrom.FieldsFrom `db:"from" json:"from"`
	//给予标的物数量
	PhysicalCount int64 `db:"physical_count" json:"physicalCount" check:"int64Than0"`
}

ArgsPayPhysicalData 抵扣物品

type ArgsPayTransport

type ArgsPayTransport struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//支付方式
	// 如果为退单,则为付款方式
	PaymentChannel CoreSQLFrom.FieldsFrom `json:"paymentChannel"`
}

ArgsPayTransport 请求支付配送单参数

type ArgsSetBind

type ArgsSetBind struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//组织成员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id"`
	//分区ID
	MapAreaID int64 `db:"map_area_id" json:"mapAreaID" check:"id" empty:"true"`
	//更多分区
	// 可以绑定更多分区,但性能会下降
	MoreMapAreaIDs pq.Int64Array `db:"more_map_area_ids" json:"moreMapAreaIDs" check:"ids" empty:"true"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsSetBind 设置绑定关系参数

type ArgsSetBindToMall

type ArgsSetBindToMall struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id"`
	//绑定商品
	BindMallID int64 `db:"bind_mall_id" json:"bindMallID" check:"id"`
}

ArgsSetBindToMall 设置绑定关系参数

type ArgsUpdateAnalysis

type ArgsUpdateAnalysis struct {
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID" check:"id"`
	//客户档案ID
	// 可选,用于验证
	InfoID int64 `db:"info_id" json:"infoID"`
	//客户用户ID
	// 可选,用于验证
	UserID int64 `db:"user_id" json:"userID"`
	//评级
	// 1-5 级别
	Level int `db:"level" json:"level" check:"intThan0"`
}

ArgsUpdateAnalysis 为配送单评价参数

type ArgsUpdatePrice

type ArgsUpdatePrice struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//支付金额
	Price int64 `db:"price" json:"price" check:"price" empty:"true"`
}

ArgsUpdatePrice 修改配送费参数

type ArgsUpdateTransportBind

type ArgsUpdateTransportBind struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//新的配送员
	NewBindID int64 `db:"new_bind_id" json:"newBindID"`
}

ArgsUpdateTransportBind 修改配送人员参数

type ArgsUpdateTransportCash

type ArgsUpdateTransportCash struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
}

ArgsUpdateTransportCash 完成配送单的现金收取参数

type ArgsUpdateTransportComment

type ArgsUpdateTransportComment struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//客户档案ID
	InfoID int64 `db:"info_id" json:"infoID" check:"id" empty:"true"`
	//客户用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"`
	//评级
	// 1-5 级别
	Level int `db:"level" json:"level"`
}

ArgsUpdateTransportComment 评价配送单参数

type ArgsUpdateTransportFinish

type ArgsUpdateTransportFinish struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//协助操作人员ID
	OperateBindID int64 `json:"operateBindID"`
	//是否为订单退款完成
	IsOrderRefund bool `json:"isOrderRefund"`
}

ArgsUpdateTransportFinish 更新配送单状态为完成参数

type ArgsUpdateTransportGPS

type ArgsUpdateTransportGPS struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//地图制式
	// WGS-84 / GCJ-02 / BD-09
	MapType int `db:"map_type" json:"mapType"`
	//坐标位置
	Longitude float64 `db:"longitude" json:"longitude"`
	Latitude  float64 `db:"latitude" json:"latitude"`
}

ArgsUpdateTransportGPS 更新配送单定位信息参数

type ArgsUpdateTransportOldToNewBind

type ArgsUpdateTransportOldToNewBind struct {
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//旧配送人员
	OldBindID int64 `db:"old_bind_id" json:"oldBindID" check:"id"`
	//新配送员
	NewBindID int64 `db:"new_bind_id" json:"newBindID" check:"id"`
}

ArgsUpdateTransportOldToNewBind 修改配送员所有未完成配送单为新的配送员参数

type ArgsUpdateTransportPayClient

type ArgsUpdateTransportPayClient struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//操作IP
	IP string
}

ArgsUpdateTransportPayClient 代客户确认配送单付款参数

type ArgsUpdateTransportPick

type ArgsUpdateTransportPick struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
}

ArgsUpdateTransportPick 更新配送单状态到取货中参数

type ArgsUpdateTransportSend

type ArgsUpdateTransportSend struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
}

ArgsUpdateTransportSend 更新配送单状态到送货中参数

type ArgsUpdateTransportTaskAt

type ArgsUpdateTransportTaskAt struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//操作组织人员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//期望送货时间
	TaskAt string `db:"task_at" json:"taskAt" check:"isoTime" empty:"true"`
}

ArgsUpdateTransportTaskAt 修改上门时间参数

type DataGetAnalysisBind

type DataGetAnalysisBind struct {
	//最近30天评价
	Level30Day int `db:"level_30_day" json:"level30Day"`
	//最近30天里程数
	KM30Day int `db:"km_30_day" json:"km30Day"`
	//最近30天累计任务累计耗时
	Time30Day int64 `db:"time_30_day" json:"time30Day"`
	//最近30天任务量
	Count30Day int `db:"count_30_day" json:"count30Day"`
	//最近30天完成任务量
	CountFinish30Day int `db:"count_finish_30_day" json:"countFinish30Day"`
}

DataGetAnalysisBind 获取配送员分量统计信息数据

func GetAnalysisBind

func GetAnalysisBind(args *ArgsGetAnalysisBind) (data DataGetAnalysisBind, err error)

GetAnalysisBind 获取配送员总的统计

func GetAnalysisBindAvg

func GetAnalysisBindAvg(args *ArgsGetAnalysisBind) (data DataGetAnalysisBind, err error)

GetAnalysisBindAvg 获取配送员平均统计

type DataGetAnalysisSUM

type DataGetAnalysisSUM struct {
	//时间
	DayTime string `db:"d" json:"dayTime"`
	//公里数
	KM int64 `db:"km" json:"km"`
	//总耗时
	OverTime int64 `db:"over_time" json:"overTime"`
	//评级
	// 1-5 级别
	Level int `db:"level" json:"level"`
}

func GetAnalysisAvg

func GetAnalysisAvg(args *ArgsGetAnalysisAvg) (dataList []DataGetAnalysisSUM, err error)

GetAnalysisAvg 获取指定时间范围平均数据

func GetAnalysisSUM

func GetAnalysisSUM(args *ArgsGetAnalysisSUM) (dataList []DataGetAnalysisSUM, err error)

GetAnalysisSUM 获取指定时间范围合计数据

type DataGetAnalysisTimeCount

type DataGetAnalysisTimeCount struct {
	//时间
	DayTime string `db:"d" json:"dayTime"`
	//完成总量
	FinishCount int64 `db:"finish_count" json:"finishCount"`
	//任务总量
	Count int64 `db:"count" json:"count"`
}

DataGetAnalysisTimeCount 获取配送员分量统计信息数据

func GetAnalysisTimeCount

func GetAnalysisTimeCount(args *ArgsGetAnalysisTimeCount) (dataList []DataGetAnalysisTimeCount, err error)

GetAnalysisTimeCount 获取配送员分量统计信息

type DataGetBindGPSGroup

type DataGetBindGPSGroup struct {
	//创建时间
	CreateAt string `db:"d" json:"createAt"`
	//地图制式
	// WGS-84 / GCJ-02 / BD-09
	MapType int `db:"map_type" json:"mapType"`
	//坐标位置
	Longitude float64 `db:"longitude" json:"longitude"`
	Latitude  float64 `db:"latitude" json:"latitude"`
}

func GetBindGPSGroup

func GetBindGPSGroup(args *ArgsGetBindGPSGroup) (dataList []DataGetBindGPSGroup, err error)

GetBindGPSGroup 分组反馈数据

type DataGetTransportGPSGroup

type DataGetTransportGPSGroup struct {
	//创建时间
	CreateAt string `db:"d" json:"createAt"`
	//地图制式
	// WGS-84 / GCJ-02 / BD-09
	MapType int `db:"map_type" json:"mapType"`
	//坐标位置
	Longitude float64 `db:"longitude" json:"longitude"`
	Latitude  float64 `db:"latitude" json:"latitude"`
}

func GetTransportGPSGroup

func GetTransportGPSGroup(args *ArgsGetTransportGPSGroup) (dataList []DataGetTransportGPSGroup, err error)

GetTransportGPSGroup 分组反馈数据

type FieldsAnalysis

type FieldsAnalysis struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID"`
	//客户档案ID
	InfoID int64 `db:"info_id" json:"infoID"`
	//客户用户ID
	UserID int64 `db:"user_id" json:"userID"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID"`
	//公里数
	KM int64 `db:"km" json:"km"`
	//总耗时
	OverTime int64 `db:"over_time" json:"overTime"`
	//评级
	// 1-5 级别
	Level int `db:"level" json:"level"`
}

FieldsAnalysis 统计

func GetAnalysisList

func GetAnalysisList(args *ArgsGetAnalysisList) (dataList []FieldsAnalysis, dataCount int64, err error)

GetAnalysisList 获取统计信息列表

type FieldsBind

type FieldsBind 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"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID"`
	//分区ID
	MapAreaID int64 `db:"map_area_id" json:"mapAreaID"`
	//更多分区
	// 可以绑定更多分区,但分配性能会下降
	MoreMapAreaIDs pq.Int64Array `db:"more_map_area_ids" json:"moreMapAreaIDs" check:"ids" empty:"true"`
	//最近30天评价
	Level30Day int `db:"level_30_day" json:"level30Day"`
	//最近30天里程数
	KM30Day int `db:"km_30_day" json:"km30Day"`
	//最近30天累计任务累计耗时
	Time30Day int64 `db:"time_30_day" json:"time30Day"`
	//最近30天任务量
	Count30Day int `db:"count_30_day" json:"count30Day"`
	//最近30天完成任务量
	CountFinish30Day int `db:"count_finish_30_day" json:"countFinish30Day"`
	//最近1天评价等数据
	Level1Day       int   `db:"level_1_day" json:"level1Day"`
	KM1Day          int   `db:"km_1_day" json:"km1Day"`
	Time1Day        int64 `db:"time_1_day" json:"time1Day"`
	Count1Day       int   `db:"count_1_day" json:"count1Day"`
	CountFinish1Day int   `db:"count_finish_1_day" json:"countFinish1Day"`
	//当前未完成任务
	UnFinishCount int64 `db:"un_finish_count" json:"unFinishCount"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

FieldsBind 分区和配送人员绑定关系

func GetBind

func GetBind(args *ArgsGetBind) (data FieldsBind, err error)

GetBind 获取指定ID

func GetBindByBind

func GetBindByBind(args *ArgsGetBind) (data FieldsBind, err error)

GetBindByBind 获取指定ID

func GetBindByBindID

func GetBindByBindID(args *ArgsGetBindByBindID) (data FieldsBind, err error)

GetBindByBindID 通过组织成员ID获取绑定关系

func GetBindList

func GetBindList(args *ArgsGetBindList) (dataList []FieldsBind, dataCount int64, err error)

GetBindList 获取绑定列表

func SetBind

func SetBind(args *ArgsSetBind) (data FieldsBind, err error)

SetBind 设置绑定关系

type FieldsBindAnalysisGoods

type FieldsBindAnalysisGoods struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	// 每个配送人员每天每个货物,只会产生一条数据
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID"`
	//是否为退单
	IsRefund bool `db:"is_refund" json:"isRefund"`
	//货物列
	Goods FieldsBindAnalysisGoodsGoods `db:"goods" json:"goods"`
}

FieldsBindAnalysisGoods 配送员配送货物统计

func GetAnalysisBindGoods

func GetAnalysisBindGoods(args *ArgsGetAnalysisBindGoods) (dataList []FieldsBindAnalysisGoods, err error)

GetAnalysisBindGoods 反馈指定配送员的统计数据

type FieldsBindAnalysisGoodsGood

type FieldsBindAnalysisGoodsGood struct {
	//来源
	System string `db:"system" json:"system"`
	//ID
	ID int64 `db:"id" json:"id"`
	//订单创建渠道
	FromSystem int `db:"from_system" json:"fromSystem"`
	//支付渠道
	// 支付system+_+mark
	PaySystem string `db:"pay_system" json:"paySystem"`
	//数量
	Count int64 `db:"count" json:"count"`
	//订单付款金额
	Price int64 `db:"price" json:"price"`
}

func (*FieldsBindAnalysisGoodsGood) Scan

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

func (FieldsBindAnalysisGoodsGood) Value

Value sql底层处理器

type FieldsBindAnalysisGoodsGoods

type FieldsBindAnalysisGoodsGoods []FieldsBindAnalysisGoodsGood

func (*FieldsBindAnalysisGoodsGoods) Scan

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

func (FieldsBindAnalysisGoodsGoods) Value

Value sql底层处理器

type FieldsBindGPS

type FieldsBindGPS struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID"`
	//地图制式
	// WGS-84 / GCJ-02 / BD-09
	MapType int `db:"map_type" json:"mapType"`
	//坐标位置
	Longitude float64 `db:"longitude" json:"longitude"`
	Latitude  float64 `db:"latitude" json:"latitude"`
}

FieldsBindGPS 配送人员定位追踪

func GetBindGPSLast

func GetBindGPSLast(args *ArgsGetBindGPSLast) (data FieldsBindGPS, err error)

GetBindGPSLast 获取指定人员的最近定位数据

func GetBindGPSList

func GetBindGPSList(args *ArgsGetBindGPSList) (dataList []FieldsBindGPS, dataCount int64, err error)

GetBindGPSList 获取定位列表

type FieldsBindToMall

type FieldsBindToMall struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id"`
	//绑定商品
	BindMallID int64 `db:"bind_mall_id" json:"bindMallID" check:"id"`
}

FieldsBindToMall 配送员和商品绑定关系

func GetBindToMallList

func GetBindToMallList(args *ArgsGetBindToMallList) (dataList []FieldsBindToMall, dataCount int64, err error)

GetBindToMallList 获取绑定列表

type FieldsCash

type FieldsCash struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//配送员ID
	BindID int64 `db:"bind_id" json:"bindID"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID"`
	//收付款类型
	// 0 收款(配送员收到款项) 1 付款(配送员付出款项)
	PayType int `db:"pay_type" json:"payType"`
	//金额
	Price int64 `db:"price" json:"price"`
}

FieldsCash 配送员收付款金额

func GetCashByTransport

func GetCashByTransport(args *ArgsGetCashByTransport) (data FieldsCash, err error)

GetCashByTransport 获取配送单对应的收支记录

func GetCashList

func GetCashList(args *ArgsGetCashList) (dataList []FieldsCash, dataCount int64, err error)

GetCashList 获取现金收取列表

type FieldsLog

type FieldsLog struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//数据产生来源
	BindID int64 `db:"bind_id" json:"bindID"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID"`
	//配送人员
	TransportBindID int64 `db:"transport_bind_id" json:"transportBindID"`
	//行为特征
	Mark string `db:"mark" json:"mark"`
	//备注
	Des string `db:"des" json:"des"`
}

func GetLogList

func GetLogList(args *ArgsGetLogList) (dataList []FieldsLog, dataCount int64, err error)

GetLogList 获取日志列表

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"`
	//期望送货时间
	TaskAt time.Time `db:"task_at" json:"taskAt"`
	//组织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 CreateTransport

func CreateTransport(args *ArgsCreateTransport) (data FieldsTransport, errCode string, err error)

CreateTransport 创建新配送单

func GetTransport

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

GetTransport 获取配送信息

func GetTransportList

func GetTransportList(args *ArgsGetTransportList) (dataList []FieldsTransport, dataCount int64, err error)

GetTransportList 获取配送列表

func GetTransports

func GetTransports(args *ArgsGetTransports) (dataList []FieldsTransport, err error)

GetTransports 查询多个配送单

type FieldsTransportGPS

type FieldsTransportGPS struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//配送单ID
	TransportID int64 `db:"transport_id" json:"transportID"`
	//地图制式
	// WGS-84 / GCJ-02 / BD-09
	MapType int `db:"map_type" json:"mapType"`
	//坐标位置
	Longitude float64 `db:"longitude" json:"longitude"`
	Latitude  float64 `db:"latitude" json:"latitude"`
}

FieldsTransportGPS 配送单轨迹

func GetTransportGPSLast

func GetTransportGPSLast(args *ArgsGetTransportGPSLast) (data FieldsTransportGPS, err error)

GetTransportGPSLast 获取指定配送单的最近定位数据

func GetTransportGPSList

func GetTransportGPSList(args *ArgsGetTransportGPSList) (dataList []FieldsTransportGPS, dataCount int64, err error)

GetTransportGPSList 获取定位列表

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底层处理器

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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