jiangshuai
2023-09-28 84efc2b9cc81fadfffe35c6e3a07dd735ef46a98
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