liujiandao
2023-09-20 cfb6fbce3687230ccb4704dbc0c87fd411b39af1
controllers/location.go
@@ -26,7 +26,7 @@
   if params.Keyword != "" {
      search.SetKeyword(params.Keyword)
   }
   if params.ParentId != 0 {
   if params.ParentId != "" {
      search.SetParentId(params.ParentId)
   }
   if params.CompanyId != 0 {
@@ -43,7 +43,7 @@
   if params.Type == 0 {
      return errors.New("请选择正确的位置类型")
   }
   if params.ParentId < 0 {
   if params.ParentId == "" {
      return errors.New("错误参数ParentId")
   }
   if params.CompanyId < 0 {