xuzhiheng 2 سال پیش
والد
کامیت
90947c6b01
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      service/service.go

+ 2 - 2
service/service.go

@@ -33,13 +33,13 @@ func AddUsePerson(this *entmanageapplication.AddUsePersonReq) *entmanageapplicat
 		} else {
 			for _, v := range UserArr {
 				entUserId, _ := strconv.Atoi(v)
-				data := JyMysql.FindOne(EntnichePower, map[string]interface{}{"wait_empower_id": this.WaitEmpowerId, "ent_user_id": entUserId}, "", "")
+				data := JyMysql.FindOne(EntnichePower, map[string]interface{}{"ent_user_id": entUserId}, "", "")
 				if data != nil && len(*data) > 0 {
 					dataStatus := common.IntAll((*data)["status"])
 					if dataStatus == -1 {
 						ok = JyMysql.Update(EntnichePower, map[string]interface{}{"wait_empower_id": this.WaitEmpowerId, "ent_user_id": this.EntUserId}, map[string]interface{}{"status": 1, "update_time": timeStr})
 					} else {
-						msg = "请勿重复添加"
+						msg = "人员已经拥有权限,请先删除原有权限"
 						code = int64(-1)
 						break
 					}