| | |
| | | @Override |
| | | @Transactional |
| | | public String syncCompany(OrgListRequest param){ |
| | | if(!StringUtils.equals(Constants.ONE+"", systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.ORG_USER_ORIGIN).getCode())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "对不起,当前不支持组织同步操作~"); |
| | | } |
| | | //获取ERP组织信息(全量同步) |
| | | List<ErpOrgListResponse> list = ErpTool.getErpOrgList(ErpConstants.orgListUrl,param); |
| | | if(list !=null && list.size()>0){ |
| | |
| | | @Override |
| | | @Transactional |
| | | public String syncUsers(UserListRequest param){ |
| | | if(!StringUtils.equals(Constants.ONE+"", systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.ORG_USER_ORIGIN).getCode())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "对不起,当前不支持人员同步操作~"); |
| | | } |
| | | List<ErpUserListResponse> list = ErpTool.getErpUserList(ErpConstants.userListUrl,param); |
| | | if(list !=null && list.size()>0) { |
| | | List<Member> addList = new ArrayList<>(); |