|
|
@ -601,7 +601,10 @@ public class QualityOrderServiceImpl implements IQualityOrderService |
|
|
|
qualityOrderReportUnqualified.setMaterialName(warehouseStorageOrderDetail.getMaterialName()); |
|
|
|
qualityOrderReportUnqualified.setCreateTime(new Date()); |
|
|
|
qualityOrderReportUnqualified.setCreateBy(warehouseStorageOrderDetail.getCreateBy()); |
|
|
|
orderReportUnqualifiedMapper.insertQualityOrderReportUnqualified(qualityOrderReportUnqualified); |
|
|
|
int insertQualityOrderReportUnqualifiedResult = orderReportUnqualifiedMapper.insertQualityOrderReportUnqualified(qualityOrderReportUnqualified); |
|
|
|
if (insertQualityOrderReportUnqualifiedResult <= 0){ |
|
|
|
throw new BusinessException("插入品质单不合格分类表失败"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -619,7 +622,10 @@ public class QualityOrderServiceImpl implements IQualityOrderService |
|
|
|
qualityOrderReport.setQualityHasqualifiedNum(warehouseStorageOrderDetail.getQualityHasQualifiedNum()); |
|
|
|
qualityOrderReport.setCreateTime(new Date()); |
|
|
|
qualityOrderReport.setCreateBy(warehouseStorageOrderDetail.getCreateBy()); |
|
|
|
orderReportMapper.insertQualityOrderReport(qualityOrderReport); |
|
|
|
int insertResult = orderReportMapper.insertQualityOrderReport(qualityOrderReport); |
|
|
|
if (insertResult <= 0){ |
|
|
|
throw new BusinessException("插入品质单报告失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//品质单详情表
|
|
|
@ -653,7 +659,10 @@ public class QualityOrderServiceImpl implements IQualityOrderService |
|
|
|
qualityOrderDetail.setQualityHasqualifiedNum(warehouseStorageOrderDetail.getQualityHasQualifiedNum()); |
|
|
|
qualityOrderDetail.setCreateTime(new Date()); |
|
|
|
qualityOrderDetail.setCreateBy(warehouseStorageOrderDetail.getCreateBy()); |
|
|
|
orderDetailMapper.insertQualityOrderDetail(qualityOrderDetail); |
|
|
|
int insertResult= orderDetailMapper.insertQualityOrderDetail(qualityOrderDetail); |
|
|
|
if (insertResult <= 0){ |
|
|
|
throw new BusinessException("插入品质单详情失败"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|