修改模板
This commit is contained in:
@@ -80,9 +80,9 @@ public class DataImport
|
||||
" kshmc,\n" +
|
||||
" zhjywybm,\n" +
|
||||
" zhjywybmm,\n" +
|
||||
" chshdm,\n" +
|
||||
" khmc,\n" +
|
||||
" chph,\n" +
|
||||
//" chshdm,\n" +
|
||||
//" khmc,\n" +
|
||||
//" chph,\n" +
|
||||
" khjl,\n" +
|
||||
" khjllx,\n" +
|
||||
" jjbj,\n" +
|
||||
@@ -96,9 +96,9 @@ public class DataImport
|
||||
" ?,\n" +
|
||||
" ?,\n" +
|
||||
" ?,\n" +
|
||||
" ?,\n" +
|
||||
" ?,\n" +
|
||||
" ?,\n" +
|
||||
//" ?,\n" +
|
||||
//" ?,\n" +
|
||||
//" ?,\n" +
|
||||
" 0,\n" +
|
||||
" 0,\n" +
|
||||
" 1,\n" +
|
||||
@@ -117,15 +117,15 @@ public class DataImport
|
||||
|
||||
while ( row != null )
|
||||
{
|
||||
policyNo = row.getCell( 1 ).getStringCellValue().trim();
|
||||
operatorCode = getStringValueFromHSSFCell( row.getCell( 4 ) );
|
||||
policyNo = row.getCell( 0 ).getStringCellValue().trim();
|
||||
operatorCode = getStringValueFromHSSFCell( row.getCell( 1 ) );
|
||||
|
||||
//判断一下是不是空的单元格
|
||||
if ( policyNo.length() == 0 || operatorCode.length() == 0 )
|
||||
{
|
||||
importResult = importResult + "第" + rowCount + "行数据为空。<br>";
|
||||
|
||||
isSuccess = false;
|
||||
//isSuccess = false;
|
||||
}
|
||||
else //不是空单元格,进行处理
|
||||
{
|
||||
@@ -142,9 +142,9 @@ public class DataImport
|
||||
ifxStmt.setString( 5, staff.getSectionOfficeName() );
|
||||
ifxStmt.setString( 6, staff.getDepartmentCode() );
|
||||
ifxStmt.setString( 7, staff.getDepartmentName() );
|
||||
ifxStmt.setString( 8, getStringValueFromHSSFCell( row.getCell( 6 ) ) );
|
||||
ifxStmt.setString( 9, getStringValueFromHSSFCell( row.getCell( 3 ) ) );
|
||||
ifxStmt.setString( 10, getStringValueFromHSSFCell( row.getCell( 2 ) ) );
|
||||
//ifxStmt.setString( 8, getStringValueFromHSSFCell( row.getCell( 6 ) ) );
|
||||
//ifxStmt.setString( 9, getStringValueFromHSSFCell( row.getCell( 3 ) ) );
|
||||
//ifxStmt.setString( 10, getStringValueFromHSSFCell( row.getCell( 2 ) ) );
|
||||
|
||||
ifxStmt.execute();
|
||||
|
||||
|
Reference in New Issue
Block a user