|
|
|
@ -71,6 +71,7 @@ public class IoSplitFifoCodeService extends ServiceImpl<IoSplitFifoCodeMapper, I
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 库存量提醒
|
|
|
|
|
*
|
|
|
|
|
* @param workPlaceCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
@ -81,18 +82,18 @@ public class IoSplitFifoCodeService extends ServiceImpl<IoSplitFifoCodeMapper, I
|
|
|
|
|
Integer invRemindNumber = workplace.getInvRemindNumber();
|
|
|
|
|
|
|
|
|
|
List<IoSplitCodeResponse> invReminds = splitFifoCodeMapper.findInvRemind(workPlaceCode);
|
|
|
|
|
if (CollUtil.isEmpty(invReminds)){
|
|
|
|
|
return "当前工位存量提醒:" + "0";
|
|
|
|
|
}
|
|
|
|
|
invReminds.forEach( item -> {
|
|
|
|
|
if (CollUtil.isEmpty(invReminds)) {
|
|
|
|
|
return "当前工位存量提醒:" + "0";
|
|
|
|
|
}
|
|
|
|
|
invReminds.forEach(item -> {
|
|
|
|
|
Integer groupCount = item.getGroupCount();
|
|
|
|
|
if (groupCount < invRemindNumber){
|
|
|
|
|
if (groupCount < invRemindNumber) {
|
|
|
|
|
String cpmctymc = item.getCpmctymc();
|
|
|
|
|
String batchNo = item.getBatchNo();
|
|
|
|
|
if (StrUtil.isBlank(batchNo)){
|
|
|
|
|
msg[0] = msg[0] + cpmctymc + "存量为:"+groupCount;
|
|
|
|
|
}else {
|
|
|
|
|
msg[0] = msg[0] + cpmctymc + "["+batchNo+"]存量为:"+groupCount;
|
|
|
|
|
if (StrUtil.isBlank(batchNo)) {
|
|
|
|
|
msg[0] = msg[0] + cpmctymc + "存量为:" + groupCount;
|
|
|
|
|
} else {
|
|
|
|
|
msg[0] = msg[0] + cpmctymc + "[" + batchNo + "]存量为:" + groupCount;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -100,4 +101,21 @@ public class IoSplitFifoCodeService extends ServiceImpl<IoSplitFifoCodeMapper, I
|
|
|
|
|
return msg[0];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 预分配库存 todo
|
|
|
|
|
*/
|
|
|
|
|
public void preAllotInv(String workPaceCode) {
|
|
|
|
|
|
|
|
|
|
//1. 查询出当前工位的未分配的库存
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//2.遍历当前工位待处理的单据,根据orderTime排序
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//3.为每个单据底下的单据详情分配数量
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|