1.炉批号兼容处理

master
董哲奇 4 months ago
parent 96b1206c4b
commit 08692701ff

@ -279,10 +279,12 @@ public class ZyjhController {
String mpDhsjDhh = zyjhService.getMpDhsjDhh(); String mpDhsjDhh = zyjhService.getMpDhsjDhh();
for (int j = 0; j < ljList.size(); j++) { for (int j = 0; j < ljList.size(); j++) {
DmYdjhLj item2 = ljList.get(j); DmYdjhLj item2 = ljList.get(j);
MpDhsj mpDhsj = MpDhsj.of(item2, date, item.getSllph()); if (StrUtil.isNotEmpty(item.getSllph())){//兼容没有炉批号的老数据用
String xh = StrUtil.padPre(j + 1 + "", 3, "0"); MpDhsj mpDhsj = MpDhsj.of(item2, date, item.getSllph());
mpDhsj.setDhh(mpDhsjDhh+"-"+xh); String xh = StrUtil.padPre(j + 1 + "", 3, "0");
collect.add(mpDhsj); mpDhsj.setDhh(mpDhsjDhh+"-"+xh);
collect.add(mpDhsj);
}
} }
mpDhsjServcie.saveBatch(collect); mpDhsjServcie.saveBatch(collect);
} }

Loading…
Cancel
Save