|  |  |  | 
|---|
|  |  |  | company.setSignId(""); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(company.getIdcardImgList()!=null && company.getIdcardImgList()!=null){ | 
|---|
|  |  |  | boolean isNew = false; | 
|---|
|  |  |  | for(Multifile f : company.getIdcardImgList()){ | 
|---|
|  |  |  | if(f.getId() !=null){ | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | isNew = true; | 
|---|
|  |  |  | multifileList.add(initMultiFileByCompay(company,f,Constants.MultiFile.COM_IDCARD_IMG.getKey())); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | objList.add(Constants.MultiFile.COM_IDCARD_IMG.getKey()); | 
|---|
|  |  |  | if(isNew) | 
|---|
|  |  |  | objList.add(Constants.MultiFile.COM_IDCARD_IMG.getKey()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(objList.size()>0){ | 
|---|
|  |  |  | multifileMapper.update(null,new UpdateWrapper<Multifile>().lambda() | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | private void isValidUpdateParam(Company company) { | 
|---|
|  |  |  | if( StringUtils.isBlank(company.getName()) | 
|---|
|  |  |  | ||StringUtils.isBlank(company.getUsername()) | 
|---|
|  |  |  | //                ||StringUtils.isBlank(company.getUsername()) | 
|---|
|  |  |  | ||StringUtils.isBlank(company.getCode()) | 
|---|
|  |  |  | ||StringUtils.isBlank(company.getCaptche()) | 
|---|
|  |  |  | ||StringUtils.isBlank(company.getLegalName()) | 
|---|
|  |  |  | ||StringUtils.isBlank(company.getEmail()) ){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
|---|
|  |  |  | 
|---|
|  |  |  | dealFileDataForUpdate(company); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Company update = new Company(); | 
|---|
|  |  |  | update.setIsdeleted(company.getId()); | 
|---|
|  |  |  | update.setName(company.getName()); | 
|---|
|  |  |  | update.setCode(company.getCode()); | 
|---|
|  |  |  | update.setEditDate(new Date()); | 
|---|
|  |  |  | 
|---|
|  |  |  | update.setTaxCode(company.getTaxCode()); | 
|---|
|  |  |  | update.setTaxBank(company.getTaxBank()); | 
|---|
|  |  |  | update.setEmail(company.getEmail()); | 
|---|
|  |  |  | update.setId(model.getId()); | 
|---|
|  |  |  | update.setLegalName(company.getLegalName()); | 
|---|
|  |  |  | update.setInvoiceAddr(company.getInvoiceAddr()); | 
|---|
|  |  |  | update.setSignIdStatus(company.getSignIdStatus()); | 
|---|
|  |  |  | update.setInvoiceEmail(company.getInvoiceEmail()); | 
|---|
|  |  |  | 
|---|
|  |  |  | //如果邮箱发生改变 | 
|---|
|  |  |  | update.setSignStatus(Constants.ZERO); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | companyMapper.updateById(company); | 
|---|
|  |  |  | companyMapper.updateById(update); | 
|---|
|  |  |  | company.setCreator(update.getEditor()); | 
|---|
|  |  |  | company.setCreateDate(update.getEditDate()); | 
|---|
|  |  |  | if(StringUtils.isNotBlank(company.getUsername())){ | 
|---|
|  |  |  | 
|---|
|  |  |  | *   public boolean organizationCreate (String fullname,String creditCode,String legalName,String email,File  businessimg,String notifyUrl){ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | @Async | 
|---|
|  |  |  | public   void startSignAuth(Integer id){ | 
|---|
|  |  |  | Company company = companyMapper.selectById(id); | 
|---|
|  |  |  | Multifile f = multifileMapper.selectOne(new QueryWrapper<Multifile>().lambda() | 
|---|