feat:完善项目

This commit is contained in:
henry
2021-11-19 09:24:15 +08:00
parent ba423a2d19
commit 5ff6164295
12 changed files with 149 additions and 65 deletions

View File

@ -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,
})
}