|
|
|
@ -31,10 +31,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
@ -121,9 +118,9 @@ public class IoSplitFifoCodeService extends ServiceImpl<IoSplitFifoCodeMapper, I
|
|
|
|
|
String cpmctymc = item.getCpmctymc();
|
|
|
|
|
String batchNo = item.getBatchNo();
|
|
|
|
|
if (StrUtil.isBlank(batchNo)) {
|
|
|
|
|
msg[0] = msg[0] + cpmctymc + "存量为:" + reCount;
|
|
|
|
|
msg[0] = msg[0] + cpmctymc + "存量为:" + reCount+";";
|
|
|
|
|
} else {
|
|
|
|
|
msg[0] = msg[0] + cpmctymc + "[" + batchNo + "]存量为:" + reCount;
|
|
|
|
|
msg[0] = msg[0] + cpmctymc + "[" + batchNo + "]存量为:" + reCount+";";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -132,6 +129,37 @@ public class IoSplitFifoCodeService extends ServiceImpl<IoSplitFifoCodeMapper, I
|
|
|
|
|
return msg[0];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取当前工位下的带处理单据 是否库存足够
|
|
|
|
|
*
|
|
|
|
|
* @param workPaceCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public String findInvRemindByBillNo(Long workPaceCode) {
|
|
|
|
|
final String[] msg = {"库存预警提醒:"};
|
|
|
|
|
if (workPaceCode == null || workPaceCode == 0l) return msg[0];
|
|
|
|
|
|
|
|
|
|
//2.遍历当前工位待处理的单据,根据orderTime排序
|
|
|
|
|
CollectOrderRequest collectOrderRequest = new CollectOrderRequest();
|
|
|
|
|
collectOrderRequest.setWorkPlaceCode(workPaceCode);
|
|
|
|
|
collectOrderRequest.setTagStatus(1);
|
|
|
|
|
List<IoCollectOrderResponse> orderList = collectOrderMapper.filterList(collectOrderRequest);
|
|
|
|
|
if (CollUtil.isEmpty(orderList)) return msg[0];
|
|
|
|
|
|
|
|
|
|
orderList.forEach(item -> {
|
|
|
|
|
Integer invAlert = item.getInvAlert();
|
|
|
|
|
if (invAlert == 1) {
|
|
|
|
|
msg[0] = msg[0] + item.getBillNo() + ":正常; ";
|
|
|
|
|
} else if (invAlert == 2) {
|
|
|
|
|
msg[0] = msg[0] + item.getBillNo() + ":不足; ";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return msg[0];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 通过 单据 锁定库存
|
|
|
|
|