xuzhiheng 2 роки тому
батько
коміт
5f9a1aaf25
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      service/service.go

+ 1 - 1
service/service.go

@@ -37,7 +37,7 @@ func AddUsePerson(this *entmanageapplication.AddUsePersonReq) *entmanageapplicat
 				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})
+						ok = JyMysql.Update(EntnichePower, map[string]interface{}{"wait_empower_id": this.WaitEmpowerId, "ent_user_id": entUserId}, map[string]interface{}{"status": 1, "update_time": timeStr})
 					} else {
 						msg = "人员已经拥有权限,请先删除原有权限"
 						code = int64(-1)