|
@ -13,8 +13,11 @@ import com.qs.serve.common.model.dto.R; |
|
|
import com.qs.serve.common.util.*; |
|
|
import com.qs.serve.common.util.*; |
|
|
import com.qs.serve.common.util.model.DateFormatString; |
|
|
import com.qs.serve.common.util.model.DateFormatString; |
|
|
import com.qs.serve.modules.bir.entity.BirActivityCenterGoods; |
|
|
import com.qs.serve.modules.bir.entity.BirActivityCenterGoods; |
|
|
|
|
|
import com.qs.serve.modules.bir.entity.BirBaseActivity; |
|
|
import com.qs.serve.modules.bir.entity.dto.BirRoiCostDTO; |
|
|
import com.qs.serve.modules.bir.entity.dto.BirRoiCostDTO; |
|
|
import com.qs.serve.modules.bir.entity.vo.YtdQtdToOAVo; |
|
|
import com.qs.serve.modules.bir.entity.vo.YtdQtdToOAVo; |
|
|
|
|
|
import com.qs.serve.modules.bir.mapper.BirActivityCenterGoodsMapper; |
|
|
|
|
|
import com.qs.serve.modules.bir.mapper.BirBaseActivityMapper; |
|
|
import com.qs.serve.modules.bir.service.BirCenterRateService; |
|
|
import com.qs.serve.modules.bir.service.BirCenterRateService; |
|
|
import com.qs.serve.modules.bir.service.BirRoiRateService; |
|
|
import com.qs.serve.modules.bir.service.BirRoiRateService; |
|
|
import com.qs.serve.modules.bms.entity.BmsRegion; |
|
|
import com.qs.serve.modules.bms.entity.BmsRegion; |
|
@ -103,14 +106,18 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC |
|
|
private TbsActivityChannelMapper activityChannelMapper; |
|
|
private TbsActivityChannelMapper activityChannelMapper; |
|
|
private TbsActivityChannelPointMapper activityChannelPointMapper; |
|
|
private TbsActivityChannelPointMapper activityChannelPointMapper; |
|
|
private ProjectProperties projectProperties; |
|
|
private ProjectProperties projectProperties; |
|
|
private BirRoiRateService birRoiRateService; |
|
|
|
|
|
private TbsCostPercentMapper tbsCostPercentMapper; |
|
|
private TbsCostPercentMapper tbsCostPercentMapper; |
|
|
private TbsScheduleItemBudgetMapper tbsScheduleItemBudgetMapper; |
|
|
private TbsScheduleItemBudgetMapper tbsScheduleItemBudgetMapper; |
|
|
private final ErpDispatchDataMapper dispatchDataMapper; |
|
|
private final ErpDispatchDataMapper dispatchDataMapper; |
|
|
private TbsCostContractMapper costContractMapper; |
|
|
private TbsCostContractMapper costContractMapper; |
|
|
private VtbVerificationMapper verificationMapper; |
|
|
private VtbVerificationMapper verificationMapper; |
|
|
private SysAttachService sysAttachService; |
|
|
private SysAttachService sysAttachService; |
|
|
|
|
|
|
|
|
|
|
|
private BirRoiRateService birRoiRateService; |
|
|
private BirCenterRateService centerRateService; |
|
|
private BirCenterRateService centerRateService; |
|
|
|
|
|
private BirActivityCenterGoodsMapper birActivityCenterGoodsMapper; |
|
|
|
|
|
private BirBaseActivityMapper birBaseActivityMapper; |
|
|
|
|
|
|
|
|
private TbsBudgetMatchApplication tbsBudgetMatchApplication; |
|
|
private TbsBudgetMatchApplication tbsBudgetMatchApplication; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -141,6 +148,18 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC |
|
|
LambdaQueryWrapper<TbsBudgetLog> rmLogLqw = new LambdaQueryWrapper<>(); |
|
|
LambdaQueryWrapper<TbsBudgetLog> rmLogLqw = new LambdaQueryWrapper<>(); |
|
|
rmLogLqw.eq(TbsBudgetLog::getCostApplyId,id); |
|
|
rmLogLqw.eq(TbsBudgetLog::getCostApplyId,id); |
|
|
budgetLogService.remove(rmLogLqw); |
|
|
budgetLogService.remove(rmLogLqw); |
|
|
|
|
|
//删除BIR
|
|
|
|
|
|
LambdaQueryWrapper<BirActivityCenterGoods> birActivityCenterGoodsLqw = new LambdaQueryWrapper<>(); |
|
|
|
|
|
birActivityCenterGoodsLqw.eq(BirActivityCenterGoods::getCostApplyId,id); |
|
|
|
|
|
birActivityCenterGoodsMapper.delete(birActivityCenterGoodsLqw); |
|
|
|
|
|
|
|
|
|
|
|
LambdaQueryWrapper<BirBaseActivity> birBaseActivityLqw = new LambdaQueryWrapper<>(); |
|
|
|
|
|
birBaseActivityLqw.eq(BirBaseActivity::getCostApplyId,id); |
|
|
|
|
|
birBaseActivityMapper.delete(birBaseActivityLqw); |
|
|
|
|
|
|
|
|
|
|
|
//命中预算
|
|
|
|
|
|
budgetCostItemService.removeByCostApplyId(id); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
@ -430,13 +449,14 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC |
|
|
} |
|
|
} |
|
|
allBudgetItem.add(costItem); |
|
|
allBudgetItem.add(costItem); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//保存
|
|
|
//保存
|
|
|
if(costUnItems.size() > 0){ |
|
|
if(costUnItems.size() > 0){ |
|
|
tbsCostUnItemService.saveBatch(costUnItems); |
|
|
tbsCostUnItemService.saveBatch(costUnItems); |
|
|
} |
|
|
} |
|
|
budgetCostItemService.saveBatch(allBudgetItem); |
|
|
budgetCostItemService.saveBatch(allBudgetItem); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(tbsCostApply.getChargeState().equals(TbsCostApplyState.State_0_unPublish.getCode())){ |
|
|
if(tbsCostApply.getChargeState().equals(TbsCostApplyState.State_0_unPublish.getCode())){ |
|
|
if(CollectionUtil.isNotEmpty(budgetLogList)){ |
|
|
if(CollectionUtil.isNotEmpty(budgetLogList)){ |
|
|