诊断记录-历史备份

master
parent 0405f918d1
commit 00912980f1

@ -438,6 +438,7 @@ public class AppController extends BaseController
} }
catch (Exception e) catch (Exception e)
{ {
throw new ServiceException(e.getMessage()); throw new ServiceException(e.getMessage());
} }
if (!StringUtils.isEmpty(result)) if (!StringUtils.isEmpty(result))
@ -648,6 +649,7 @@ public class AppController extends BaseController
public JSONObject removeBase64Image(JSONObject jsonObject,Long recordId) public JSONObject removeBase64Image(JSONObject jsonObject,Long recordId)
{ {
List<String> jsonKeyList = new ArrayList<String>(){{ List<String> jsonKeyList = new ArrayList<String>(){{
add("st_avg_yellow");
add("img_sz"); add("img_sz");
add("img_sz_yudian"); add("img_sz_yudian");
add("img_sz_yuban"); add("img_sz_yuban");
@ -657,7 +659,6 @@ public class AppController extends BaseController
add("img_sx_vein"); add("img_sx_vein");
add("sz_avg_red"); add("sz_avg_red");
add("sz_avg_purple"); add("sz_avg_purple");
add("st_avg_yellow");
add("sx_vein_avg_purple"); add("sx_vein_avg_purple");
}}; }};
try { try {
@ -694,6 +695,7 @@ public class AppController extends BaseController
for (Map.Entry<String, Object> entry : ((JSONObject) obj).entrySet()) { for (Map.Entry<String, Object> entry : ((JSONObject) obj).entrySet()) {
// 如果key包含在图片 // 如果key包含在图片
if (imageKeys.contains(entry.getKey())) { if (imageKeys.contains(entry.getKey())) {
System.out.println(entry.getKey());
String imageStr = null; String imageStr = null;
String imageKey = null; String imageKey = null;
if (entry.getValue() instanceof JSONObject) { if (entry.getValue() instanceof JSONObject) {

@ -62,19 +62,12 @@ public class MpController extends BaseController {
//备份历史记录 //备份历史记录
recordHistoryService.saveHistory(recordId); recordHistoryService.saveHistory(recordId);
tRecord.setId(recordId);
TRecord delRecord = new TRecord();
delRecord.setId(recordId);
delRecord.setDelFlag("2");
tRecordService.updateTRecord(delRecord);
// 重新生成一条记录
tRecord.setId(null);
tRecord.setDelFlag("0"); tRecord.setDelFlag("0");
tRecord.setStatus("0"); tRecord.setStatus("0");
tRecord.setUpdateResult(null); tRecord.setUpdateResult("");
tRecord.setUpdateResult2(null); tRecord.setUpdateResult2("");
tRecordService.insertTRecord(tRecord); tRecordService.updateTRecord(tRecord);
AjaxResult success = AjaxResult.success(); AjaxResult success = AjaxResult.success();
success.put("recordId", tRecord.getId()); success.put("recordId", tRecord.getId());
return success; return success;

@ -136,8 +136,8 @@ wx:
wechatSecret: a494e8b7804d6e9f3cef984161486aec wechatSecret: a494e8b7804d6e9f3cef984161486aec
aiPost: aiPost:
ip: 111.6.25.30 ip: 10.10.203.55
port: 7001 port: 6000
url: /tongue/algo/sm_sx url: /tongue/algo/sm_sx

@ -79,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
tr.doctor_id AS doctorId, tr.doctor_id AS doctorId,
tr.hospital_id AS hospitalId, tr.hospital_id AS hospitalId,
tr.STATUS, tr.STATUS,
tr.ai_result AS aiResult,
tr.ai_result2 AS aiResult2, tr.ai_result2 AS aiResult2,
tr.update_result2 AS updateResult2, tr.update_result2 AS updateResult2,
tr.update_time AS updateTime, tr.update_time AS updateTime,

Loading…
Cancel
Save