@ -263,37 +263,39 @@ public class StatisticsEnterpriseServiceImpl implements StatisticsEnterpriseServ
s1row . createCell ( 2 ) . setCellValue ( s . getNumInt ( ) ) ;
s1row . createCell ( 3 ) . setCellValue ( s . getValue ( ) ) ;
qyRowNum + + ;
//街道页
HSSFSheet sheet = workbook . createSheet ( s . getName ( ) ) ;
sheet . setDefaultColumnWidth ( 20 ) ; //全局
//设置表头
String [ ] hList = { "区域" , "街道" , "企业数量" , "续存企业数量" , "注销企业数量" } ;
int jdRowNum = 0 ;
HSSFRow hRow = sheet . createRow ( jdRowNum ) ;
jdRowNum + + ;
for ( int i = 0 ; i < hList . length ; i + + ) {
HSSFCell hCell = hRow . createCell ( i ) ;
HSSFRichTextString text = new HSSFRichTextString ( hList [ i ] ) ;
hCell . setCellValue ( text ) ;
hCell . setCellStyle ( styleRow2 ) ;
}
List < StatisticsIndicator > jdList = new ArrayList < > ( ) ;
if ( searchType . getJd ( ) ! = null & & ! "" . equals ( searchType . getJd ( ) ) ) {
jdList = jdListByJD ( searchType ) ;
} else {
SearchType searchType1 = new SearchType ( ) ;
searchType1 . setName ( s . getName ( ) ) ;
jdList = iEnterpriseInformationService . enterpriseInformationAllListToJD ( searchType1 ) ;
}
if ( jdList . size ( ) > 0 ) {
for ( StatisticsIndicator sjd : jdList ) {
HSSFRow row = sheet . createRow ( jdRowNum ) ;
row . createCell ( 0 ) . setCellValue ( sjd . getAddress ( ) ) ;
row . createCell ( 1 ) . setCellValue ( sjd . getName ( ) ) ;
row . createCell ( 2 ) . setCellValue ( sjd . getTotalNumber ( ) ) ;
row . createCell ( 3 ) . setCellValue ( sjd . getNumInt ( ) ) ;
row . createCell ( 4 ) . setCellValue ( sjd . getValue ( ) ) ;
jdRowNum + + ;
if ( ! s . getName ( ) . equals ( "其他" ) ) {
//街道页
HSSFSheet sheet = workbook . createSheet ( s . getName ( ) ) ;
sheet . setDefaultColumnWidth ( 20 ) ; //全局
//设置表头
String [ ] hList = { "区域" , "街道" , "企业数量" , "续存企业数量" , "注销企业数量" } ;
int jdRowNum = 0 ;
HSSFRow hRow = sheet . createRow ( jdRowNum ) ;
jdRowNum + + ;
for ( int i = 0 ; i < hList . length ; i + + ) {
HSSFCell hCell = hRow . createCell ( i ) ;
HSSFRichTextString text = new HSSFRichTextString ( hList [ i ] ) ;
hCell . setCellValue ( text ) ;
hCell . setCellStyle ( styleRow2 ) ;
}
List < StatisticsIndicator > jdList = new ArrayList < > ( ) ;
if ( searchType . getJd ( ) ! = null & & ! "" . equals ( searchType . getJd ( ) ) ) {
jdList = jdListByJD ( searchType ) ;
} else {
SearchType searchType1 = new SearchType ( ) ;
searchType1 . setName ( s . getName ( ) ) ;
jdList = iEnterpriseInformationService . enterpriseInformationAllListToJD ( searchType1 ) ;
}
if ( jdList . size ( ) > 0 ) {
for ( StatisticsIndicator sjd : jdList ) {
HSSFRow row = sheet . createRow ( jdRowNum ) ;
row . createCell ( 0 ) . setCellValue ( sjd . getAddress ( ) ) ;
row . createCell ( 1 ) . setCellValue ( sjd . getName ( ) ) ;
row . createCell ( 2 ) . setCellValue ( sjd . getTotalNumber ( ) ) ;
row . createCell ( 3 ) . setCellValue ( sjd . getNumInt ( ) ) ;
row . createCell ( 4 ) . setCellValue ( sjd . getValue ( ) ) ;
jdRowNum + + ;
}
}
}
}