因为readyIn在多用炉第一托盘下油后一直存在,到出炉为止.所以查询当前炉子在加工的任务,大于一条,则不再根据readyIn发起任务
This commit is contained in:
parent
592fdf285d
commit
a509e54803
@ -534,6 +534,12 @@ public class ScheduledTask extends BaseService {
|
|||||||
//查询炉子是否allowIn
|
//查询炉子是否allowIn
|
||||||
Boolean kilnAllowIn = kilnAllowIn(kilnInfo.getId());
|
Boolean kilnAllowIn = kilnAllowIn(kilnInfo.getId());
|
||||||
if (kilnReadyIn||kilnAllowIn){
|
if (kilnReadyIn||kilnAllowIn){
|
||||||
|
//因为readyIn在多用炉第一托盘下油后一直存在,到出炉为止.所以查询当前炉子在加工的任务,大于一条,则不再根据readyIn发起任务
|
||||||
|
List<CurrTask> currTaskList = currTaskServiceBiz.list(new QueryWrapper<CurrTask>()
|
||||||
|
.eq(CurrTask.KILN_ID, kilnInfo.getId()).eq(CurrTask.IS_IN, 1));
|
||||||
|
if (currTaskList.size()>1){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
//缓存区是否有目标位置为工业炉的待加工任务
|
//缓存区是否有目标位置为工业炉的待加工任务
|
||||||
List<InStockInfo> inStockInfoList = inStockInfoServiceBiz.list(new QueryWrapper<InStockInfo>()
|
List<InStockInfo> inStockInfoList = inStockInfoServiceBiz.list(new QueryWrapper<InStockInfo>()
|
||||||
.eq(InStockInfo.TYPE, 1)
|
.eq(InStockInfo.TYPE, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user