| | |
| | | company.setStatus(Constants.ZERO); |
| | | company.setType(Constants.ZERO); |
| | | company.setSignStatus(Constants.ZERO); |
| | | company.setType(Constants.ZERO); |
| | | company.setSignIdStatus(Constants.ZERO); |
| | | companyMapper.insert(company); |
| | | company.setEditDate(company.getCreateDate()); |
| | |
| | | dealFileData(company); |
| | | //处理关联方案 |
| | | dealSolutionsData(company); |
| | | return company; |
| | | } |
| | | @Override |
| | | @Transactional |
| | | public Company createShop(Company company) { |
| | | isValidCreateParam(company); |
| | | if(companyMapper.selectCount(new QueryWrapper<Company>().lambda() |
| | | .eq(Company::getCode,company.getCode()) |
| | | .or().eq(Company::getPhone,company.getPhone()) |
| | | .or().eq(Company::getEmail,company.getEmail()) |
| | | .or().eq(Company::getUsername,company.getUsername()) |
| | | .or().eq(Company::getName,company.getName()))>0){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,该企业【名称】【统一信用代码】【邮箱】或者【手机号】已存在,请确认后重新提交!"); |
| | | } |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | company.setCreator(user.getId()); |
| | | company.setCreateDate(new Date()); |
| | | company.setType(Constants.ONE); |
| | | company.setIsdeleted(Constants.ZERO); |
| | | company.setStatus(Constants.ZERO); |
| | | company.setType(Constants.ZERO); |
| | | company.setSignStatus(Constants.ZERO); |
| | | company.setSignIdStatus(Constants.ZERO); |
| | | companyMapper.insert(company); |
| | | company.setEditDate(company.getCreateDate()); |
| | | company.setEditor(user.getId()); |
| | | //处理登陆账号信息 |
| | | dealSystemUserData(company); |
| | | //处理附件信息 |
| | | dealFileData(company); |
| | | return company; |
| | | } |
| | | @Override |
| | |
| | | if(company.getSignImg()!=null && StringUtils.isNotBlank(company.getSignImg().getFileurl())){ |
| | | multifileList.add(initMultiFileByCompay(company,company.getSignImg(),Constants.MultiFile.COM_SING_IMG.getKey())); |
| | | }else { |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"请上传电子签章!"); |
| | | // throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"请上传电子签章!"); |
| | | } |
| | | if(company.getIdcardImgList()!=null && company.getIdcardImgList()!=null&& company.getIdcardImgList().size()>0){ |
| | | for(Multifile f : company.getIdcardImgList()){ |