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