|
@@ -4890,6 +4890,30 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
}
|
|
}
|
|
//常用库出库
|
|
//常用库出库
|
|
else if ("1".equals(warehouseInOutInfo.getInOutFlag()) && "1".equals(warehouseBaseInfo.getWarehouseType())) {
|
|
else if ("1".equals(warehouseInOutInfo.getInOutFlag()) && "1".equals(warehouseBaseInfo.getWarehouseType())) {
|
|
|
|
+ if (warehouseInOutInfo.getWeighingManagement() != null) {
|
|
|
|
+ //毛重检斤
|
|
|
|
+ //状态改为已称毛重
|
|
|
|
+ WeighingManagement weighingManagement = warehouseInOutInfo.getWeighingManagement();
|
|
|
|
+ weighingManagement.setStatus(StatusEnum.WEIGHED_GROSS_WEIGHT.getName());
|
|
|
|
+ weighingManagement.setStatusFlag(StatusEnum.WEIGHED_GROSS_WEIGHT.getFlag());
|
|
|
|
+ weighingManagement.setGrossDate(new Date());
|
|
|
|
+ weighingManagement.setSecretaryWeigher(commonStaff.getStaffName());
|
|
|
|
+ //质检信息
|
|
|
|
+ QualityInspectionManagement qualityInspectionManagement = qualityInspectionManagementService.selectOne(new EntityWrapper<QualityInspectionManagement>()
|
|
|
|
+ .eq("relation_id", weighingManagement.getRelationId())
|
|
|
|
+ .eq("comp_id", commonStaff.getCompId()));
|
|
|
|
+ if (qualityInspectionManagement != null) {
|
|
|
|
+ qualityInspectionManagement.setCarNumber(warehouseInOutInfo.getCarNo());
|
|
|
|
+ //状态改为已称毛重
|
|
|
|
+// qualityInspectionManagement.setStatus(StatusEnum.WEIGHED_GROSS_WEIGHT.getName());
|
|
|
|
+// qualityInspectionManagement.setStatusFlag(StatusEnum.WEIGHED_GROSS_WEIGHT.getFlag());
|
|
|
|
+ qualityInspectionManagementService.updateById(qualityInspectionManagement);
|
|
|
|
+ }
|
|
|
|
+ if (weighingManagement.getGrossWeight() == null || weighingManagement.getGrossWeight() == 0) {
|
|
|
|
+ throw new YException(YExceptionEnum.GROSSWEIGHT_NULL);
|
|
|
|
+ }
|
|
|
|
+ weighingManagementService.updateById(weighingManagement);
|
|
|
|
+ }
|
|
//常用库销售出库类型
|
|
//常用库销售出库类型
|
|
if ("1".equals(warehouseInOutInfo.getInOutTypeKey())) {
|
|
if ("1".equals(warehouseInOutInfo.getInOutTypeKey())) {
|
|
//查出库任务关联的货源
|
|
//查出库任务关联的货源
|
|
@@ -5475,30 +5499,6 @@ public class WarehouseInOutInfoServiceImpl extends ServiceImpl<WarehouseInOutInf
|
|
// }
|
|
// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (warehouseInOutInfo.getWeighingManagement() != null) {
|
|
|
|
- //毛重检斤
|
|
|
|
- //状态改为已称毛重
|
|
|
|
- WeighingManagement weighingManagement = warehouseInOutInfo.getWeighingManagement();
|
|
|
|
- weighingManagement.setStatus(StatusEnum.WEIGHED_GROSS_WEIGHT.getName());
|
|
|
|
- weighingManagement.setStatusFlag(StatusEnum.WEIGHED_GROSS_WEIGHT.getFlag());
|
|
|
|
- weighingManagement.setGrossDate(new Date());
|
|
|
|
- weighingManagement.setSecretaryWeigher(commonStaff.getStaffName());
|
|
|
|
- //质检信息
|
|
|
|
- QualityInspectionManagement qualityInspectionManagement = qualityInspectionManagementService.selectOne(new EntityWrapper<QualityInspectionManagement>()
|
|
|
|
- .eq("relation_id", weighingManagement.getRelationId())
|
|
|
|
- .eq("comp_id", commonStaff.getCompId()));
|
|
|
|
- if (qualityInspectionManagement != null) {
|
|
|
|
- qualityInspectionManagement.setCarNumber(warehouseInOutInfo.getCarNo());
|
|
|
|
- //状态改为已称毛重
|
|
|
|
-// qualityInspectionManagement.setStatus(StatusEnum.WEIGHED_GROSS_WEIGHT.getName());
|
|
|
|
-// qualityInspectionManagement.setStatusFlag(StatusEnum.WEIGHED_GROSS_WEIGHT.getFlag());
|
|
|
|
- qualityInspectionManagementService.updateById(qualityInspectionManagement);
|
|
|
|
- }
|
|
|
|
- if (weighingManagement.getGrossWeight() == null || weighingManagement.getGrossWeight() == 0) {
|
|
|
|
- throw new YException(YExceptionEnum.GROSSWEIGHT_NULL);
|
|
|
|
- }
|
|
|
|
- weighingManagementService.updateById(weighingManagement);
|
|
|
|
- }
|
|
|
|
//运费大于0生成运费结算报表数据
|
|
//运费大于0生成运费结算报表数据
|
|
// if (warehouseInOutInfo.getFreight() != null && warehouseInOutInfo.getFreight() > 0) {
|
|
// if (warehouseInOutInfo.getFreight() != null && warehouseInOutInfo.getFreight() > 0) {
|
|
// //生成汽运报表
|
|
// //生成汽运报表
|