优化修正请求和响应逻辑
This commit is contained in:
@@ -104,8 +104,10 @@ public class JobCallBackController extends BaseController
|
||||
return toAjax(jobCallBackService.deleteJobCallBackByIds(ids));
|
||||
}
|
||||
|
||||
@Scheduled(fixedDelay=2000)
|
||||
@Scheduled(fixedDelay=3000)
|
||||
public void jobCallBack() {
|
||||
jobCallBackService.jobCallBack();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ public class MydoJob extends BaseEntity
|
||||
|
||||
private String trayCode;
|
||||
|
||||
// private String inOut;
|
||||
private String inOut;
|
||||
|
||||
private String flag;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import cn.hutool.core.lang.UUID;
|
||||
import com.ruoyi.api.domain.RequestLog;
|
||||
import com.ruoyi.api.service.IApiService;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
@@ -110,12 +111,13 @@ public class JobCallBackServiceImpl implements IJobCallBackService
|
||||
//设定请求参数
|
||||
Map<String, Object> param = new HashMap<>();
|
||||
param.put("taskTypeCode", jobCallBack.getTaskTypeCode());
|
||||
param.put("reqCode", jobCallBack.getReqCode());
|
||||
param.put("reqCode", UUID.randomUUID().toString().replace("-", ""));
|
||||
param.put("taskCode", jobCallBack.getTaskCode());
|
||||
|
||||
//请求回传
|
||||
RequestLog requestLog = apiService.finishMydoJob(param);
|
||||
if ("0".equals(requestLog.getIsSuccessful())){
|
||||
// RequestLog requestLog = apiService.finishMydoJob(param);
|
||||
RequestLog requestLog = apiService.finishMydoJobForResponseResult(param);//@@@ FT568 返回自定义的wms响应格式
|
||||
if ("1".equals(requestLog.getIsSuccessful())){
|
||||
jobCallBack.setStatus("1");
|
||||
}else{
|
||||
jobCallBack.setStatus("99");
|
||||
|
||||
Reference in New Issue
Block a user