| | |
| | | @Autowired |
| | | private InterfaceLogService interfaceLogService; |
| | | |
| | | @Autowired |
| | | private ErpTool erpTool; |
| | | |
| | | |
| | | @Override |
| | | @PostConstruct |
| | |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "对不起,当前不支持组织同步操作~"); |
| | | } |
| | | //获取ERP组织信息(全量同步) |
| | | List<ErpOrgListResponse> list = ErpTool.getErpOrgList(ErpConstants.orgListUrl,param); |
| | | List<ErpOrgListResponse> list = erpTool.getErpOrgList(ErpConstants.orgListUrl,param); |
| | | if(list !=null && list.size()>0){ |
| | | List<Company> addList = new ArrayList<>(); |
| | | List<Company> updateList = new ArrayList<>(); |
| | |
| | | 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); |
| | | List<ErpUserListResponse> list = erpTool.getErpUserList(ErpConstants.userListUrl,param); |
| | | if(list !=null && list.size()>0) { |
| | | List<Member> addList = new ArrayList<>(); |
| | | List<Member> updateList = new ArrayList<>(); |
| | |
| | | */ |
| | | @Override |
| | | public boolean noticeUserFail(UserFailRequest param){ |
| | | ERPApiResponse r = ErpTool.noticeUserStatus(ErpConstants.userStatusUrl,param); |
| | | ERPApiResponse r = erpTool.noticeUserStatus(ErpConstants.userStatusUrl,param); |
| | | if(r!=null && r.isSuccess()){ |
| | | return true; |
| | | } |