jiangshuai
2023-10-18 f81a89a88ed18ae924191e1f00e51c0e7b9f4598
controllers/location.go
@@ -33,7 +33,7 @@
   }
   if params.ParentId != 0 {
      //查询上级名称
      first, err := models.NewLocationSearch().SetParentId(params.ParentId).First()
      first, err := models.NewLocationSearch().SetID(params.ParentId).First()
      if err != nil {
         util.ResponseFormat(c, code.RequestParamError, "查询上级名称失败")
         return