|
|
|
@ -302,8 +302,16 @@ public class ZyjhController {
|
|
|
|
|
private void zlgzCreate(DmYdjh item,ArrayList<MpDhsj> mpDhsjSaveList){
|
|
|
|
|
List<DmYdjhLj> ljList = zyjhService.createLj(item.getDcCh(), item.getDcPl(), item.getTzbh());
|
|
|
|
|
Map<String, Object> mpsycljljbp = zyjhService.getMPSYCLJLJBP(item.getDcCh(), item.getTzbh());
|
|
|
|
|
//兼容手动处理没有上料炉批号的问题
|
|
|
|
|
if (StrUtil.isEmpty(item.getSllph())&&!ljList.isEmpty()){
|
|
|
|
|
item.setSllph(ljList.get(0).getSllph());
|
|
|
|
|
}
|
|
|
|
|
mpDhsjServcie.remove(Wrappers.<MpDhsj>lambdaQuery()
|
|
|
|
|
.eq(MpDhsj::getDcCh,item.getDcCh())
|
|
|
|
|
.eq(MpDhsj::getDcPl,item.getDcPl())
|
|
|
|
|
.eq(MpDhsj::getDcTh,item.getTzbh())
|
|
|
|
|
);
|
|
|
|
|
//质量跟踪数据
|
|
|
|
|
List<MpDhsj> collect = new ArrayList<>();
|
|
|
|
|
String date = DateUtil.date().toString("yyyy/MM/dd");
|
|
|
|
|
String mpDhsjDhh = zyjhService.getMpDhsjDhh();
|
|
|
|
|
for (int j = 0; j < ljList.size(); j++) {
|
|
|
|
@ -315,7 +323,6 @@ public class ZyjhController {
|
|
|
|
|
if (ObjUtil.isNotEmpty(mpsycljljbp)) {
|
|
|
|
|
mpDhsj.setGysbh("BZGY-"+mpsycljljbp.get("gzzx3"));
|
|
|
|
|
}
|
|
|
|
|
collect.add(mpDhsj);
|
|
|
|
|
mpDhsjSaveList.add(mpDhsj);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|