Documentation ¶
Index ¶
- func InWarehouseLog(args *ArgsInWarehouseLog) (err error)
- func Init()
- func MoveWarehouseLog(args *ArgsMoveWarehouseLog) (err error)
- func OutWarehouseLog(args *ArgsOutWarehouseLog) (err error)
- type ArgsGetWarehouseList
- type ArgsGetWarehouseLog
- type ArgsInWarehouseLog
- type ArgsMoveWarehouseLog
- type ArgsOutWarehouseLog
- type FieldsWarehouse
- type FieldsWarehouseLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MoveWarehouseLog ¶
func MoveWarehouseLog(args *ArgsMoveWarehouseLog) (err error)
MoveWarehouseLog 批次移库
func OutWarehouseLog ¶
func OutWarehouseLog(args *ArgsOutWarehouseLog) (err error)
OutWarehouseLog 批次出库
Types ¶
type ArgsGetWarehouseList ¶
type ArgsGetWarehouseList struct { //分页参数 Pages CoreSQL2.ArgsPages `json:"pages"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //库存产品ID ProductID int64 `db:"product_id" json:"productID" check:"id" empty:"true"` //是否删除 IsRemove bool `json:"isRemove" check:"bool"` }
ArgsGetWarehouseList 获取列表参数
type FieldsWarehouse ¶
type FieldsWarehouse 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 ProductID int64 `db:"product_id" json:"productID" check:"id"` //库存数量 Count int64 `db:"count" json:"count" check:"int64Than0"` //当前总金额 Total int64 `db:"total" json:"total" check:"int64Than0"` //单价金额 // 平均价格 Price int64 `db:"price" json:"price" check:"int64Than0"` }
FieldsWarehouse 库存台帐
func GetWarehouseList ¶
func GetWarehouseList(args *ArgsGetWarehouseList) (dataList []FieldsWarehouse, dataCount int64, err error)
GetWarehouseList 获取列表
type FieldsWarehouseLog ¶
type FieldsWarehouseLog 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" check:"id"` //库存产品ID ProductID int64 `db:"product_id" json:"productID" check:"id"` //采购订单ID OrderID int64 `db:"order_id" json:"orderID" check:"id"` //库存数量 Count int64 `db:"count" json:"count" check:"int64Than0"` //当前总金额 Total int64 `db:"total" json:"total" check:"int64Than0"` //单价金额 Price int64 `db:"price" json:"price" check:"int64Than0"` //质保过期时间 // 根据入库时间+产品质保时间计算 WarrantyAt time.Time `db:"warranty_at" json:"warrantyAt"` }
FieldsWarehouseLog 库存批次
func GetWarehouseLog ¶
func GetWarehouseLog(args *ArgsGetWarehouseLog) (dataList []FieldsWarehouseLog, dataCount int64, err error)
GetWarehouseLog 获取库存批次列表
Click to show internal directories.
Click to hide internal directories.