Commit b03307c1 by 黄明步

.

parent 76615edf
......@@ -257,7 +257,7 @@ public class RetransmissionService {
saveToAppAbilityRecordAll(result, request, ocrServerAddress.getIp(), fileId);
return result;
} catch (Exception e) {
log.error("OCR云平台接口异常", e);
log.error("OCR云平台接口异常, ", e);
return new OcrResult("007500", "识别失败,请重试", null, DateUtil.date());
} finally {
FileUtil.del(tempSaveDir);
......@@ -732,6 +732,7 @@ public class RetransmissionService {
return;
}
record.setIp(clientIP);
mapper.updateById(record);
// log.info("修改id:{}的真实客户端请求ip结果:{}", id, mapper.updateById(record));
AppAbilityRecordAll recordAll = recordAllMapper.selectById(id);
if (recordAll == null) {
......@@ -742,6 +743,7 @@ public class RetransmissionService {
if (StrUtil.isEmpty(recordAll.getServerIp())) {
recordAll.setServerIp(serverIp);
}
recordAllMapper.insert(recordAll);
// log.info("添加id:{} 的数据到recordAll持久化保存结果:{}", recordAll.getId(), recordAllMapper.insert(recordAll));
} else {
AppAbilityRecordAll newRecordAll = new AppAbilityRecordAll();
......@@ -750,6 +752,7 @@ public class RetransmissionService {
if (StrUtil.isEmpty(newRecordAll.getServerIp())) {
newRecordAll.setServerIp(serverIp);
}
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