|
|
@ -1606,29 +1606,31 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
int i = new BigDecimal(excelInfo.getStayDetermineMoney()).compareTo(BigDecimal.ZERO); |
|
|
|
//上传返利金额
|
|
|
|
BigDecimal scflje = new BigDecimal(excelInfo.getUploadMoney()).subtract(new BigDecimal(excelInfo.getStayDetermineMoney())).subtract(new BigDecimal(excelInfo.getOnceTreatCost())).subtract(new BigDecimal(excelInfo.getOnceSuppCost())); |
|
|
|
//预提返利-其中预提费用
|
|
|
|
BigDecimal ytfy = new BigDecimal(excelInfo.getEstimateRebate()).subtract(new BigDecimal(excelInfo.getWithholdCost())); |
|
|
|
//调整金额
|
|
|
|
BigDecimal tzje = new BigDecimal(excelInfo.getUploadMoney()).subtract(new BigDecimal(excelInfo.getStayDetermineMoney())).subtract(new BigDecimal(excelInfo.getOnceTreatCost())).subtract(new BigDecimal(excelInfo.getOnceSuppCost())).subtract(new BigDecimal(excelInfo.getEstimateRebate())).add(new BigDecimal(excelInfo.getWithholdCost())); |
|
|
|
if (i > 0) { |
|
|
|
excelInfo.setIsAdjustment("否"); |
|
|
|
excelInfo.setAdjustmentMoney("0"); |
|
|
|
} else if (i == 0) { |
|
|
|
if (scflje.compareTo(ytfy) > 0) { |
|
|
|
excelInfo.setIsAdjustment("是"); |
|
|
|
excelInfo.setAdjustmentMoney(tzje.toString()); |
|
|
|
} else if (scflje.compareTo(ytfy) == 0) { |
|
|
|
excelInfo.setIsAdjustment("是"); |
|
|
|
excelInfo.setAdjustmentMoney(tzje.toString()); |
|
|
|
} else if (scflje.compareTo(ytfy) < 0) { |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getUploadDate()) && StringUtils.isNotBlank(excelInfo.getUploadMoney())){ |
|
|
|
int i = new BigDecimal(excelInfo.getStayDetermineMoney()).compareTo(BigDecimal.ZERO); |
|
|
|
//上传返利金额
|
|
|
|
BigDecimal scflje = new BigDecimal(excelInfo.getUploadMoney()).subtract(new BigDecimal(excelInfo.getStayDetermineMoney())).subtract(new BigDecimal(excelInfo.getOnceTreatCost())).subtract(new BigDecimal(excelInfo.getOnceSuppCost())); |
|
|
|
//预提返利-其中预提费用
|
|
|
|
BigDecimal ytfy = new BigDecimal(excelInfo.getEstimateRebate()).subtract(new BigDecimal(excelInfo.getWithholdCost())); |
|
|
|
//调整金额
|
|
|
|
BigDecimal tzje = new BigDecimal(excelInfo.getUploadMoney()).subtract(new BigDecimal(excelInfo.getStayDetermineMoney())).subtract(new BigDecimal(excelInfo.getOnceTreatCost())).subtract(new BigDecimal(excelInfo.getOnceSuppCost())).subtract(new BigDecimal(excelInfo.getEstimateRebate())).add(new BigDecimal(excelInfo.getWithholdCost())); |
|
|
|
if (i > 0) { |
|
|
|
excelInfo.setIsAdjustment("否"); |
|
|
|
excelInfo.setAdjustmentMoney("0"); |
|
|
|
} else if (i == 0) { |
|
|
|
if (scflje.compareTo(ytfy) > 0) { |
|
|
|
excelInfo.setIsAdjustment("是"); |
|
|
|
excelInfo.setAdjustmentMoney(tzje.toString()); |
|
|
|
} else if (scflje.compareTo(ytfy) == 0) { |
|
|
|
excelInfo.setIsAdjustment("是"); |
|
|
|
excelInfo.setAdjustmentMoney(tzje.toString()); |
|
|
|
} else if (scflje.compareTo(ytfy) < 0) { |
|
|
|
excelInfo.setIsAdjustment("否"); |
|
|
|
excelInfo.setAdjustmentMoney("0"); |
|
|
|
} |
|
|
|
} |
|
|
|
excelInfo.setDiffAmount(scflje.subtract(ytfy).toString()); |
|
|
|
} |
|
|
|
excelInfo.setDiffAmount(scflje.subtract(ytfy).toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
StringBuffer sbcheck1 = new StringBuffer(); |
|
|
@ -2097,29 +2099,31 @@ public class ScmVehRebateService extends MybatisBaseService<ScmVehRebateMapper, |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
int i = new BigDecimal(excelInfo.getStayDetermineMoney()).compareTo(BigDecimal.ZERO); |
|
|
|
//上传返利金额
|
|
|
|
BigDecimal scflje = new BigDecimal(excelInfo.getUploadMoney()).add(new BigDecimal(excelInfo.getSecondaryUploadMoney())).subtract(new BigDecimal(excelInfo.getStayDetermineMoney())).subtract(new BigDecimal(excelInfo.getQzMoney())).subtract(new BigDecimal(excelInfo.getSecondTreatCost())).subtract(new BigDecimal(excelInfo.getSecondSuppCost())); |
|
|
|
//预提返利-其中预提费用
|
|
|
|
BigDecimal ytfy = new BigDecimal(excelInfo.getEstimateRebate()).subtract(new BigDecimal(excelInfo.getWithholdCost())); |
|
|
|
//调整金额
|
|
|
|
BigDecimal tzje = new BigDecimal(excelInfo.getUploadMoney()).add(new BigDecimal(excelInfo.getSecondaryUploadMoney())).subtract(new BigDecimal(excelInfo.getStayDetermineMoney())).subtract(new BigDecimal(excelInfo.getQzMoney())).subtract(new BigDecimal(excelInfo.getSecondTreatCost())).subtract(new BigDecimal(excelInfo.getSecondSuppCost())).subtract(new BigDecimal(excelInfo.getEstimateRebate())).add(new BigDecimal(excelInfo.getWithholdCost())); |
|
|
|
if (i > 0) { |
|
|
|
excelInfo.setIsAdjustment("否"); |
|
|
|
excelInfo.setAdjustmentMoney("0"); |
|
|
|
} else if (i == 0) { |
|
|
|
if (scflje.compareTo(ytfy) > 0) { |
|
|
|
excelInfo.setIsAdjustment("是"); |
|
|
|
excelInfo.setAdjustmentMoney(tzje.toString()); |
|
|
|
} else if (scflje.compareTo(ytfy) == 0) { |
|
|
|
excelInfo.setIsAdjustment("是"); |
|
|
|
excelInfo.setAdjustmentMoney(tzje.toString()); |
|
|
|
} else if (scflje.compareTo(ytfy) < 0) { |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getSecondaryUploadDate()) && StringUtils.isNotBlank(excelInfo.getSecondaryUploadMoney())){ |
|
|
|
int i = new BigDecimal(excelInfo.getStayDetermineMoney()).compareTo(BigDecimal.ZERO); |
|
|
|
//上传返利金额
|
|
|
|
BigDecimal scflje = new BigDecimal(excelInfo.getUploadMoney()).add(new BigDecimal(excelInfo.getSecondaryUploadMoney())).subtract(new BigDecimal(excelInfo.getStayDetermineMoney())).subtract(new BigDecimal(excelInfo.getQzMoney())).subtract(new BigDecimal(excelInfo.getSecondTreatCost())).subtract(new BigDecimal(excelInfo.getSecondSuppCost())); |
|
|
|
//预提返利-其中预提费用
|
|
|
|
BigDecimal ytfy = new BigDecimal(excelInfo.getEstimateRebate()).subtract(new BigDecimal(excelInfo.getWithholdCost())); |
|
|
|
//调整金额
|
|
|
|
BigDecimal tzje = new BigDecimal(excelInfo.getUploadMoney()).add(new BigDecimal(excelInfo.getSecondaryUploadMoney())).subtract(new BigDecimal(excelInfo.getStayDetermineMoney())).subtract(new BigDecimal(excelInfo.getQzMoney())).subtract(new BigDecimal(excelInfo.getSecondTreatCost())).subtract(new BigDecimal(excelInfo.getSecondSuppCost())).subtract(new BigDecimal(excelInfo.getEstimateRebate())).add(new BigDecimal(excelInfo.getWithholdCost())); |
|
|
|
if (i > 0) { |
|
|
|
excelInfo.setIsAdjustment("否"); |
|
|
|
excelInfo.setAdjustmentMoney("0"); |
|
|
|
} else if (i == 0) { |
|
|
|
if (scflje.compareTo(ytfy) > 0) { |
|
|
|
excelInfo.setIsAdjustment("是"); |
|
|
|
excelInfo.setAdjustmentMoney(tzje.toString()); |
|
|
|
} else if (scflje.compareTo(ytfy) == 0) { |
|
|
|
excelInfo.setIsAdjustment("是"); |
|
|
|
excelInfo.setAdjustmentMoney(tzje.toString()); |
|
|
|
} else if (scflje.compareTo(ytfy) < 0) { |
|
|
|
excelInfo.setIsAdjustment("否"); |
|
|
|
excelInfo.setAdjustmentMoney("0"); |
|
|
|
} |
|
|
|
} |
|
|
|
excelInfo.setDiffAmount(scflje.subtract(ytfy).toString()); |
|
|
|
} |
|
|
|
excelInfo.setDiffAmount(scflje.subtract(ytfy).toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
StringBuffer sbcheck1 = new StringBuffer(); |
|
|
|