| | |
| | | com.setLinkPhone(user.getLinkPhone()); |
| | | com.setAddr(user.getAddr()); |
| | | com.setFileStoreAddr(user.getFileStoreAddr()); |
| | | com.setOpenUserNum(-1); |
| | | com.setOpenUserNum(Constants.formatIntegerNum(user.getOpenUserNum())); |
| | | com.setShortName(user.getRemark()); |
| | | com.setOpenModules(Constants.ONE+""); |
| | | com.setOepnType(user.getOepnType()); |
| | |
| | | // 插入 企业账户开通历史记录表 |
| | | CompanyOpen companyOpen = new CompanyOpen(); |
| | | companyOpen.setDeleted(Constants.ZERO); |
| | | // companyOpen.setCreateUser(); |
| | | companyOpen.setCreateTime(new Date()); |
| | | // companyOpen.setUpdateUser(); |
| | | companyOpen.setUpdateTime(new Date()); |
| | | companyOpen.setCompanyId(com.getId()); |
| | | // companyOpen.setUserNum(); |
| | | // companyOpen.setModules(); |
| | | companyOpen.setValidDate(user.getOepnValidDate()); |
| | | companyOpen.setOepnType(user.getOepnType()); |
| | | // companyOpen.setCreateUser(); |
| | | // companyOpen.setUpdateUser(); |
| | | // companyOpen.setUserNum(); |
| | | // companyOpen.setModules(); |
| | | companyOpenExtMapper.insert(companyOpen); |
| | | |
| | | //创建根目录 |
| | |
| | | } |
| | | } |
| | | initRedisCache(com); |
| | | |
| | | systemUserBiz.importPlat(user,pwd,com); |
| | | return com.getId(); |
| | | } |
| | |
| | | com.setOepnValidDate(user.getOepnValidDate()); |
| | | com.setLinker(user.getLinkName()); |
| | | com.setLinkPhone(user.getLinkPhone()); |
| | | com.setOpenUserNum(user.getOpenUserNum()); |
| | | com.setAddr(user.getAddr()); |
| | | com.setFileStoreAddr(user.getFileStoreAddr()); |
| | | com.setShortName(user.getRemark()); |
| | |
| | | com = new Company(); |
| | | com.setDeleted(Constants.ZERO); |
| | | com.setCreateTime(new Date()); |
| | | com.setIsNew(Constants.ONE); |
| | | // com.setOrigin(Constants.THREE); |
| | | com.setCreditCode(user.getCreditCode()); |
| | | com.setName(user.getOrgName()); |
| | | com.setLingyangInfo(user.getUserinfo()); |
| | | com.setLegalPersonPhone(user.getPhone()); |
| | | com.setOpenUserNum(-1); |
| | | //默认限制人员10 |
| | | if(user.getOrigin() == Constants.COMPANY_ORIGIN.lingyang){ |
| | | int userNum = 10; |
| | | try { |
| | | userNum =Integer.parseInt(systemDictDataBiz.queryByCode(Constants.LINGYANG_PARAM, Constants.LINGYANG_USERNUM_LIMIT).getCode()); |
| | | }catch (Exception e){ |
| | | } |
| | | com.setOpenUserNum(userNum); |
| | | }else{ |
| | | com.setOpenUserNum(-1); |
| | | } |
| | | com.setOpenModules(Constants.ONE+""); |
| | | com.setOepnValidDate(DateUtil.StringToDate("2099-12-31 09:25:09")); |
| | | com.setOepnType(Constants.ONE); |
| | | com.setStatus(Constants.ONE); |
| | | com.setChannelId(Constants.TWO); |
| | | com.setOrigin(user.getOrigin()); |
| | | // com.setDingdingId(user.getco); |
| | | //插入企业信息 |
| | | companyExtMapper.insert(com); |
| | | |
| | |
| | | return companyInfoListVO; |
| | | } |
| | | String rPath =systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode()+systemDictDataBiz.queryByCode(Constants.OSS,Constants.MENU_IMG).getCode(); |
| | | companyInfoListVO.setFileurlfull(rPath+"/"+companyInfoListVO.getFileStoreAddr()); |
| | | companyInfoListVO.setFileurlfull(rPath+companyInfoListVO.getFileStoreAddr()); |
| | | |
| | | companyInfoListVO.setSystemUrl( systemDictDataBiz.queryByCode(Constants.EDGP_PARAM,Constants.SYSTEM_URL).getCode()+companyInfoListVO.getId()); |
| | | |