|
@@ -6,10 +6,10 @@ import java.util.Map;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson2.JSON;
|
|
|
import com.cirs.biz.domain.*;
|
|
|
import com.cirs.biz.service.ITElectronComponentService;
|
|
|
import com.cirs.common.utils.DictUtils;
|
|
|
-import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import org.springframework.http.MediaType;
|
|
@@ -173,25 +173,12 @@ public class TVerificationTaskDetailController extends BaseController
|
|
|
String model_path = DictUtils.getDictValue("biz_algorithm_config","model_path");
|
|
|
String verification_uri = DictUtils.getDictValue("biz_algorithm_config","verification_uri");
|
|
|
|
|
|
-
|
|
|
-// logger.info(taskid.toString());
|
|
|
-// System.out.println(taskid);
|
|
|
-
|
|
|
-// getComponentIds(taskid);
|
|
|
Map<String, Object> objectMap=new HashMap<>();
|
|
|
List<VerificationData> dataset = tVerificationTaskDetailService.getComponentids(taskid);//id就是taskdetail的id,由此更新相应的taskdetail
|
|
|
-// for(int i=0;i<dataset.size();i++){
|
|
|
-// dataset.get(i).setId((long)(i+1));
|
|
|
-// }
|
|
|
|
|
|
objectMap.put("dataSet", dataset);
|
|
|
objectMap.put("modelPath", model_path);
|
|
|
- // 创建一个 ObjectMapper 实例
|
|
|
-// ObjectMapper objectMapper = new ObjectMapper();
|
|
|
-
|
|
|
-// 将对象转换为 JSON 字符串
|
|
|
-// String json = objectMapper.writeValueAsString(objectMap);
|
|
|
-// logger.info("post json: {}", json);
|
|
|
+ logger.info("request payload: {}", JSON.toJSONString(objectMap));
|
|
|
// 发送请求
|
|
|
Mono<String> mono = webClient
|
|
|
.post() // POST 请求
|