ai上传状态处理

master
chenfei 2 years ago
parent 88edaf51b7
commit 24b3f6f6d9

@ -357,6 +357,10 @@ public class AppController extends BaseController
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
String URL = RequestParamsUtil.HTTP + ip + RequestParamsUtil.SEPARATOR + port + url; String URL = RequestParamsUtil.HTTP + ip + RequestParamsUtil.SEPARATOR + port + url;
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
TRecord tRecord = new TRecord();
tRecord.setId(recordId);
tRecord.setStatus("1");
tRecordService.updateTRecord(tRecord);
String result; String result;
Date start; Date start;
Date end; Date end;
@ -372,10 +376,6 @@ public class AppController extends BaseController
} }
if (!StringUtils.isEmpty(result)) if (!StringUtils.isEmpty(result))
{ {
TRecord tRecord = new TRecord();
tRecord.setId(recordId);
tRecord.setStatus("1");
tRecordService.updateTRecord(tRecord);
JSONObject data = JSONObject.parseObject(result); JSONObject data = JSONObject.parseObject(result);
if(data.getInteger("code") != 200){ if(data.getInteger("code") != 200){
TRecord tRecord1 = new TRecord(); TRecord tRecord1 = new TRecord();

Loading…
Cancel
Save