|
|
|
@ -87,7 +87,12 @@ public class InvCountOrderDetailService extends ServiceImpl<InvCountOrderDetailM
|
|
|
|
|
for (InvCountOrderDetailEntity invCountOrderDetailEntity : countOrderDetailList) {
|
|
|
|
|
invCountOrderDetailEntity.setOrderIdFk(orderId);
|
|
|
|
|
invCountOrderDetailEntity.setId(null);
|
|
|
|
|
Integer countNum = invCountOrderDetailEntity.getCountNum();
|
|
|
|
|
if (countNum == null) {
|
|
|
|
|
invCountOrderDetailEntity.setCountNum(invCountOrderDetailEntity.getInvNum());
|
|
|
|
|
}else {
|
|
|
|
|
invCountOrderDetailEntity.setCountNum(countNum);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
invCountOrderDetailDao.insertBatch(countOrderDetailList);
|
|
|
|
|
}
|
|
|
|
|