

@RequestMapping(value = "/nullExcelExport", method = RequestMethod.POST)
public void nullExcelExport(@RequestBody JSONObject data, HttpServletResponse response) throws IOException, BusinessException {
JSONObject jsonObject = data.getJSONObject("threeDto");
String ooCode = jsonObject.getString("ooCode");
JSONArray jsonArray = jsonObject.getJSONArray("execlMoldMcodeArr");
for (int i = 0 ; i < jsonArray.size() ; i++) {
System.out.println("##############################################################");
JSONObject object = jsonArray.getJSONObject(i);
String moldString = object.getString("execlMoldMcode");
System.out.println( moldString );
JSONArray jsonArrayOne = object.getJSONArray("execlPartMcodeArr");
if (jsonArrayOne.size()>0){
for (int j = 0; j < jsonArrayOne.size(); j++) {
String s=jsonArrayOne.getString(i);
System.out.print(s+" ");
}
System.out.println();
}
}
exportBomService.excelExport(ooCode, response); //调用Excel导出方法;
}

