Browse Source

feat:删除限制

wangchuanjin 1 year ago
parent
commit
9b9108ea42
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/service.go

+ 1 - 1
service/service.go

@@ -62,7 +62,7 @@ func AddUsePerson(this *entmanageapplication.AddUsePersonReq) *entmanageapplicat
 						resdata := JyMysql.FindOne(EntnicheWaitEmpower, map[string]interface{}{"id": wait_empower_id}, "", "")
 						end_time := common.ObjToString((*resdata)["end_time"])
 						res, _ := time.ParseInLocation("2006-01-02 15:04:05", end_time, time.Local)
-						if res.Unix() > time.Now().Unix() {
+						if res.Unix() > time.Now().Unix() && common.ObjToString((*resdata)["product_type"]) != "运营商数据定制及分析" {
 							msg = "人员已经拥有权限,请先删除原有权限"
 							code = int64(-1)
 							break