xuzhiheng 2 жил өмнө
parent
commit
76fb5a047c
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": entUserId}, map[string]interface{}{"status": 1, "update_time": timeStr})
+						ok = JyMysql.Update(EntnichePower, map[string]interface{}{"ent_user_id": entUserId}, map[string]interface{}{"wait_empower_id": this.WaitEmpowerId, "status": 1, "update_time": timeStr})
 					} else {
 						msg = "人员已经拥有权限,请先删除原有权限"
 						code = int64(-1)