修bug
This commit is contained in:
@@ -245,8 +245,9 @@ func (s *feedManagementServiceImpl) UpdateRawMaterialNutrients(ctx context.Conte
|
||||
nutrients := make([]models.RawMaterialNutrient, len(req.Nutrients))
|
||||
for i, item := range req.Nutrients {
|
||||
nutrients[i] = models.RawMaterialNutrient{
|
||||
NutrientID: item.NutrientID,
|
||||
Value: item.Value,
|
||||
RawMaterialID: id,
|
||||
NutrientID: item.NutrientID,
|
||||
Value: item.Value,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user