|
@@ -2,6 +2,7 @@ package com.iformall.service.impl; |
|
|
|
|
|
|
|
|
import com.iformall.common.ResultData; |
|
|
import com.iformall.common.ResultData; |
|
|
import com.iformall.domain.po.WxCUserAuthority; |
|
|
import com.iformall.domain.po.WxCUserAuthority; |
|
|
|
|
|
import com.iformall.enums.EnumClassType; |
|
|
import com.iformall.mapper.WxCUserAuthorityMapper; |
|
|
import com.iformall.mapper.WxCUserAuthorityMapper; |
|
|
import com.iformall.service.WxCUserAuthorityService; |
|
|
import com.iformall.service.WxCUserAuthorityService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
@@ -28,6 +29,7 @@ public class WxCUserAuthorityServiceImpl implements WxCUserAuthorityService { |
|
|
if (type==1){ |
|
|
if (type==1){ |
|
|
//查询声纹相关权限 |
|
|
//查询声纹相关权限 |
|
|
resultList = wxCUserAuthorityMapper.getAuthorVoice(id,1,resourceId); |
|
|
resultList = wxCUserAuthorityMapper.getAuthorVoice(id,1,resourceId); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (resourceId==null||resourceId==-1){ |
|
|
if (resourceId==null||resourceId==-1){ |
|
@@ -62,7 +64,10 @@ public class WxCUserAuthorityServiceImpl implements WxCUserAuthorityService { |
|
|
data.put("username",wxCUserAuthority.getUserName()); |
|
|
data.put("username",wxCUserAuthority.getUserName()); |
|
|
data.put("type",wxCUserAuthority.getType()); |
|
|
data.put("type",wxCUserAuthority.getType()); |
|
|
data.put("resource_id",wxCUserAuthority.getResourceId()); |
|
|
data.put("resource_id",wxCUserAuthority.getResourceId()); |
|
|
data.put("class",wxCUserAuthority.getClassType()); |
|
|
|
|
|
|
|
|
if (String.valueOf(wxCUserAuthority.getClassType())!=null){ |
|
|
|
|
|
data.put("class",wxCUserAuthority.getClassType()); |
|
|
|
|
|
} |
|
|
|
|
|
data.put("class", EnumClassType.SHARE.getCode()); |
|
|
data.put("current_time",new Date(System.currentTimeMillis())); |
|
|
data.put("current_time",new Date(System.currentTimeMillis())); |
|
|
data.put("expire_time",wxCUserAuthority.getExpireTime()); |
|
|
data.put("expire_time",wxCUserAuthority.getExpireTime()); |
|
|
|
|
|
|
|
|