| | |
| | | } |
| | | |
| | | result = ContextUtil.getTimeId() + ".xls"; |
| | | String tempPath = fileService.getTempFilePath(depot == null ? ContextUtil.getCompanyId() : depot.getCompanyId()); |
| | | String tempPath = fileService.getFileSavePath("TEMP"); |
| | | FileOutputStream fos = new FileOutputStream(tempPath + "/" + result); |
| | | toWorkbook.write(fos); |
| | | if (null != fos) fos.close(); |
| | |
| | | private HSSFWorkbook getFromWorkBook(GrainData data, Depot depot) throws Exception { |
| | | FileInputStream fis = null; |
| | | |
| | | String filePath = fileService.getConfPath(); |
| | | String filePath = fileService.getFileSavePath("CONF"); |
| | | try { |
| | | //获取模版的名称,注意筒仓名称配置规则 |
| | | if (StringUtils.isEmpty(data.getCableCir())) { |