|
@@ -202,8 +202,8 @@ public class PurchasePriceServiceImpl extends ServiceImpl<PurchasePriceMapper, P
|
|
|
tmp.setId(IdGenerator.generateUUID());
|
|
|
tmp.setCompId(purchasePrice.getCompId());
|
|
|
tmp.setMainId(purchasePrice.getId());
|
|
|
- this.purchasePriceDetailService.insert(tmp);
|
|
|
}
|
|
|
+ this.purchasePriceDetailService.insertBatch(purchasePrice.getDetails());
|
|
|
}
|
|
|
// 操作打印表数据
|
|
|
if(purchasePrice.getDetailPrints()!=null) {
|
|
@@ -211,8 +211,8 @@ public class PurchasePriceServiceImpl extends ServiceImpl<PurchasePriceMapper, P
|
|
|
tmp.setId(IdGenerator.generateUUID());
|
|
|
tmp.setCompId(purchasePrice.getCompId());
|
|
|
tmp.setMainId(purchasePrice.getId());
|
|
|
- this.purchasePriceDetailPrintService.insert(tmp);
|
|
|
}
|
|
|
+ this.purchasePriceDetailPrintService.insertBatch(purchasePrice.getDetailPrints());
|
|
|
}
|
|
|
boolean isStartWorkflow = StringUtils.isBlank(purchasePrice.getWorkflowId());
|
|
|
if(StatusEnum.PURCHASE_FAILED.getFlag().equals(purchasePrice.getStatusFlag())) {
|