修改模板
This commit is contained in:
parent
f4c9649b02
commit
36c0025da4
@ -80,9 +80,9 @@ public class DataImport
|
|||||||
" kshmc,\n" +
|
" kshmc,\n" +
|
||||||
" zhjywybm,\n" +
|
" zhjywybm,\n" +
|
||||||
" zhjywybmm,\n" +
|
" zhjywybmm,\n" +
|
||||||
" chshdm,\n" +
|
//" chshdm,\n" +
|
||||||
" khmc,\n" +
|
//" khmc,\n" +
|
||||||
" chph,\n" +
|
//" chph,\n" +
|
||||||
" khjl,\n" +
|
" khjl,\n" +
|
||||||
" khjllx,\n" +
|
" khjllx,\n" +
|
||||||
" jjbj,\n" +
|
" jjbj,\n" +
|
||||||
@ -96,9 +96,9 @@ public class DataImport
|
|||||||
" ?,\n" +
|
" ?,\n" +
|
||||||
" ?,\n" +
|
" ?,\n" +
|
||||||
" ?,\n" +
|
" ?,\n" +
|
||||||
" ?,\n" +
|
//" ?,\n" +
|
||||||
" ?,\n" +
|
//" ?,\n" +
|
||||||
" ?,\n" +
|
//" ?,\n" +
|
||||||
" 0,\n" +
|
" 0,\n" +
|
||||||
" 0,\n" +
|
" 0,\n" +
|
||||||
" 1,\n" +
|
" 1,\n" +
|
||||||
@ -117,15 +117,15 @@ public class DataImport
|
|||||||
|
|
||||||
while ( row != null )
|
while ( row != null )
|
||||||
{
|
{
|
||||||
policyNo = row.getCell( 1 ).getStringCellValue().trim();
|
policyNo = row.getCell( 0 ).getStringCellValue().trim();
|
||||||
operatorCode = getStringValueFromHSSFCell( row.getCell( 4 ) );
|
operatorCode = getStringValueFromHSSFCell( row.getCell( 1 ) );
|
||||||
|
|
||||||
//判断一下是不是空的单元格
|
//判断一下是不是空的单元格
|
||||||
if ( policyNo.length() == 0 || operatorCode.length() == 0 )
|
if ( policyNo.length() == 0 || operatorCode.length() == 0 )
|
||||||
{
|
{
|
||||||
importResult = importResult + "第" + rowCount + "行数据为空。<br>";
|
importResult = importResult + "第" + rowCount + "行数据为空。<br>";
|
||||||
|
|
||||||
isSuccess = false;
|
//isSuccess = false;
|
||||||
}
|
}
|
||||||
else //不是空单元格,进行处理
|
else //不是空单元格,进行处理
|
||||||
{
|
{
|
||||||
@ -142,9 +142,9 @@ public class DataImport
|
|||||||
ifxStmt.setString( 5, staff.getSectionOfficeName() );
|
ifxStmt.setString( 5, staff.getSectionOfficeName() );
|
||||||
ifxStmt.setString( 6, staff.getDepartmentCode() );
|
ifxStmt.setString( 6, staff.getDepartmentCode() );
|
||||||
ifxStmt.setString( 7, staff.getDepartmentName() );
|
ifxStmt.setString( 7, staff.getDepartmentName() );
|
||||||
ifxStmt.setString( 8, getStringValueFromHSSFCell( row.getCell( 6 ) ) );
|
//ifxStmt.setString( 8, getStringValueFromHSSFCell( row.getCell( 6 ) ) );
|
||||||
ifxStmt.setString( 9, getStringValueFromHSSFCell( row.getCell( 3 ) ) );
|
//ifxStmt.setString( 9, getStringValueFromHSSFCell( row.getCell( 3 ) ) );
|
||||||
ifxStmt.setString( 10, getStringValueFromHSSFCell( row.getCell( 2 ) ) );
|
//ifxStmt.setString( 10, getStringValueFromHSSFCell( row.getCell( 2 ) ) );
|
||||||
|
|
||||||
ifxStmt.execute();
|
ifxStmt.execute();
|
||||||
|
|
||||||
|
Binary file not shown.
@ -27,7 +27,7 @@
|
|||||||
<input type="reset" name="reset" value="重置">
|
<input type="reset" name="reset" value="重置">
|
||||||
</form>
|
</form>
|
||||||
<a href="../doc/电销转介绍导入模板.xls" style="color:red;">导入模板下载</a>
|
<a href="../doc/电销转介绍导入模板.xls" style="color:red;">导入模板下载</a>
|
||||||
<p style="display: inline">备注:保单号、车牌号、被保人、经办人代码、车商代码为必填项!</p>
|
<%--<p style="display: inline">备注:保单号、车牌号、被保人、经办人代码、车商代码为必填项!</p>--%>
|
||||||
<!--上传结果显示-->
|
<!--上传结果显示-->
|
||||||
<%
|
<%
|
||||||
int uploadCount = 0;
|
int uploadCount = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user