|
@@ -3406,14 +3406,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(bBSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3451,14 +3451,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(yZSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3496,14 +3496,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(dYSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3541,14 +3541,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(jRSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3587,14 +3587,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(yZSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3632,14 +3632,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(dYSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3677,14 +3677,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(jRSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3723,14 +3723,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(bBSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3768,14 +3768,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(dYSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3813,14 +3813,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(jRSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3859,14 +3859,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(bBSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3904,14 +3904,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(yZSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3949,14 +3949,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(jRSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -3996,14 +3996,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(bBSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4041,14 +4041,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(yZSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4086,14 +4086,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(dYSegmentList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4147,14 +4147,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(fourAreaList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4192,14 +4192,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(fourAreaList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4237,14 +4237,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(fourAreaList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4282,14 +4282,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = Calculation(fourAreaList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4386,14 +4386,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(bBList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4431,14 +4431,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(yZList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4476,14 +4476,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(dYList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4521,14 +4521,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(jRList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4567,14 +4567,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(yZList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4612,14 +4612,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(dYList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4657,14 +4657,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(jRList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4703,14 +4703,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(bBList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4748,14 +4748,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(dYList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4793,14 +4793,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(jRList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4839,14 +4839,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(bBList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4884,14 +4884,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(yZList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4929,14 +4929,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(jRList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -4975,14 +4975,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(bBList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -5020,14 +5020,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(yZList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -5065,14 +5065,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(dYList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -5125,14 +5125,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(fourRepList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -5170,14 +5170,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(fourRepList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -5215,14 +5215,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(fourRepList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -5260,14 +5260,14 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
//利库数量
|
|
|
BigDecimal niches = BigDecimal.valueOf(pool.getNumberOfNiches());
|
|
|
//库存总量
|
|
|
- BigDecimal amount = BigDecimal.valueOf(pool.getInventoryAmount());
|
|
|
+ BigDecimal amount = BigDecimal.valueOf(pool.getLengthOfCable());
|
|
|
if (amount.compareTo(niches) == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过物料编码,扩展编码,是否完成利库,获取符合当前利库线段数据的项目集合数据
|
|
|
calculation = CalculationRep(fourRepList, poolCode, poExCode);
|
|
|
//返回最优解
|
|
|
- bestChose = optimalUtil.getOptimal(pool.getInventoryAmount(),calculation);;;
|
|
|
+ bestChose = optimalUtil.getOptimal(pool.getLengthOfCable(),calculation);;;
|
|
|
//计算最优解
|
|
|
if (bestChose.size() > 0) {
|
|
|
for (MaterialReportDetails a :
|
|
@@ -5666,7 +5666,7 @@ public class MaterialReportDetailsController extends BaseController {
|
|
|
Comparator<LiKuResourcePool> reversed = Comparator.comparing(LiKuResourcePool::getDaysStorage).reversed();
|
|
|
Comparator<LiKuResourcePool> comparator = Comparator.comparing(LiKuResourcePool::getInventoryAmount).reversed();
|
|
|
Comparator<LiKuResourcePool> poolComparator = Comparator.comparing(LiKuResourcePool::getBatch);
|
|
|
- Comparator<LiKuResourcePool> beComparator = Comparator.comparing(LiKuResourcePool::getSegBelongs);
|
|
|
+ Comparator<LiKuResourcePool> beComparator = Comparator.comparing(LiKuResourcePool::getLengthOfCable);
|
|
|
bBNonPoolList.sort(reversed.thenComparing(comparator).thenComparing(poolComparator).thenComparing(beComparator));
|
|
|
}
|
|
|
|