BUG修复

This commit is contained in:
dxfeng 2022-08-17 13:34:29 +08:00
parent 9f1e83a5f5
commit e3207f2996
2 changed files with 3 additions and 3 deletions

View File

@ -70,8 +70,8 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ
* extend_group
*/
private static final Long COMPANY_TYPE = 1L;
private static final Long DEPARTMENT_TYPE = 1L;
private static final Long JOB_TYPE = 1L;
private static final Long DEPARTMENT_TYPE = 2L;
private static final Long JOB_TYPE = 3L;
private ExtendInfoMapper getExtendInfoMapper() {

View File

@ -20,7 +20,7 @@ public class HasRightUtil {
* @return
*/
public static boolean hasRight(User user, String rightName, boolean isReturnFalse) {
boolean hasRight = HrmUserVarify.checkUserRight("Scheme:All", user);
boolean hasRight = HrmUserVarify.checkUserRight(rightName, user);
if (!isReturnFalse) {
OrganizationAssert.isTrue(hasRight, "暂无权限访问");
}