dao

package
v0.0.0-...-3e971a3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextID

func NextID() uint64

Types

type Dao

type Dao struct {
	*sql.DB
}

func (*Dao) CreateSO

func (dao *Dao) CreateSO(ctx context.Context, soMasters []*SoMaster) ([]uint64, error)

type SoItem

type SoItem struct {
	SysNo         int64   `json:"sysNo"`
	SoSysNo       int64   `json:"soSysNo"`
	ProductSysNo  int64   `json:"productSysNo"`
	ProductName   string  `json:"productName"`
	CostPrice     float64 `json:"costPrice"`
	OriginalPrice float64 `json:"originalPrice"`
	DealPrice     float64 `json:"dealPrice"`
	Quantity      int32   `json:"quantity"`
}

type SoMaster

type SoMaster struct {
	SysNo                int64     `json:"sysNo"`
	SoID                 string    `json:"soID"`
	BuyerUserSysNo       int64     `json:"buyerUserSysNo"`
	SellerCompanyCode    string    `json:"sellerCompanyCode"`
	ReceiveDivisionSysNo int64     `json:"receiveDivisionSysNo"`
	ReceiveAddress       string    `json:"receiveAddress"`
	ReceiveZip           string    `json:"receiveZip"`
	ReceiveContact       string    `json:"receiveContact"`
	ReceiveContactPhone  string    `json:"receiveContactPhone"`
	StockSysNo           int64     `json:"stockSysNo"`
	PaymentType          int32     `json:"paymentType"`
	SoAmt                float64   `json:"soAmt"`
	Status               int32     `json:"status"`
	OrderDate            time.Time `json:"orderDate"`
	PaymentDate          time.Time `json:"paymentDate"`
	DeliveryDate         time.Time `json:"deliveryDate"`
	ReceiveDate          time.Time `json:"receiveDate"`
	AppID                string    `json:"appID"`
	Memo                 string    `json:"memo"`
	CreateUser           string    `json:"createUser"`
	GmtCreate            time.Time `json:"gmtCreate"`
	ModifyUser           string    `json:"modifyUser"`
	GmtModified          time.Time `json:"gmtModified"`

	SoItems []*SoItem
}

Jump to

Keyboard shortcuts

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