修改模板

This commit is contained in:
王炜 2018-07-03 09:45:17 +08:00
parent f4c9649b02
commit 36c0025da4
3 changed files with 13 additions and 13 deletions

View File

@ -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();

View File

@ -27,7 +27,7 @@
<input type="reset" name="reset" value="重置">
</form>
<a href="../doc/电销转介绍导入模板.xls" style="color:red;">导入模板下载</a>
<p style="display: inline">备注:保单号、车牌号、被保人、经办人代码、车商代码为必填项!</p>
<%--<p style="display: inline">备注:保单号、车牌号、被保人、经办人代码、车商代码为必填项!</p>--%>
<!--上传结果显示-->
<%
int uploadCount = 0;