fix: 修复代码错误
This commit is contained in:
@@ -11,6 +11,7 @@ import com.adc.da.sys.service.IDicTypeEOService;
|
||||
import com.adc.da.util.exception.AdcDaBaseException;
|
||||
import com.adc.da.util.http.ResponseMessage;
|
||||
import com.adc.da.util.http.Result;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
@@ -52,9 +53,10 @@ public class exportWkExcel {
|
||||
ExportParams exportParams = new ExportParams();
|
||||
exportParams.setType(ExcelType.HSSF);
|
||||
exportParams.setSheetName(exportName);
|
||||
List<String> types=new ArrayList<>();
|
||||
types.add("BUSSSTANDCLASS");
|
||||
Map<String, Object> dicTypeEO = dicTypeEOService.getDicTypeListCodeByType(types);
|
||||
// List<String> types=new ArrayList<>();
|
||||
// types.add("BUSSSTANDCLASS");
|
||||
// Map<String, Object> dicTypeEO = dicTypeEOService.getDicTypeListCodeByType(types);
|
||||
Map<String, Object> dicTypeEO = getBussStandTypeData();
|
||||
workbook = ExcelExportUtilByWk.getHSSFWorkbook(exportParams, exportExcel.class,workbook,"1",dicTypeEO);
|
||||
os = response.getOutputStream();
|
||||
workbook.write(os);
|
||||
@@ -66,6 +68,24 @@ public class exportWkExcel {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 静态加载企标类别下拉框
|
||||
* @return
|
||||
*/
|
||||
private static Map<String,Object> getBussStandTypeData(){
|
||||
Map<String,Object> resultMap = new HashMap<>();
|
||||
List<Map<String,String>> bussStandTypeList = new ArrayList<>();
|
||||
char letter = 'A';
|
||||
for(letter = 'A'; letter <= 'Z'; ++letter){
|
||||
Map<String,String> typeMap = new HashMap<>();
|
||||
typeMap.put("Q/FT "+letter,"Q/FT "+letter);
|
||||
bussStandTypeList.add(typeMap);
|
||||
}
|
||||
resultMap.put("BUSSSTANDCLASS",bussStandTypeList);
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|导入")
|
||||
@PostMapping(value = "/importData")
|
||||
public ResponseMessage<?> importSplitItemsZip(@RequestParam(value = "importFileId", required = false) String importFileId) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user