|
@ -672,11 +672,9 @@ public class InternetCommonService extends BaseJpaService<InternetUpErrorLogDO,
|
|
Map<String,Object> info =list.get(i);
|
|
Map<String,Object> info =list.get(i);
|
|
Boolean errorFlag = false;
|
|
Boolean errorFlag = false;
|
|
JSONObject jb = new JSONObject();
|
|
JSONObject jb = new JSONObject();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String interId = "";
|
|
try{
|
|
try{
|
|
String interId = "";
|
|
|
|
|
|
|
|
String idCard = info.get("docIdCard") == null ? "0":info.get("docIdCard").toString();
|
|
String idCard = info.get("docIdCard") == null ? "0":info.get("docIdCard").toString();
|
|
if( info.get("docIdCard") == null){
|
|
if( info.get("docIdCard") == null){
|
|
interId = "0";
|
|
interId = "0";
|
|
@ -704,16 +702,19 @@ public class InternetCommonService extends BaseJpaService<InternetUpErrorLogDO,
|
|
logger.error(e.toString());
|
|
logger.error(e.toString());
|
|
}
|
|
}
|
|
if(!errorFlag){
|
|
if(!errorFlag){
|
|
JSONArray jsonArray = new JSONArray();
|
|
|
|
jsonArray.add(jb);
|
|
|
|
res = postToInter(token,api, jsonArray,url);
|
|
|
|
JSONObject resJson = (JSONObject) JSONObject.parse(res);
|
|
|
|
if("200".equals(resJson.get("msg").toString())){
|
|
|
|
success++;
|
|
|
|
}else{
|
|
|
|
saveErrorLog(upid,"7",info.get("id").toString(),res,2);
|
|
|
|
error++;
|
|
|
|
|
|
if (!interId.equalsIgnoreCase("0")&&!interId.equalsIgnoreCase("")){
|
|
|
|
JSONArray jsonArray = new JSONArray();
|
|
|
|
jsonArray.add(jb);
|
|
|
|
res = postToInter(token,api, jsonArray,url);
|
|
|
|
JSONObject resJson = (JSONObject) JSONObject.parse(res);
|
|
|
|
if("200".equals(resJson.get("msg").toString())){
|
|
|
|
success++;
|
|
|
|
}else{
|
|
|
|
saveErrorLog(upid,"7",info.get("id").toString(),res,2);
|
|
|
|
error++;
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
String resInfo = "此次共上传:" + total + "条数据,其中成功 :" + success + "条,上传失败 : " + error + "条。格式错误:"+dataError+"条。";
|
|
String resInfo = "此次共上传:" + total + "条数据,其中成功 :" + success + "条,上传失败 : " + error + "条。格式错误:"+dataError+"条。";
|