/*** 匯入異常金額資料的service的實現類
* @return result 0 儲存成功 1時間問題, 2異常型別問題 3異常原因問題 4異常金額問題 5責任人問題
*/@override
public mapuploadexceptionmoneydata(
inputstream inputstream, string ext, userinfo logininfo,string billinfoid) else if(".xlsx".equals(ext))
//解析excel檔案
//得到需要匯入的sheet
sheet sheet = wb.getsheetat(0);
financebillinfoexceptiondetaile fbed = null;
for (int i = 1; i <= sheet.getlastrownum(); i++) else
}catch(exception e)
}else
if(row.getcell(1) != null)else
if(row.getcell(2) != null)else
if(row.getcell(3) != null)else catch (exception e)
}}else
if(row.getcell(4) != null)else
list.add(fbed);}}
} catch (exception e)
map.put("result", 0);
map.put("list", list);
return map;
}
Java POI Excel 行高自適應
在excel處理的過程中,可能有需要用到行高自適應的時候。下面貼出用poi實現excel行高自適應的 該 可以處理一行excel按內容自適應高度。可以處理合併單元格。上 根據行內容重新計算行高 param row public static void calcandsetrowheigt hssfr...
用impdp導dmp檔案
1.建立directory create or replace directory export directory as usr local oracle oracle product 11.2.0 dbhome1 rdbms log directory是乙個路徑,用來存放dmp檔案以及生成的lo...
計導作業 檔案 過濾注釋
1.將乙個.c檔案1複製到另乙個檔案2中,要求過濾掉檔案1中的注釋。注釋型別 以 開頭或者 中的注釋。用乙個函式完成該功能。基本要求 假設 或者 不會出現在printf語句中。高階要求 要能處理printf中的 或者 練習目的 練習檔案的基本操作 klkl kk l l l klklk k k l ...