فهرست منبع

feat:运营商数据定制与分析

wangchuanjin 1 سال پیش
والد
کامیت
b7e825c6d4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      service/service.go

+ 1 - 1
service/service.go

@@ -66,7 +66,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"]) != YYSSJDZYFX {
 							msg = "人员已经拥有权限,请先删除原有权限"
 							code = int64(-1)
 							break