xhj 2 months ago
parent fb8c90f3b1
commit 86e65dee36

@ -1738,18 +1738,21 @@ public class BomUploadServiceImpl {
List<BomVO> collect11 = list.stream().filter(fst -> null!= fst.getTjb() && tzbh.equals(fst.getTjb().getTzbh())
).collect(Collectors.toList());
// 找到长度
BigDecimal cd=collect11.get(0).getTjb().getXccd().divide(new BigDecimal("1000"));
dmBom.setYlbs(collect11.get(0).getTjb().getSfyl());
List<BomVO> collect111 = list.stream().filter(fst -> null!= fst.getBclq() && fst.getBclq().getWpgg().equals(e.getWpxhZ()) &&
fst.getBclq().getWpxh().equals(e.getWpggZ()) && fst.getBclq().getDcPlZ().equals(e.getDcPlZ()) && fst.getBclq().getYlzd11().compareTo(cd)==0
).collect(Collectors.toList());
if (collect111.size() > 0) {
if(collect11.size()>0){
BigDecimal cd=collect11.get(0).getTjb().getXccd().divide(new BigDecimal("1000"));
dmBom.setYlbs(collect11.get(0).getTjb().getSfyl());
List<BomVO> collect111 = list.stream().filter(fst -> null!= fst.getBclq() && fst.getBclq().getWpgg().equals(e.getWpxhZ()) &&
fst.getBclq().getWpxh().equals(e.getWpggZ()) && fst.getBclq().getDcPlZ().equals(e.getDcPlZ()) && fst.getBclq().getYlzd11().compareTo(cd)==0
).collect(Collectors.toList());
if (collect111.size() > 0) {
// dmBom.setFds(collect11.get(0).getBclq().getDcFdZ());
dmBom.setXcgs(collect111.get(0).getBclq().getSl());
dmBom.setXcshms(collect111.get(0).getBclq().getShms());
dmBom.setFds(collect111.get(0).getBclq().getDcFdZ());
dmBom.setXcgs(collect111.get(0).getBclq().getSl());
dmBom.setXcshms(collect111.get(0).getBclq().getShms());
dmBom.setFds(collect111.get(0).getBclq().getDcFdZ());
}
}
dmBom.setType("X");
}else {

Loading…
Cancel
Save