Commit 634bd595 sunke

增加获取当前料仓未完成的指定工单的出库任务数

1 个父辈 e91c7fbe
...@@ -487,4 +487,34 @@ public class DeviceController { ...@@ -487,4 +487,34 @@ public class DeviceController {
return null; return null;
} }
@ApiOperation("客户端获取料仓是否还有未完成的工单出库任务")
@RequestMapping(value = "/service/store/outTaskCount")
@ResponseBody
@AnonymousAccess
public Integer outTaskCount(HttpServletRequest request) {
String cid = request.getParameter("cid");
String hSerial = request.getParameter("hSerial");
int outTaskCount = 0;
if(!Strings.isNullOrEmpty(cid)){
Collection<DataLog> queueTasks = taskService.getQueueTasks(cid);
if(!Strings.isNullOrEmpty(hSerial)){
for (DataLog queueTask : queueTasks) {
if(queueTask.isCheckOutTask()){
if(queueTask.getSourceName().equals(hSerial)){
//单号相同任务数量+1
outTaskCount = outTaskCount + 1;
}
}
}
}else{
for (DataLog queueTask : queueTasks) {
if (queueTask.isCheckOutTask()) {
outTaskCount = outTaskCount + 1;
}
}
}
}
return outTaskCount;
}
} }
...@@ -430,6 +430,7 @@ public class TaskService { ...@@ -430,6 +430,7 @@ public class TaskService {
} else { } else {
log.warn("出库无料仓位" + storage.getName() + "[" + posName + "]"); log.warn("出库无料仓位" + storage.getName() + "[" + posName + "]");
} }
statusBean.addData("hSerial",task.getSourceName());
statusBean.addPosInfo(task.getBarcode(), posName, plateW, plateH, isSingleOut); statusBean.addPosInfo(task.getBarcode(), posName, plateW, plateH, isSingleOut);
log.info("出库" + storage.getName() + "[" + posName + "]物料[" + task.getBarcode() + "]" + isSingleOut + "发送到客户端" + cid); log.info("出库" + storage.getName() + "[" + posName + "]物料[" + task.getBarcode() + "]" + isSingleOut + "发送到客户端" + cid);
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!