xuzhiheng 2 жил өмнө
parent
commit
0a6c17b3db
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      service/service.go

+ 5 - 0
service/service.go

@@ -32,6 +32,11 @@ func AddUsePerson(this *entmanageapplication.AddUsePersonReq) *entmanageapplicat
 			code = int64(-1)
 		} else {
 			for _, v := range UserArr {
+				//过滤空值2023-01-04
+				if v == "" {
+					continue
+				}
+				//
 				entUserId, _ := strconv.Atoi(v)
 				data := JyMysql.FindOne(EntnichePower, map[string]interface{}{"ent_user_id": entUserId}, "", "")
 				if data != nil && len(*data) > 0 {