更新
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user