This commit is contained in:
2022-12-27 18:13:03 +08:00
parent db15415e3c
commit c96b705d7d
2 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.RequiredArgsConstructor;
@@ -390,7 +391,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
log.info("ApplyLabelingAndBindingRequest----请求参数{}", param);
try {
String result = HttpRequest.post(url)
.body(String.valueOf(param))
.body(JSON.toJSONString(param))
.execute().body();
JSONObject jsonObject = JSONObject.parseObject(result);
log.info("ApplyLabelingAndBindingResponse----返回参数{}", result);
@@ -416,7 +417,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
log.info("LiKuApplyTaskRequest----请求参数{}", param);
try {
String result = HttpRequest.post(url)
.body(String.valueOf(param))
.body(JSON.toJSONString(param))
.execute().body();
JSONObject jsonObject = JSONObject.parseObject(result);
log.info("LiKuApplyTakResponse----返回参数{}", result);
@@ -444,7 +445,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
log.info("UpdateLKTaskResponse----请求参数{}", param);
try {
String result = HttpRequest.post(url)
.body(String.valueOf(param))
.body(JSON.toJSONString(param))
.execute().body();
JSONObject jsonObject = JSONObject.parseObject(result);
log.info("UpdateLKTaskResponse----返回参数{}", result);

View File

@@ -617,7 +617,7 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial {
if (!StrUtil.startWith(dto.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) {
TaskFeedbackDto feefbackdto = taskFeedbackService.findByCode(entity.getTask_code());
JSONObject feed_jo = new JSONObject();
feed_jo.put("ext_task_id", entity.getExt_task_id());
feed_jo.put("task_id", entity.getExt_task_id());
feed_jo.put("task_code", dto.getTask_code());
feed_jo.put("task_status", dto.getTask_status());
JSONArray ja = new JSONArray();