Browse Source

默认数据不显示在列表中

pull/283/head
zhangxin 3 years ago
parent
commit
880d65bb1b
2 changed files with 6 additions and 4 deletions
  1. +4
    -2
      services/api/implments/Screw.service.impl.go
  2. +2
    -2
      web/controllers/api/Screw.res.go

+ 4
- 2
services/api/implments/Screw.service.impl.go View File

@ -167,10 +167,12 @@ func (impl *ScrewServiceImplement) GetScrewLi(user *models.Usertab, stn string)
}
screwMap[screwData.SCREW_POS] = screwData
}
result = append(result, screwData)
if screwData.SCREW_POS != -1 {
result = append(result, screwData)
}
}
if picPath != "" {
model.ScrewGlobalMap.Map[stn] = screwMap
}
return result, nil
}
}

+ 2
- 2
web/controllers/api/Screw.res.go View File

@ -76,7 +76,7 @@ func RegisterGetNewestScrew(party router.Party, path string, method func(usertab
supports.Error(ctx, iris.StatusBadRequest, supports.ParseParamsFailur, nil)
return
}
stn := ctx.URLParam("STN")
stn := ctx.URLParam("stn")
if stn == "" {
supports.Error(ctx, iris.StatusBadRequest, supports.ParseParamsFailur, nil)
return
@ -116,7 +116,7 @@ func RegisterGetScrewLi(party router.Party, path string, method func(user *model
supports.Error(ctx, iris.StatusBadRequest, supports.ParseParamsFailur, nil)
return
}
stn := ctx.URLParam("STN")
stn := ctx.URLParam("stn")
if stn == "" {
supports.Error(ctx, iris.StatusBadRequest, supports.ParseParamsFailur, nil)
return


Loading…
Cancel
Save