feat:完善项目
This commit is contained in:
@ -16,7 +16,8 @@ type (
|
||||
MaterialSupplerBasic struct {
|
||||
basic.CommonIDString
|
||||
*model.ManageMaterialSupplierBasic
|
||||
Stock float64 `json:"stock"`
|
||||
SupplierID string `json:"supplier_id"`
|
||||
Stock float64 `json:"stock"`
|
||||
}
|
||||
)
|
||||
|
||||
@ -45,6 +46,7 @@ func (c *MaterialSuppler) Select(materialID uint64) ([]*MaterialSupplerBasic, er
|
||||
list = append(list, &MaterialSupplerBasic{
|
||||
CommonIDString: basic.CommonIDString{ID: mManageMaterSupplier.GetEncodeID()},
|
||||
ManageMaterialSupplierBasic: v,
|
||||
SupplierID: (&model2.Model{ID: v.SupplierID}).GetEncodeID(),
|
||||
Stock: stock,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user