master
xhj 2 years ago
parent b1e5314c6a
commit 1da25624bd

@ -1405,6 +1405,7 @@ public class BomUploadServiceImpl {
Comparator.comparing( Comparator.comparing(
tc -> tc.getTjb().getWpgg() + ";" + tc.getTjb().getWpxh() + ";" + tc.getTjb().getTzbh()))), ArrayList::new)); tc -> tc.getTjb().getWpgg() + ";" + tc.getTjb().getWpxh() + ";" + tc.getTjb().getTzbh()))), ArrayList::new));
collect.forEach(i -> { collect.forEach(i -> {
if(null !=i.getTjb()){
DmBchxylp e = i.getTjb(); DmBchxylp e = i.getTjb();
if (StringUtils.isNotBlank(e.getWpgg())) { if (StringUtils.isNotBlank(e.getWpgg())) {
DmBom dmBom = new DmBom(); DmBom dmBom = new DmBom();
@ -1465,9 +1466,12 @@ public class BomUploadServiceImpl {
} }
adds.add(dmBom); adds.add(dmBom);
} }
}
}); });
} else { } else {
list.forEach(i -> { list.forEach(i -> {
if(null!= i.getTlt()){
DmBchxmxp e = i.getTlt(); DmBchxmxp e = i.getTlt();
if (StringUtils.isNotBlank(e.getWpggZ())) { if (StringUtils.isNotBlank(e.getWpggZ())) {
DmBom dmBom = new DmBom(); DmBom dmBom = new DmBom();
@ -1531,6 +1535,9 @@ public class BomUploadServiceImpl {
adds.add(dmBom); adds.add(dmBom);
} }
}
}); });
} }
dmBomService.insertBoms(adds); dmBomService.insertBoms(adds);

@ -62,8 +62,9 @@ public class DmBomServiceImpl extends ServiceImpl<DmBomMapper, DmBom> implements
// }else{ // }else{
List<DmBom> list = this.list(new QueryWrapper<DmBom>().eq("dcch", map.get("dcch")) List<DmBom> list = this.list(new QueryWrapper<DmBom>().eq("dcch", map.get("dcch"))
.eq(StrUtil.isNotEmpty((String) map.get("fd")), "fd", map.get("dcfd")) .eq(StrUtil.isNotEmpty((String) map.get("fd")), "fd", map.get("dcfd"))
.eq(StrUtil.isNotEmpty((String) map.get("pl")), "fd", map.get("dcpl")) .eq(StrUtil.isNotEmpty((String) map.get("dcpl")), "pl", map.get("dcpl"))
.eq(StrUtil.isNotEmpty((String) map.get("zt")), "zt", map.get("zt")) .eq(StrUtil.isNotEmpty((String) map.get("zt")), "zt", map.get("zt"))
.orderBy(true,true,"pl","fd")
); );
return list; return list;
// } // }

@ -116,7 +116,9 @@
<if test=" zzcj!=null and zzcj!=''"> <if test=" zzcj!=null and zzcj!=''">
and DM_BCLQJBP.zzcj=#{zzcj} and DM_BCLQJBP.zzcj=#{zzcj}
</if> </if>
<if test=" dcfd!=null and dcfd!=''">
and DM_BCLQMXP.DC_FD like'%'+#{dcfd}+'%'
</if>
<if test=" delx!=null and delx!=''"> <if test=" delx!=null and delx!=''">
and DM_BCLQJBP.DELX=#{delx} and DM_BCLQJBP.DELX=#{delx}

Loading…
Cancel
Save