1.炉批号兼容处理

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

@ -279,11 +279,13 @@ 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);
if (StrUtil.isNotEmpty(item.getSllph())){//兼容没有炉批号的老数据用
MpDhsj mpDhsj = MpDhsj.of(item2, date, item.getSllph()); MpDhsj mpDhsj = MpDhsj.of(item2, date, item.getSllph());
String xh = StrUtil.padPre(j + 1 + "", 3, "0"); String xh = StrUtil.padPre(j + 1 + "", 3, "0");
mpDhsj.setDhh(mpDhsjDhh+"-"+xh); mpDhsj.setDhh(mpDhsjDhh+"-"+xh);
collect.add(mpDhsj); collect.add(mpDhsj);
} }
}
mpDhsjServcie.saveBatch(collect); mpDhsjServcie.saveBatch(collect);
} }
} }

Loading…
Cancel
Save