一楼入库调度逻辑
This commit is contained in:
@@ -158,4 +158,6 @@ public interface IApiService
|
|||||||
* 入库请求生成作业
|
* 入库请求生成作业
|
||||||
*/
|
*/
|
||||||
public AjaxResult createInMydoJob(Map<String, Object> param);
|
public AjaxResult createInMydoJob(Map<String, Object> param);
|
||||||
|
|
||||||
|
public AjaxResult requestEnterByEnterIdAndTrayCode();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -395,4 +395,9 @@ public class ApiServiceImpl implements IApiService {
|
|||||||
return AjaxResult.error();
|
return AjaxResult.error();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult requestEnterByEnterIdAndTrayCode() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import com.ruoyi.api.domain.agv.genAgvSchedulingTask.GenAgvSchedulingTaskRespons
|
|||||||
import com.ruoyi.api.service.IApiService;
|
import com.ruoyi.api.service.IApiService;
|
||||||
import com.ruoyi.bas.cargospace.domain.BasCargoSpace;
|
import com.ruoyi.bas.cargospace.domain.BasCargoSpace;
|
||||||
import com.ruoyi.bas.cargospace.service.IBasCargoSpaceService;
|
import com.ruoyi.bas.cargospace.service.IBasCargoSpaceService;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
import com.ruoyi.common.domain.SendData;
|
import com.ruoyi.common.domain.SendData;
|
||||||
import com.ruoyi.common.utils.spring.SpringUtils;
|
import com.ruoyi.common.utils.spring.SpringUtils;
|
||||||
import com.ruoyi.job.domain.MydoJob;
|
import com.ruoyi.job.domain.MydoJob;
|
||||||
@@ -154,8 +155,13 @@ public class Floor1BothWayInSsjThread implements Runnable {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (StrUtil.isNotEmpty(ssj.getTrayCode())) {
|
if (StrUtil.isNotEmpty(ssj.getTrayCode())) {
|
||||||
|
//根据托盘码请求入库作业
|
||||||
|
AjaxResult result = apiService.requestEnterByEnterIdAndTrayCode();
|
||||||
|
if (result.isSuccess()) {
|
||||||
|
MydoJob inJob = (MydoJob) result.get("data");
|
||||||
|
mydoJobService.insertMydoJob(inJob);
|
||||||
SendData qx = new SendData(Tools.INT, 1);
|
SendData qx = new SendData(Tools.INT, 1);
|
||||||
SendData rwh = new SendData(Tools.DINT, ssj.getTaskNo());
|
SendData rwh = new SendData(Tools.DINT, inJob.getTaskNo());
|
||||||
byte[] bytes = Tools.sendData(qx, rwh);
|
byte[] bytes = Tools.sendData(qx, rwh);
|
||||||
int i = 0;
|
int i = 0;
|
||||||
//下发去向 和任务号
|
//下发去向 和任务号
|
||||||
@@ -171,6 +177,9 @@ public class Floor1BothWayInSsjThread implements Runnable {
|
|||||||
if (i == 1) {
|
if (i == 1) {
|
||||||
log.info("入库请求下发任务号加去向 rwh:{},qx:{},trayCode:{}", ssj.getTaskNo(), 1, ssj.getTrayCode());
|
log.info("入库请求下发任务号加去向 rwh:{},qx:{},trayCode:{}", ssj.getTaskNo(), 1, ssj.getTrayCode());
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
log.info("未检测到托盘码请求入库作业 rwh:{},trayCode:{}", ssj.getTaskNo(), ssj.getTrayCode());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//回退
|
//回退
|
||||||
SendData qx = new SendData(Tools.INT, 2);
|
SendData qx = new SendData(Tools.INT, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user