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