|
@ -193,10 +193,12 @@ public class QualityOrderServiceImpl implements IQualityOrderService |
|
|
qualityOrder.setQualityStatus("0"); |
|
|
qualityOrder.setQualityStatus("0"); |
|
|
qualityOrder.setQualityOrderType("0"); |
|
|
qualityOrder.setQualityOrderType("0"); |
|
|
qualityOrder.setQualityStorageStatus("0"); |
|
|
qualityOrder.setQualityStorageStatus("0"); |
|
|
qualityOrder.setThisArrivedNum(warehouseStorageOrder.getActualArrivedNum()); |
|
|
//qualityOrder.setThisArrivedNum(warehouseStorageOrder.getActualArrivedNum());
|
|
|
qualityOrder.setWarehouseCode(warehouseStorageOrder.getWarehouseCode()); |
|
|
qualityOrder.setWarehouseCode(warehouseStorageOrder.getWarehouseCode()); |
|
|
qualityOrder.setWarehouseName(warehouseStorageOrder.getWarehouseName()); |
|
|
qualityOrder.setWarehouseName(warehouseStorageOrder.getWarehouseName()); |
|
|
qualityOrder.setDeliveryInspectionTime(warehouseStorageOrder.getDeliveryInspectionTime()); |
|
|
qualityOrder.setDeliveryInspectionTime(warehouseStorageOrder.getDeliveryInspectionTime()); |
|
|
|
|
|
qualityOrder.setCreateBy(ShiroUtils.getLoginName()); |
|
|
|
|
|
qualityOrder.setCreateTime(new Date()); |
|
|
qualityOrderMapper.insertQualityOrder(qualityOrder); |
|
|
qualityOrderMapper.insertQualityOrder(qualityOrder); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -211,6 +213,7 @@ public class QualityOrderServiceImpl implements IQualityOrderService |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//品质单不合格分类表
|
|
|
private void insertQualityOrderUnqualifiedByWarehouseStorageOrder( WarehouseStorageOrderDetail warehouseStorageOrderDetail) { |
|
|
private void insertQualityOrderUnqualifiedByWarehouseStorageOrder( WarehouseStorageOrderDetail warehouseStorageOrderDetail) { |
|
|
QualityOrderReportUnqualified qualityOrderReportUnqualified = new QualityOrderReportUnqualified(); |
|
|
QualityOrderReportUnqualified qualityOrderReportUnqualified = new QualityOrderReportUnqualified(); |
|
|
//插入品质报告不合格数
|
|
|
//插入品质报告不合格数
|
|
@ -224,6 +227,7 @@ public class QualityOrderServiceImpl implements IQualityOrderService |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//品质单报告表
|
|
|
private void insertQualityOrderReportByWarehouseStorageOrder(WarehouseStorageOrderDetail warehouseStorageOrderDetail) { |
|
|
private void insertQualityOrderReportByWarehouseStorageOrder(WarehouseStorageOrderDetail warehouseStorageOrderDetail) { |
|
|
QualityOrderReport qualityOrderReport = new QualityOrderReport(); |
|
|
QualityOrderReport qualityOrderReport = new QualityOrderReport(); |
|
|
//插入品质单报告开始品质单
|
|
|
//插入品质单报告开始品质单
|
|
@ -237,6 +241,7 @@ public class QualityOrderServiceImpl implements IQualityOrderService |
|
|
orderReportMapper.insertQualityOrderReport(qualityOrderReport); |
|
|
orderReportMapper.insertQualityOrderReport(qualityOrderReport); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//品质单详情表
|
|
|
private void insertQualityOrderDetailByWarehouseStorageOrder(WarehouseStorageOrder warehouseStorageOrder, WarehouseStorageOrderDetail warehouseStorageOrderDetail, String qualityOrderCode) { |
|
|
private void insertQualityOrderDetailByWarehouseStorageOrder(WarehouseStorageOrder warehouseStorageOrder, WarehouseStorageOrderDetail warehouseStorageOrderDetail, String qualityOrderCode) { |
|
|
|
|
|
|
|
|
QualityOrderDetail qualityOrderDetail = new QualityOrderDetail(); |
|
|
QualityOrderDetail qualityOrderDetail = new QualityOrderDetail(); |
|
@ -253,6 +258,7 @@ public class QualityOrderServiceImpl implements IQualityOrderService |
|
|
qualityOrderDetail.setMaterialDescribe(warehouseStorageOrderDetail.getMaterialDescribe()); |
|
|
qualityOrderDetail.setMaterialDescribe(warehouseStorageOrderDetail.getMaterialDescribe()); |
|
|
qualityOrderDetail.setMaterialName(warehouseStorageOrderDetail.getMaterialName()); |
|
|
qualityOrderDetail.setMaterialName(warehouseStorageOrderDetail.getMaterialName()); |
|
|
qualityOrderDetail.setMaterialProcessMethod(warehouseStorageOrderDetail.getMaterialProcessMethod()); |
|
|
qualityOrderDetail.setMaterialProcessMethod(warehouseStorageOrderDetail.getMaterialProcessMethod()); |
|
|
|
|
|
//To do 缺少入库部门 ,如果后续需要从这里添加
|
|
|
qualityOrderDetail.setMaterialPhotourl(warehouseStorageOrderDetail.getMaterialPhotourl()); |
|
|
qualityOrderDetail.setMaterialPhotourl(warehouseStorageOrderDetail.getMaterialPhotourl()); |
|
|
qualityOrderDetail.setMaterialUnit(warehouseStorageOrderDetail.getMaterialUnit()); |
|
|
qualityOrderDetail.setMaterialUnit(warehouseStorageOrderDetail.getMaterialUnit()); |
|
|
qualityOrderDetail.setMaterialType(warehouseStorageOrderDetail.getMaterialType()); |
|
|
qualityOrderDetail.setMaterialType(warehouseStorageOrderDetail.getMaterialType()); |
|
|