Commit b03307c1 by 黄明步

.

parent 76615edf
...@@ -257,7 +257,7 @@ public class RetransmissionService { ...@@ -257,7 +257,7 @@ public class RetransmissionService {
saveToAppAbilityRecordAll(result, request, ocrServerAddress.getIp(), fileId); saveToAppAbilityRecordAll(result, request, ocrServerAddress.getIp(), fileId);
return result; return result;
} catch (Exception e) { } catch (Exception e) {
log.error("OCR云平台接口异常", e); log.error("OCR云平台接口异常, ", e);
return new OcrResult("007500", "识别失败,请重试", null, DateUtil.date()); return new OcrResult("007500", "识别失败,请重试", null, DateUtil.date());
} finally { } finally {
FileUtil.del(tempSaveDir); FileUtil.del(tempSaveDir);
...@@ -732,6 +732,7 @@ public class RetransmissionService { ...@@ -732,6 +732,7 @@ public class RetransmissionService {
return; return;
} }
record.setIp(clientIP); record.setIp(clientIP);
mapper.updateById(record);
// log.info("修改id:{}的真实客户端请求ip结果:{}", id, mapper.updateById(record)); // log.info("修改id:{}的真实客户端请求ip结果:{}", id, mapper.updateById(record));
AppAbilityRecordAll recordAll = recordAllMapper.selectById(id); AppAbilityRecordAll recordAll = recordAllMapper.selectById(id);
if (recordAll == null) { if (recordAll == null) {
...@@ -742,6 +743,7 @@ public class RetransmissionService { ...@@ -742,6 +743,7 @@ public class RetransmissionService {
if (StrUtil.isEmpty(recordAll.getServerIp())) { if (StrUtil.isEmpty(recordAll.getServerIp())) {
recordAll.setServerIp(serverIp); recordAll.setServerIp(serverIp);
} }
recordAllMapper.insert(recordAll);
// log.info("添加id:{} 的数据到recordAll持久化保存结果:{}", recordAll.getId(), recordAllMapper.insert(recordAll)); // log.info("添加id:{} 的数据到recordAll持久化保存结果:{}", recordAll.getId(), recordAllMapper.insert(recordAll));
} else { } else {
AppAbilityRecordAll newRecordAll = new AppAbilityRecordAll(); AppAbilityRecordAll newRecordAll = new AppAbilityRecordAll();
...@@ -750,6 +752,7 @@ public class RetransmissionService { ...@@ -750,6 +752,7 @@ public class RetransmissionService {
if (StrUtil.isEmpty(newRecordAll.getServerIp())) { if (StrUtil.isEmpty(newRecordAll.getServerIp())) {
newRecordAll.setServerIp(serverIp); newRecordAll.setServerIp(serverIp);
} }
recordAllMapper.updateById(newRecordAll);
// log.info("修改recordAll中id:{} 的数据结果:{}", newRecordAll.getId(), recordAllMapper.updateById(newRecordAll)); // log.info("修改recordAll中id:{} 的数据结果:{}", newRecordAll.getId(), recordAllMapper.updateById(newRecordAll));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment