huangxingxing пре 1 година
родитељ
комит
757acb71f5
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      src/main/java/com/miniframe/bisiness/system/D10016Service.java

+ 4 - 1
src/main/java/com/miniframe/bisiness/system/D10016Service.java

@@ -53,7 +53,6 @@ public class D10016Service extends D10016BaseModel implements ExecProcessFlow {
 		String line;
 		int linNum =1;
 		List<D_D10016_COCODES_RECODE> coodeList= new ArrayList<>();
-
 		List<D_D10016_CHVALS_RECODE> chvalsList= new ArrayList<>();
 		while ((line = reader.readLine()) != null) {
 			if(linNum==1){
@@ -72,8 +71,12 @@ public class D10016Service extends D10016BaseModel implements ExecProcessFlow {
 				chval.setV4(t.length>4?t[4]:"0");
 				chval.setV5(t.length>5?t[5]:"0");
 				chval.setV6(t.length>6?t[6]:"0");
+				chvalsList.add(chval);
 			}
+			linNum++;
 		}
+		fileReader.close();
+		reader.close();
 		this.getD_d10016().setChvals(chvalsList);
 		this.getD_d10016().setCocodes(coodeList);