诊断记录-历史备份

master
parent 0405f918d1
commit 00912980f1

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

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

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

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

Loading…
Cancel
Save