|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.ruoyi.web.controller.api;
|
|
|
|
package com.ruoyi.web.controller.api;
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
@ -334,11 +335,11 @@ public class AppController extends BaseController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
jsonObject = removeBase64Image(JSONObject.parseObject(result),recordId);
|
|
|
|
jsonObject = removeBase64Image(JSONObject.parseObject(result),recordId);
|
|
|
|
// TRecord tRecord = new TRecord();
|
|
|
|
TRecord tRecord = new TRecord();
|
|
|
|
// tRecord.setId(recordId);
|
|
|
|
tRecord.setId(recordId);
|
|
|
|
// tRecord.setAiResult(jsonObject.toJSONString());
|
|
|
|
tRecord.setAiResult(JSONObject.toJSONString(jsonObject, SerializerFeature.WriteMapNullValue));
|
|
|
|
// tRecord.setAiResult2(jsonObject.toJSONString());
|
|
|
|
tRecord.setAiResult2(JSONObject.toJSONString(jsonObject, SerializerFeature.WriteMapNullValue));
|
|
|
|
// tRecordService.updateTRecord(tRecord);
|
|
|
|
tRecordService.updateTRecord(tRecord);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return AjaxResult.success(jsonObject);
|
|
|
|
return AjaxResult.success(jsonObject);
|
|
|
|
}
|
|
|
|
}
|
|
|
|