|
@ -112,7 +112,7 @@ public class BirRoiRateServiceImpl extends ServiceImpl<BirRoiRateMapper,BirRoiRa |
|
|
supplierCodeList.add(bmsSupplier.getCode()); |
|
|
supplierCodeList.add(bmsSupplier.getCode()); |
|
|
costDTO.setSupplierId(supplierId); |
|
|
costDTO.setSupplierId(supplierId); |
|
|
}else if (loadType.equals(1)){ |
|
|
}else if (loadType.equals(1)){ |
|
|
//1->申请人的客户(不含当前客户)
|
|
|
//1->申请人的客户
|
|
|
String userId = AuthContextUtils.getSysUserId(); |
|
|
String userId = AuthContextUtils.getSysUserId(); |
|
|
costDTO.setNotSupplierId(supplierId); |
|
|
costDTO.setNotSupplierId(supplierId); |
|
|
costDTO.setUserId(userId); |
|
|
costDTO.setUserId(userId); |
|
@ -125,7 +125,7 @@ public class BirRoiRateServiceImpl extends ServiceImpl<BirRoiRateMapper,BirRoiRa |
|
|
.distinct().collect(Collectors.toList()); |
|
|
.distinct().collect(Collectors.toList()); |
|
|
supplierCodeList.addAll(supplierCodes); |
|
|
supplierCodeList.addAll(supplierCodes); |
|
|
}else if(loadType.equals(2)){ |
|
|
}else if(loadType.equals(2)){ |
|
|
//2->客户的行政区域(不含当前客户)
|
|
|
//2->客户的行政区域
|
|
|
if(checkNotNullVale(bmsSupplier.getRegion2Fourthly())){ |
|
|
if(checkNotNullVale(bmsSupplier.getRegion2Fourthly())){ |
|
|
lqw.eq(BmsSupplier::getRegion2Fourthly,bmsSupplier.getRegion2Fourthly()); |
|
|
lqw.eq(BmsSupplier::getRegion2Fourthly,bmsSupplier.getRegion2Fourthly()); |
|
|
}else if (checkNotNullVale(bmsSupplier.getRegion2Third())){ |
|
|
}else if (checkNotNullVale(bmsSupplier.getRegion2Third())){ |
|
@ -136,7 +136,7 @@ public class BirRoiRateServiceImpl extends ServiceImpl<BirRoiRateMapper,BirRoiRa |
|
|
lqw.eq(BmsSupplier::getRegion2First,bmsSupplier.getRegion2First()); |
|
|
lqw.eq(BmsSupplier::getRegion2First,bmsSupplier.getRegion2First()); |
|
|
} |
|
|
} |
|
|
}else if(loadType.equals(3)){ |
|
|
}else if(loadType.equals(3)){ |
|
|
//3->客户的销售区域(不含当前客户)
|
|
|
//3->客户的销售区域
|
|
|
if(checkNotNullVale(bmsSupplier.getRegionFourthly())){ |
|
|
if(checkNotNullVale(bmsSupplier.getRegionFourthly())){ |
|
|
lqw.eq(BmsSupplier::getRegionFourthly,bmsSupplier.getRegionFourthly()); |
|
|
lqw.eq(BmsSupplier::getRegionFourthly,bmsSupplier.getRegionFourthly()); |
|
|
}else if (checkNotNullVale(bmsSupplier.getRegionThird())){ |
|
|
}else if (checkNotNullVale(bmsSupplier.getRegionThird())){ |
|
@ -174,7 +174,7 @@ public class BirRoiRateServiceImpl extends ServiceImpl<BirRoiRateMapper,BirRoiRa |
|
|
for (ErpDispatchSumVo dispatchSumVo : dispatchSumVos) { |
|
|
for (ErpDispatchSumVo dispatchSumVo : dispatchSumVos) { |
|
|
if(dispatchSumVo.getYearMonth().equals(costItemVo.getYearMonth())){ |
|
|
if(dispatchSumVo.getYearMonth().equals(costItemVo.getYearMonth())){ |
|
|
// 预估金额(后追加功能,发货金额=原发货金额+预估金额)
|
|
|
// 预估金额(后追加功能,发货金额=原发货金额+预估金额)
|
|
|
costItemVo.setDispatchAmt(dispatchSumVo.getDispatchSumCost().add(costItemVo.getPreAmt())); |
|
|
costItemVo.setDispatchAmt(dispatchSumVo.getDispatchSumCost()); |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|