| | |
| | | import java.lang.reflect.Array; |
| | | import java.net.URI; |
| | | import java.net.URLEncoder; |
| | | import java.nio.charset.Charset; |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | if(fileList == null || fileList.size() == 0){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | String fileName = model.getName() +"_企业证件_"+System.currentTimeMillis()+".zip" ; |
| | | String encodeFileName = URLEncoder.encode(fileName); |
| | | |
| | | String fileName = model.getName() +"-企业证件-"+System.currentTimeMillis() ; |
| | | String encodeFileName =URLEncoder.encode(fileName, Charset.forName("UTF-8").toString())+".zip"; |
| | | response.setHeader("Content-Disposition","attachment;filename=" + encodeFileName); |
| | | response.setContentType("application/octet-stream"); |
| | | response.setHeader("eva-opera-type", "download"); |
| | |
| | | |
| | | if(companyMapper.selectCount(new QueryWrapper<Company>().lambda() |
| | | .ne(Company::getId,company.getId()) |
| | | .eq(Company::getIsdeleted,Constants.ZERO) |
| | | .and(w->w.eq(Company::getCode,company.getCode()) |
| | | .or().eq(Company::getEmail,company.getEmail()) |
| | | .or().eq(Company::getUsername,company.getUsername()) |
| | | // .or().eq(Company::getUsername,company.getUsername()) |
| | | .or().eq(Company::getName,company.getName())) |
| | | )>0){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,该企业【名称】【统一信用代码】【邮箱】或者【企业账号】已存在,请确认后重新提交!"); |