Commit 484424b5 by liulianglang

比对修改

parent 8f1097d3
package org.springblade.founder.ryxscxbd.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
......@@ -21,10 +22,7 @@ import org.springblade.founder.ryxscxbd.mapper.RxbzMapper;
import org.springblade.founder.ryxscxbd.mapper.TbYwRxbdBdzgMapper;
import org.springblade.founder.ryxscxbd.service.RxbzService;
import org.springblade.founder.ryxscxbd.service.TbYwRxbdBdzgService;
import org.springblade.founder.ryxscxbd.utils.HttpClient;
import org.springblade.founder.ryxscxbd.utils.HttpClientService;
import org.springblade.founder.ryxscxbd.utils.HttpClientUtil;
import org.springblade.founder.ryxscxbd.utils.RxbdUtils;
import org.springblade.founder.ryxscxbd.utils.*;
import org.springblade.founder.utils.R;
import org.springblade.founder.utils.SysXxzjbhService;
import org.springblade.founder.ydjwhc.entity.Base64DecodeMultipartFile;
......@@ -488,17 +486,30 @@ public class TbYwRxbdBdzgServiceImpl implements TbYwRxbdBdzgService {
String url = rxbdUtils.getTaskUrl();
Map<String, String> params = rxbdUtils.getTaskParam();
taskId= httpClientService.doPostFile(url, params, file, "");
String ressss= httpClientService.doPostFile(url, params, file, "");
System.out.println("taskId=====" + taskId);
System.out.println("taskId=====" + ressss);
Map<String, Object> taskResult = parseTaskResponse(ressss, RxbdContants.RXBD_PARSE_TASKID);
Integer taskIdI = (Integer) taskResult.get("taskId");
taskId = taskIdI + "";
} catch (Exception e) {
e.printStackTrace();
}
return taskId;
}
private Map<String, Object> parseTaskResponse(String response, String key) {
Map<String, Object> result = new HashMap<>(16);
if (org.springframework.util.StringUtils.hasText(response)) {
Map<String, Object> resMap = JSON.parseObject(response, Map.class);
Object data = resMap.get("data");
if (data != null) {
result = JSON.parseObject(JSON.toJSONString(data), Map.class);
}
}
return result;
}
@Override
public R getzzcsRxbdjg(String rwxxzjbh, MultipartFile file, String base64Img, HttpServletRequest request, String fjmc, String threshold, String topNumber, String model) {
Map<String, String> otherParams = new HashMap<>();
......
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