|
@@ -68,7 +68,9 @@ func AddUsePerson(this *entmanageapplication.AddUsePersonReq) *entmanageapplicat
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ log.Println("------------1")
|
|
|
if JyMysql.CountBySql(`select count(1) as count from `+EntnichePower+` where wait_empower_id=? and ent_id=? and ent_user_id=? and status=?`, this.WaitEmpowerId, this.EntId, entUserId, 1) == 0 {
|
|
|
+ log.Println("------------2")
|
|
|
id = JyMysql.Insert(EntnichePower, map[string]interface{}{
|
|
|
"wait_empower_id": this.WaitEmpowerId,
|
|
|
"ent_id": this.EntId,
|
|
@@ -77,7 +79,9 @@ func AddUsePerson(this *entmanageapplication.AddUsePersonReq) *entmanageapplicat
|
|
|
"create_time": timeStr,
|
|
|
"update_time": timeStr,
|
|
|
})
|
|
|
+ log.Println("------------3")
|
|
|
JyMysql.UpdateOrDeleteBySql(`update `+EntnicheWaitEmpower+` set use_count = use_count + 1 where id = ?`, this.WaitEmpowerId)
|
|
|
+ log.Println("------------4")
|
|
|
addPower(this.WaitEmpowerId, entUserId, this.EntId)
|
|
|
}
|
|
|
}
|
|
@@ -594,6 +598,7 @@ func delRedisByPowerCheck(positionId string) bool {
|
|
|
//
|
|
|
func ResourcePowerHandle(identity *usercenter.Identity, waitEmpowerId, t int64) {
|
|
|
//如果是运营商数据定制及分析产品,调用资源中台,取消对应菜单权限
|
|
|
+ log.Println("------------5")
|
|
|
if JyMysql.CountBySql(`select count(1) as count from `+EntnicheWaitEmpower+` where id=? and product_type=?`, waitEmpowerId, YYSSJDZYFX) > 0 {
|
|
|
log.Println("-------", identity.EntId, waitEmpowerId, t)
|
|
|
if t == 1 {
|