|
@@ -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)
|