|
@@ -210,10 +210,13 @@ public class QyRecordInfoServiceImpl extends ServiceImpl<QyRecordInfoMapper, QyR
|
|
//料件信息
|
|
//料件信息
|
|
List<QyRecardBodyEditParam> bodyAddParams = qyRecordInfoEditParam.getQyRecardBodyEditParams();
|
|
List<QyRecardBodyEditParam> bodyAddParams = qyRecordInfoEditParam.getQyRecardBodyEditParams();
|
|
if (CollectionUtil.isNotEmpty(bodyAddParams)){
|
|
if (CollectionUtil.isNotEmpty(bodyAddParams)){
|
|
|
|
+ AtomicInteger i = new AtomicInteger();
|
|
bodyAddParams.stream().forEach(qyRecardBodyAddParam -> {
|
|
bodyAddParams.stream().forEach(qyRecardBodyAddParam -> {
|
|
qyRecardBodyAddParam.setQyRecordInfoId(qyRecordInfo.getId());
|
|
qyRecardBodyAddParam.setQyRecordInfoId(qyRecordInfo.getId());
|
|
QyRecardBody qyRecardBody = BeanUtil.toBean(qyRecardBodyAddParam, QyRecardBody.class);
|
|
QyRecardBody qyRecardBody = BeanUtil.toBean(qyRecardBodyAddParam, QyRecardBody.class);
|
|
|
|
+ String productNum = BusinessIdGenerator.generateBusinessIdForProductNum(i.get());
|
|
qyRecardBody.setQyRecordInfoId(qyRecordInfo.getId());
|
|
qyRecardBody.setQyRecordInfoId(qyRecordInfo.getId());
|
|
|
|
+ qyRecardBody.setProductNum(productNum);
|
|
qyRecardBody.setId(null);
|
|
qyRecardBody.setId(null);
|
|
qyRecardBodyService.save(qyRecardBody);
|
|
qyRecardBodyService.save(qyRecardBody);
|
|
});
|
|
});
|