ctu入库相关流程修改

This commit is contained in:
liuhanqing
2025-07-07 15:32:57 +08:00
parent 07b3d4f0a4
commit e6b5bd67ba
8 changed files with 205 additions and 199 deletions

View File

@@ -21,6 +21,13 @@ import java.util.List;
*/
public interface IApiService
{
/**
* 请求入库
* @param mydoJob
* @return 返回入库口位置
*/
public MydoJob requestEnter(MydoJob mydoJob);
/**
* 获取任务列表
* @param mydoJob

View File

@@ -47,6 +47,14 @@ public class ApiServiceImpl implements IApiService {
private IAgvQueueService agvQueueService;
@Override
public MydoJob requestEnter(MydoJob mydoJob) {
RequestLog requestLog = requestLogService.getRequestLog(GET_MYDOJOB_URL, "请求入库", JSONUtil.toJsonStr(mydoJob));
String responseBody = requestLog.getResponseBody();
InterfaceReceive bean = JSONUtil.toBean(responseBody, InterfaceReceive.class);
return JSONUtil.toBean(JSONUtil.toJsonStr(bean.getData()), MydoJob.class);
}
@Override
public List<MydoJob> getMydoJobList(MydoJob mydoJob) {
RequestLog requestLog = requestLogService.getRequestLog(GET_MYDOJOB_URL, "获取任务", JSONUtil.toJsonStr(mydoJob));