Browse Source

核销费用率异常

v1.0
15989082884@163.com 2 years ago
parent
commit
0ebfdfab89
  1. 2
      src/main/java/com/qs/serve/modules/tbs/service/TbsCostApplyService.java
  2. 2
      src/main/java/com/qs/serve/modules/tbs/service/impl/TbsCostApplyServiceImpl.java
  3. 20
      src/main/java/com/qs/serve/modules/vtb/service/impl/VtbVerificationServiceImpl.java

2
src/main/java/com/qs/serve/modules/tbs/service/TbsCostApplyService.java

@ -72,5 +72,7 @@ public interface TbsCostApplyService extends IService<TbsCostApply> {
*/ */
void flushCostStatus(Long costApplyId,boolean isContractFlag); void flushCostStatus(Long costApplyId,boolean isContractFlag);
void buildMainData4ROI(TbsCostApply tbsCostApply, Map<String, Object> data);
} }

2
src/main/java/com/qs/serve/modules/tbs/service/impl/TbsCostApplyServiceImpl.java

@ -965,7 +965,7 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC
* @param tbsCostApply * @param tbsCostApply
* @param data * @param data
*/ */
private void buildMainData4ROI(TbsCostApply tbsCostApply, Map<String, Object> data) { public void buildMainData4ROI(TbsCostApply tbsCostApply, Map<String, Object> data) {
YtdQtdToOAVo ytdQtdToOAVo = birRoiRateService.buildYtdAndQtdData(tbsCostApply); YtdQtdToOAVo ytdQtdToOAVo = birRoiRateService.buildYtdAndQtdData(tbsCostApply);
data.put("ytdCusExpenseRate",ytdQtdToOAVo.getYtdCustomerPercent()==null? data.put("ytdCusExpenseRate",ytdQtdToOAVo.getYtdCustomerPercent()==null?
"0":BigDecimal.valueOf(ytdQtdToOAVo.getYtdCustomerPercent()).setScale(2, RoundingMode.HALF_UP)+""); "0":BigDecimal.valueOf(ytdQtdToOAVo.getYtdCustomerPercent()).setScale(2, RoundingMode.HALF_UP)+"");

20
src/main/java/com/qs/serve/modules/vtb/service/impl/VtbVerificationServiceImpl.java

@ -823,23 +823,9 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe
data.put("jinE", verification.getAmount().toString()); data.put("jinE", verification.getAmount().toString());
data.put("money", verification.getAmount().toString()); data.put("money", verification.getAmount().toString());
//读取费用申请时的费率 //读取费费率
LambdaQueryWrapper<TbsCostPercent> costPercentLambdaQueryWrapper = new LambdaQueryWrapper<>(); TbsCostApply tbsCostApply = costApplyService.getById(activity.getCostApplyId());
costPercentLambdaQueryWrapper.eq(TbsCostPercent::getCostApplyId, activity.getCostApplyId()); costApplyService.buildMainData4ROI(tbsCostApply,data);
List<TbsCostPercent> costPercentList = costPercentMapper.selectList(costPercentLambdaQueryWrapper);
if(costPercentList.size()>0){
TbsCostPercent costPercent = costPercentList.get(0);
data.put("ytdCusExpenseRate",costPercent.getYtdCustomerPercent());
data.put("ytdEmpExpenseRate",costPercent.getYtdUserPercent());
data.put("ytdAdminiExpenseRate",costPercent.getYtdRegionPercent());
data.put("ytdSalesExpenseRate",costPercent.getYtdRegion2Percent());
data.put("cusExpenseRate",costPercent.getQtdCustomerPercent());
data.put("empExpenseRate",costPercent.getQtdUserPercent());
data.put("salesExpenseRate",costPercent.getQtdRegionPercent());
data.put("adminiExpenseRate",costPercent.getQtdRegion2Percent());
data.put("budgetExpenseRate",costPercent.getQtdBudgetPercent());
data.put("ytdBudgetExpenseRate",costPercent.getYtdBudgetPercent());
}
//拓展添加审批关联 //拓展添加审批关联
data.put("biz_region", bizRegionNames); data.put("biz_region", bizRegionNames);

Loading…
Cancel
Save