materialRecord

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arrive

func Arrive(db *gorm.DB, materialID int64) error

Arrive 入库

func IsExist

func IsExist(db *gorm.DB, materialID int64) (bool, error)

IsExist 物料信息是否存在

func Leave

func Leave(db *gorm.DB, materialID int64) error

Leave 出库

Types

type MaterialInCellRecord

type MaterialInCellRecord struct {
	MaterialID int64
	ArriveTime time.Time
	LeaveTime  time.Time
}

MaterialInCellRecord 物料在储位的记录

func GetRecord

func GetRecord(db *gorm.DB, limit uint32, offset uint32) ([]MaterialInCellRecord, error)

GetRecord ..

func GetRecordByDate

func GetRecordByDate(db *gorm.DB, startTime string, endTime string) ([]MaterialInCellRecord, error)

GetRecordByDate ..

Jump to

Keyboard shortcuts

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