Browse Source

修改bug

pull/290/head
DESKTOP-4672LME\Xu Tengfei 3 years ago
parent
commit
4a6d326454
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      services/ap/implments/ArticleStockLevel.service.impl.go

+ 2
- 2
services/ap/implments/ArticleStockLevel.service.impl.go View File

@ -299,12 +299,12 @@ func (impl *ArticleStockLevelServiceImplement) SelectAndPaging(user *global.User
dao_Resource := dal.NewArticleResourceDAO(session, user.PlantNr, user.UserId)
articleStockLevelSlice := result.Records.([]model.ArticleStockLevel)
for _, info := range articleStockLevelSlice{
for index, info := range articleStockLevelSlice{
resource, err := dao_Resource.SelectOne(info.ArtId)
if err != nil || resource == nil {
continue
}
info.MainResourceId = resource.ResourceId
articleStockLevelSlice[index].MainResourceId = resource.ResourceId
}
result.Records = articleStockLevelSlice
return result, nil


Loading…
Cancel
Save