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

Loading…
Cancel
Save