|
|
@ -700,37 +700,6 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
if (StrUtil.equals(dto.getTask_status(), "0") || StrUtil.equals(dto.getTask_status(), "1")) { |
|
|
|
tasks.add(dto); |
|
|
|
} |
|
|
|
// 判断是否为WMS下发的任务,如果是反馈任务状态给WMS
|
|
|
|
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue(); |
|
|
|
String Type1=entity.getTask_type(); |
|
|
|
if(StrUtil.equals(Type1,"定点任务")){ |
|
|
|
JSONObject jo = new JSONObject(); |
|
|
|
jo.put("taskCode",entity.getTask_code()); |
|
|
|
jo.put("carId",""); |
|
|
|
jo.put("taskType ",entity.getTask_type()); |
|
|
|
jo.put("feedbackStatus","taking"); |
|
|
|
log.info("请求参数:{}",jo); |
|
|
|
HttpResponse result= acsToWmsZDService.taskFeedback(jo); |
|
|
|
JSONObject response=JSONObject.parseObject(result.body()); |
|
|
|
int responseCode= response.getInteger("responseCode"); |
|
|
|
if(responseCode == 0) { |
|
|
|
log.info("请求ZDwcs成功,申请取货 请求结果{}",responseCode); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!StrUtil.startWith(dto.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) { |
|
|
|
JSONObject jo = new JSONObject(); |
|
|
|
jo.put("taskCode",entity.getTask_code()); |
|
|
|
jo.put("carId",""); |
|
|
|
jo.put("taskType ",entity.getTask_type()); |
|
|
|
jo.put("feedbackStatus","taking"); |
|
|
|
log.info("请求参数:{}",jo); |
|
|
|
HttpResponse result= acsToWmsZDService.taskFeedback(jo); |
|
|
|
JSONObject response=JSONObject.parseObject(result.body()); |
|
|
|
int responseCode= response.getInteger("responseCode"); |
|
|
|
if(responseCode == 0) { |
|
|
|
log.info("请求ZDwcs成功,申请取货 请求结果{}",responseCode); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|