|
|
@ -57,6 +57,7 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.web.multipart.commons.CommonsMultipartFile; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.servlet.ServletOutputStream; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
import java.io.IOException; |
|
|
@ -608,6 +609,9 @@ public class IcEnterpriseServiceImpl extends BaseServiceImpl<IcEnterpriseDao, Ic |
|
|
|
List<EnterpriseDetailDTO> list = list(formDTO).getList(); |
|
|
|
if (CollectionUtils.isEmpty(list)){ |
|
|
|
log.error("根据条件未查询到企事业单位信息,登记码压缩包不能导出!"); |
|
|
|
ServletOutputStream outputStream = response.getOutputStream(); |
|
|
|
outputStream.write("{\"code\":9999,\"msg\":\"未查到企事业单位信息\",\"data\":{}}".getBytes()); |
|
|
|
outputStream.flush(); |
|
|
|
return; |
|
|
|
} |
|
|
|
response.reset(); |
|
|
|