1、修改人员证照无权限接口租户校验
parent
b07856714c
commit
c6887cb14b
|
|
@ -60,12 +60,14 @@ public class UserCertificateQueryExe {
|
|||
* @return
|
||||
*/
|
||||
public PageResponse<UserCertificateCO> execute(UserCertificatePageQry qry, boolean withPermission) {
|
||||
if (withPermission) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
if (qry.getIsAppQuery() != null) {
|
||||
qry.setEqUserId(ssoUser != null ? ssoUser.getUserId() : null);
|
||||
} else if (qry.getEqCorpinfoId() == null) {
|
||||
qry.setEqCorpinfoId(ssoUser != null ? ssoUser.getTenantId() : null);
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue