|
|
@@ -4,8 +4,23 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.ydtech.exception.SystemException;
|
|
|
+import com.ydtech.modules.admin.model.SysUser;
|
|
|
+import com.ydtech.modules.admin.service.SysUserService;
|
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
|
+import com.ydtech.modules.fee.dto.vo.DeptManagerFee;
|
|
|
+import com.ydtech.modules.fee.dto.vo.EntranceFee;
|
|
|
+import com.ydtech.modules.fee.dto.vo.ExportFee;
|
|
|
+import com.ydtech.modules.fee.dto.vo.RetailStoreFee;
|
|
|
+import com.ydtech.modules.fee.service.CostsCalcService;
|
|
|
+import com.ydtech.modules.order.entity.InsAreaCompany;
|
|
|
+import com.ydtech.modules.order.entity.InsOrders;
|
|
|
+import com.ydtech.modules.order.entity.vo.FeeOrderNewRecordVo;
|
|
|
+import com.ydtech.modules.order.entity.vo.FeeOrderNewVo;
|
|
|
+import com.ydtech.modules.order.service.InsAreaCompanyService;
|
|
|
+import com.ydtech.modules.order.service.InsOrdersService;
|
|
|
+import com.ydtech.modules.protocol.entity.po.PtlAgreement;
|
|
|
import com.ydtech.modules.protocol.entity.po.PtlAreaLicense;
|
|
|
+import com.ydtech.modules.protocol.service.PtlAgreementService;
|
|
|
import com.ydtech.modules.protocol.service.PtlAreaLicenseService;
|
|
|
import com.ydtech.modules.protocols.dao.PtlAgreementProductCostsNewMapper;
|
|
|
import com.ydtech.modules.protocols.entity.po.*;
|
|
|
@@ -15,11 +30,13 @@ import com.ydtech.modules.protocols.entity.vo.AgreementProductQueryVo;
|
|
|
import com.ydtech.modules.protocols.entity.vo.CostsAuditVo;
|
|
|
import com.ydtech.modules.protocols.service.*;
|
|
|
import com.ydtech.utils.idgen.IdGenerate;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
|
@@ -52,6 +69,12 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
@Autowired
|
|
|
PtlAgreementProductCostsAttrLinkHistoryService ptlAgreementProductCostsAttrLinkHistoryService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ InsFeeOrderNewRecordService insFeeOrderNewRecordService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ InsFeeOrderNewService insFeeOrderNewService;
|
|
|
+
|
|
|
@Override
|
|
|
public Page<PtlAgreementProductCostsNew> getByAgreementId(Page page, AgreementProductQueryVo agreementProductQueryVo) {
|
|
|
LambdaQueryWrapper<PtlAgreementProductCostsNew> ptlAgreementProductCostsNewLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
@@ -66,6 +89,13 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
ptlAgreementProductCostsNewLambdaQueryWrapper.eq(PtlAgreementProductCostsNew::getProductId, agreementProductQueryVo.getProductCode());
|
|
|
}
|
|
|
|
|
|
+ //费用时间
|
|
|
+ if(agreementProductQueryVo.getCostStartDate() != null)
|
|
|
+ {
|
|
|
+ ptlAgreementProductCostsNewLambdaQueryWrapper.or().gt(PtlAgreementProductCostsNew::getCostsStartDate, agreementProductQueryVo.getCostStartDate())
|
|
|
+ .lt(PtlAgreementProductCostsNew::getCostsEndDate, agreementProductQueryVo.getCostsEndDate());
|
|
|
+ }
|
|
|
+
|
|
|
Page<PtlAgreementProductCostsNew> pages = baseMapper.selectPage(page, ptlAgreementProductCostsNewLambdaQueryWrapper);
|
|
|
|
|
|
// .lt(PtlAgreementProductCostsNew::getCostsStartDate, formattedDateTime)
|
|
|
@@ -636,4 +666,279 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
ptlAgreementProductCostsNew.setAuditTime(LocalDateTime.now());
|
|
|
return baseMapper.updateById(ptlAgreementProductCostsNew) > 0 ? true : false;
|
|
|
}
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ PtlAgreementService ptlAgreementService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ CostsCalcService costsCalcService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ InsOrdersService insOrdersService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ SysUserService sysUserService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ InsAreaCompanyService insAreaCompanyService;
|
|
|
+
|
|
|
+ @Transactional
|
|
|
+ @Override
|
|
|
+ public boolean costsAdjust(FeeOrderNewRecordVo feeOrderNewRecordVo) {
|
|
|
+ String feeId = feeOrderNewRecordVo.getFeeId();
|
|
|
+ InsFeeOrderNew insFeeOrderNew = insFeeOrderNewService.getById(feeId);
|
|
|
+ //查询协议是否包含税
|
|
|
+ PtlAgreement ptlAgreement = ptlAgreementService.getById(insFeeOrderNew.getAgreementId());
|
|
|
+ BigDecimal taxRadio = new BigDecimal("1.00");
|
|
|
+ if(ptlAgreement.getWithTax().equals("是")){
|
|
|
+ taxRadio = new BigDecimal("1.06");
|
|
|
+ }
|
|
|
+
|
|
|
+ InsFeeOrderNewRecord record = new InsFeeOrderNewRecord();
|
|
|
+ FeeOrderNewVo feeOrderNewVoOld = feeOrderNewRecordVo.getFeeOrderNewVoOld();
|
|
|
+ FeeOrderNewVo feeOrderNewVo = feeOrderNewRecordVo.getFeeOrderNewVoNew();
|
|
|
+
|
|
|
+ //交强入口费用
|
|
|
+ EntranceFee jqEntranceFee = costsCalcService.getEntranceFee("交强险", feeOrderNewVo.getEntranceFee().get(0).getPremium().divide(taxRadio,2),
|
|
|
+ feeOrderNewVo.getEntranceFee().get(0).getSuperviseCosts(), feeOrderNewVo.getEntranceFee().get(0).getOtherCostsProportion());
|
|
|
+
|
|
|
+ //商业入口费用
|
|
|
+ EntranceFee syEntranceFee = costsCalcService.getEntranceFee("商业险", feeOrderNewVo.getEntranceFee().get(1).getPremium().divide(taxRadio,2),
|
|
|
+ feeOrderNewVo.getEntranceFee().get(1).getSuperviseCosts(), feeOrderNewVo.getEntranceFee().get(1).getOtherCostsProportion());
|
|
|
+
|
|
|
+ //非车入口费用
|
|
|
+ EntranceFee noEntranceFee = costsCalcService.getEntranceFee("非车险", feeOrderNewVo.getEntranceFee().get(2).getPremium().divide(taxRadio,2),
|
|
|
+ feeOrderNewVo.getEntranceFee().get(2).getSuperviseCosts(), feeOrderNewVo.getEntranceFee().get(2).getOtherCostsProportion());
|
|
|
+
|
|
|
+ //交强部门管理费用
|
|
|
+ DeptManagerFee jqDeptManagerFee = costsCalcService.getDeptManagerFee("交强险", insFeeOrderNew.getJqPremium().divide(taxRadio,2),
|
|
|
+ insFeeOrderNew.getJqDeptProportionLevel1(), insFeeOrderNew.getJqDeptProportionLevel2(), insFeeOrderNew.getJqDeptProportionLevel3(),
|
|
|
+ insFeeOrderNew.getJqDeptProportionLevel4(), insFeeOrderNew.getJqDeptProportionLevel5());
|
|
|
+
|
|
|
+ //商业部门管理费用
|
|
|
+ DeptManagerFee syDeptManagerFee = costsCalcService.getDeptManagerFee("商业险", insFeeOrderNew.getSyPremium().divide(taxRadio,2),
|
|
|
+ insFeeOrderNew.getSyDeptProportionLevel1(), insFeeOrderNew.getSyDeptProportionLevel2(), insFeeOrderNew.getSyDeptProportionLevel3(),
|
|
|
+ insFeeOrderNew.getSyDeptProportionLevel4(), insFeeOrderNew.getSyDeptProportionLevel5());
|
|
|
+
|
|
|
+ //非车部门管理费用
|
|
|
+ DeptManagerFee noDeptManagerFee = costsCalcService.getDeptManagerFee("非车险", insFeeOrderNew.getNoPremium().divide(taxRadio,2),
|
|
|
+ insFeeOrderNew.getNoDeptProportionLevel1(), insFeeOrderNew.getNoDeptProportionLevel2(), insFeeOrderNew.getNoDeptProportionLevel3(),
|
|
|
+ insFeeOrderNew.getNoDeptProportionLevel4(), insFeeOrderNew.getNoDeptProportionLevel5());
|
|
|
+
|
|
|
+
|
|
|
+ //分销费用
|
|
|
+ InsAreaCompany insAreaCompany = insAreaCompanyService.getById(insFeeOrderNew.getInsOrderNo());
|
|
|
+ InsOrders insOrders = insOrdersService.getById(insAreaCompany.getOrderno());
|
|
|
+ SysUser sysUser = sysUserService.findByUserId(insOrders.getUserid());
|
|
|
+ RetailStoreFee retailStoreFee = costsCalcService.getRetailStoreFee(sysUser.getId(),
|
|
|
+ insFeeOrderNew.getJqPremium().add(insFeeOrderNew.getSyPremium()).add(insFeeOrderNew.getNoPremium()));
|
|
|
+
|
|
|
+ //出口
|
|
|
+ ExportFee jqExportFee = costsCalcService.getExportFee("交强险",jqEntranceFee,jqDeptManagerFee,retailStoreFee,
|
|
|
+ feeOrderNewRecordVo.getFeeOrderNewVoNew().getExportFee().get(0).getSuperviseCosts());
|
|
|
+
|
|
|
+ ExportFee syExportFee = costsCalcService.getExportFee("商业险",syEntranceFee,syDeptManagerFee,retailStoreFee,
|
|
|
+ feeOrderNewRecordVo.getFeeOrderNewVoNew().getExportFee().get(1).getSuperviseCosts());
|
|
|
+
|
|
|
+ ExportFee noExportFee = costsCalcService.getExportFee("非车险",noEntranceFee,noDeptManagerFee,retailStoreFee,
|
|
|
+ feeOrderNewRecordVo.getFeeOrderNewVoNew().getExportFee().get(0).getSuperviseCosts());
|
|
|
+
|
|
|
+ //转换输出的格式
|
|
|
+ FeeOrderNewVo resultFeeOrderNewVo = new FeeOrderNewVo();
|
|
|
+ List<FeeOrderNewVo.EntranceFee> entranceFeeList = new ArrayList<>();
|
|
|
+ List<FeeOrderNewVo.DeptManagerFee> deptManagerFeeList = new ArrayList<>();
|
|
|
+ List<FeeOrderNewVo.ExportFee> exportFeeList = new ArrayList<>();
|
|
|
+
|
|
|
+
|
|
|
+ FeeOrderNewVo.EntranceFee jqEntranceFeeConv = new FeeOrderNewVo.EntranceFee();
|
|
|
+ BeanUtils.copyProperties(jqEntranceFee,jqEntranceFeeConv);
|
|
|
+ entranceFeeList.add(jqEntranceFeeConv);
|
|
|
+
|
|
|
+ FeeOrderNewVo.EntranceFee syEntranceFeeConv = new FeeOrderNewVo.EntranceFee();
|
|
|
+ BeanUtils.copyProperties(syEntranceFee,syEntranceFeeConv);
|
|
|
+ entranceFeeList.add(syEntranceFeeConv);
|
|
|
+
|
|
|
+ FeeOrderNewVo.EntranceFee noEntranceFeeConv = new FeeOrderNewVo.EntranceFee();
|
|
|
+ BeanUtils.copyProperties(noEntranceFee,noEntranceFeeConv);
|
|
|
+ entranceFeeList.add(noEntranceFeeConv);
|
|
|
+
|
|
|
+ resultFeeOrderNewVo.setEntranceFee(entranceFeeList);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ FeeOrderNewVo.DeptManagerFee jqDeptManagerFeeConv = new FeeOrderNewVo.DeptManagerFee();
|
|
|
+ BeanUtils.copyProperties(jqDeptManagerFee,jqDeptManagerFeeConv);
|
|
|
+ deptManagerFeeList.add(jqDeptManagerFeeConv);
|
|
|
+
|
|
|
+ FeeOrderNewVo.DeptManagerFee syDeptManagerFeeConv = new FeeOrderNewVo.DeptManagerFee();
|
|
|
+ BeanUtils.copyProperties(syDeptManagerFee,syDeptManagerFeeConv);
|
|
|
+ deptManagerFeeList.add(syDeptManagerFeeConv);
|
|
|
+
|
|
|
+ FeeOrderNewVo.DeptManagerFee noDeptManagerFeeConv = new FeeOrderNewVo.DeptManagerFee();
|
|
|
+ BeanUtils.copyProperties(noDeptManagerFee,noDeptManagerFeeConv);
|
|
|
+ deptManagerFeeList.add(noDeptManagerFeeConv);
|
|
|
+
|
|
|
+ resultFeeOrderNewVo.setDeptManagerFee(deptManagerFeeList);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ FeeOrderNewVo.ExportFee jqExportFeeConv = new FeeOrderNewVo.ExportFee();
|
|
|
+ BeanUtils.copyProperties(jqExportFee,jqExportFeeConv);
|
|
|
+ exportFeeList.add(jqExportFeeConv);
|
|
|
+
|
|
|
+ FeeOrderNewVo.ExportFee syExportFeeConv = new FeeOrderNewVo.ExportFee();
|
|
|
+ BeanUtils.copyProperties(syExportFee,syExportFeeConv);
|
|
|
+ exportFeeList.add(syExportFeeConv);
|
|
|
+
|
|
|
+ FeeOrderNewVo.ExportFee noExportFeeConv = new FeeOrderNewVo.ExportFee();
|
|
|
+ BeanUtils.copyProperties(noExportFee,noExportFeeConv);
|
|
|
+ exportFeeList.add(noExportFeeConv);
|
|
|
+
|
|
|
+ resultFeeOrderNewVo.setExportFee(exportFeeList);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ //入口
|
|
|
+ record.setJqCostsProportionOld(feeOrderNewVoOld.getEntranceFee().get(0).getTotalProportion());
|
|
|
+ record.setSyCostsProportionOld(feeOrderNewVoOld.getEntranceFee().get(1).getTotalProportion());
|
|
|
+ record.setNoCostsProportionOld(feeOrderNewVoOld.getEntranceFee().get(2).getTotalProportion());
|
|
|
+ record.setJqSuperviseCostsProportionOld(feeOrderNewVoOld.getEntranceFee().get(0).getSuperviseCosts());
|
|
|
+ record.setSySuperviseCostsProportionOld(feeOrderNewVoOld.getEntranceFee().get(1).getSuperviseCosts());
|
|
|
+ record.setNoSuperviseCostsProportionOld(feeOrderNewVoOld.getEntranceFee().get(2).getSuperviseCosts());
|
|
|
+ record.setJqOtherCostsProportionOld(feeOrderNewVoOld.getEntranceFee().get(0).getOtherCostsProportion());
|
|
|
+ record.setSyOtherCostsProportionOld(feeOrderNewVoOld.getEntranceFee().get(1).getOtherCostsProportion());
|
|
|
+ record.setNoOtherCostsProportionOld(feeOrderNewVoOld.getEntranceFee().get(2).getOtherCostsProportion());
|
|
|
+
|
|
|
+ record.setJqCostsProportion(feeOrderNewVo.getEntranceFee().get(0).getTotalProportion());
|
|
|
+ record.setSyCostsProportion(feeOrderNewVo.getEntranceFee().get(1).getTotalProportion());
|
|
|
+ record.setNoCostsProportion(feeOrderNewVo.getEntranceFee().get(2).getTotalProportion());
|
|
|
+ record.setJqSuperviseCostsProportion(feeOrderNewVo.getEntranceFee().get(0).getSuperviseCosts());
|
|
|
+ record.setSySuperviseCostsProportion(feeOrderNewVo.getEntranceFee().get(1).getSuperviseCosts());
|
|
|
+ record.setNoSuperviseCostsProportion(feeOrderNewVo.getEntranceFee().get(2).getSuperviseCosts());
|
|
|
+ record.setJqOtherCostsProportion(feeOrderNewVo.getEntranceFee().get(0).getOtherCostsProportion());
|
|
|
+ record.setSyOtherCostsProportion(feeOrderNewVo.getEntranceFee().get(1).getOtherCostsProportion());
|
|
|
+ record.setNoOtherCostsProportion(feeOrderNewVo.getEntranceFee().get(2).getOtherCostsProportion());
|
|
|
+
|
|
|
+
|
|
|
+ //出口
|
|
|
+ record.setJqCostsExportProportionOld(feeOrderNewVoOld.getExportFee().get(0).getTotalProportion());
|
|
|
+ record.setSyCostsExportProportionOld(feeOrderNewVoOld.getExportFee().get(1).getTotalProportion());
|
|
|
+ record.setNoCostsExportProportionOld(feeOrderNewVoOld.getExportFee().get(2).getTotalProportion());
|
|
|
+
|
|
|
+ record.setJqCostsExportProportion(feeOrderNewVo.getExportFee().get(0).getTotalProportion());
|
|
|
+ record.setSyCostsExportProportion(feeOrderNewVo.getExportFee().get(1).getTotalProportion());
|
|
|
+ record.setNoCostsExportProportion(feeOrderNewVo.getExportFee().get(2).getTotalProportion());
|
|
|
+
|
|
|
+ //机构管理费 (交强)
|
|
|
+ //old
|
|
|
+ record.setJqDeptProportionLevel1Old(feeOrderNewVoOld.getDeptManagerFee().get(0).getDeptProportionLevelOne());
|
|
|
+ record.setJqDeptProportionLevel2Old(feeOrderNewVoOld.getDeptManagerFee().get(0).getDeptProportionLevelTwo());
|
|
|
+ record.setJqDeptProportionLevel3Old(feeOrderNewVoOld.getDeptManagerFee().get(0).getDeptProportionLevelThree());
|
|
|
+ record.setJqDeptProportionLevel4Old(feeOrderNewVoOld.getDeptManagerFee().get(0).getDeptProportionLevelFoure());
|
|
|
+ record.setJqDeptProportionLevel5Old(feeOrderNewVoOld.getDeptManagerFee().get(0).getDeptProportionLevelFive());
|
|
|
+
|
|
|
+ //new
|
|
|
+ record.setJqDeptProportionLevel1(feeOrderNewVo.getDeptManagerFee().get(0).getDeptProportionLevelOne());
|
|
|
+ record.setJqDeptProportionLevel2(feeOrderNewVo.getDeptManagerFee().get(0).getDeptProportionLevelTwo());
|
|
|
+ record.setJqDeptProportionLevel3(feeOrderNewVo.getDeptManagerFee().get(0).getDeptProportionLevelThree());
|
|
|
+ record.setJqDeptProportionLevel4(feeOrderNewVo.getDeptManagerFee().get(0).getDeptProportionLevelFoure());
|
|
|
+ record.setJqDeptProportionLevel5(feeOrderNewVo.getDeptManagerFee().get(0).getDeptProportionLevelFive());
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ //机构管理费 (商业)
|
|
|
+ //old
|
|
|
+ record.setSyDeptProportionLevel1Old(feeOrderNewVoOld.getDeptManagerFee().get(1).getDeptProportionLevelOne());
|
|
|
+ record.setSyDeptProportionLevel2Old(feeOrderNewVoOld.getDeptManagerFee().get(1).getDeptProportionLevelTwo());
|
|
|
+ record.setSyDeptProportionLevel3Old(feeOrderNewVoOld.getDeptManagerFee().get(1).getDeptProportionLevelThree());
|
|
|
+ record.setSyDeptProportionLevel4Old(feeOrderNewVoOld.getDeptManagerFee().get(1).getDeptProportionLevelFoure());
|
|
|
+ record.setSyDeptProportionLevel5Old(feeOrderNewVoOld.getDeptManagerFee().get(1).getDeptProportionLevelFive());
|
|
|
+
|
|
|
+ //new
|
|
|
+ record.setSyDeptProportionLevel1(feeOrderNewVo.getDeptManagerFee().get(1).getDeptProportionLevelOne());
|
|
|
+ record.setSyDeptProportionLevel2(feeOrderNewVo.getDeptManagerFee().get(1).getDeptProportionLevelTwo());
|
|
|
+ record.setSyDeptProportionLevel3(feeOrderNewVo.getDeptManagerFee().get(1).getDeptProportionLevelThree());
|
|
|
+ record.setSyDeptProportionLevel4(feeOrderNewVo.getDeptManagerFee().get(1).getDeptProportionLevelFoure());
|
|
|
+ record.setSyDeptProportionLevel5(feeOrderNewVo.getDeptManagerFee().get(1).getDeptProportionLevelFive());
|
|
|
+
|
|
|
+
|
|
|
+ //机构管理费 (非车)
|
|
|
+ //old
|
|
|
+ record.setNoDeptProportionLevel1Old(feeOrderNewVoOld.getDeptManagerFee().get(2).getDeptProportionLevelOne());
|
|
|
+ record.setNoDeptProportionLevel2Old(feeOrderNewVoOld.getDeptManagerFee().get(2).getDeptProportionLevelTwo());
|
|
|
+ record.setNoDeptProportionLevel3Old(feeOrderNewVoOld.getDeptManagerFee().get(2).getDeptProportionLevelThree());
|
|
|
+ record.setNoDeptProportionLevel4Old(feeOrderNewVoOld.getDeptManagerFee().get(2).getDeptProportionLevelFoure());
|
|
|
+ record.setNoDeptProportionLevel5Old(feeOrderNewVoOld.getDeptManagerFee().get(2).getDeptProportionLevelFive());
|
|
|
+
|
|
|
+ //new
|
|
|
+ record.setNoDeptProportionLevel1(feeOrderNewVo.getDeptManagerFee().get(2).getDeptProportionLevelOne());
|
|
|
+ record.setNoDeptProportionLevel2(feeOrderNewVo.getDeptManagerFee().get(2).getDeptProportionLevelTwo());
|
|
|
+ record.setNoDeptProportionLevel3(feeOrderNewVo.getDeptManagerFee().get(2).getDeptProportionLevelThree());
|
|
|
+ record.setNoDeptProportionLevel4(feeOrderNewVo.getDeptManagerFee().get(2).getDeptProportionLevelFoure());
|
|
|
+ record.setNoDeptProportionLevel5(feeOrderNewVo.getDeptManagerFee().get(2).getDeptProportionLevelFive());
|
|
|
+
|
|
|
+ //保存历史记录
|
|
|
+ record.setFeeOrderId(feeId);
|
|
|
+ insFeeOrderNewRecordService.save(record);
|
|
|
+
|
|
|
+
|
|
|
+ insFeeOrderNew.setJqCostsProportion(jqEntranceFee.getTotalProportion());
|
|
|
+ insFeeOrderNew.setJqCostsPremiums(jqEntranceFee.getTotalAmount());
|
|
|
+ insFeeOrderNew.setSyCostsProportion(syEntranceFee.getTotalProportion());
|
|
|
+ insFeeOrderNew.setSyCostsPremiums(syEntranceFee.getTotalAmount());
|
|
|
+ insFeeOrderNew.setNoCostsProportion(noEntranceFee.getTotalProportion());
|
|
|
+ insFeeOrderNew.setNoCostsPremiums(noEntranceFee.getTotalAmount());
|
|
|
+
|
|
|
+ insFeeOrderNew.setJqSuperviseCostsProportion(jqEntranceFee.getSuperviseCosts());
|
|
|
+ insFeeOrderNew.setJqSuperviseCostsPremiums(jqEntranceFee.getSySuperviseCostsPremiums());
|
|
|
+ insFeeOrderNew.setSySuperviseCostsProportion(syEntranceFee.getSuperviseCosts());
|
|
|
+ insFeeOrderNew.setSySuperviseCostsPremiums(syEntranceFee.getSySuperviseCostsPremiums());
|
|
|
+ insFeeOrderNew.setNoSuperviseCostsProportion(noEntranceFee.getSuperviseCosts());
|
|
|
+ insFeeOrderNew.setNoSuperviseCostsPremiums(noEntranceFee.getSySuperviseCostsPremiums());
|
|
|
+
|
|
|
+ insFeeOrderNew.setJqOtherCostsProportion(jqEntranceFee.getOtherCostsProportion());
|
|
|
+ insFeeOrderNew.setJqOtherCostsPremiums(jqEntranceFee.getOtherCostsPremiums());
|
|
|
+ insFeeOrderNew.setSyOtherCostsProportion(syEntranceFee.getOtherCostsProportion());
|
|
|
+ insFeeOrderNew.setSyOtherCostsPremiums(syEntranceFee.getOtherCostsPremiums());
|
|
|
+ insFeeOrderNew.setNoOtherCostsProportion(noEntranceFee.getOtherCostsProportion());
|
|
|
+ insFeeOrderNew.setNoOtherCostsPremiums(noEntranceFee.getOtherCostsPremiums());
|
|
|
+
|
|
|
+ insFeeOrderNew.setJqDeptProportionLevel1(jqDeptManagerFee.getDeptManagerRadioLevel1());
|
|
|
+ insFeeOrderNew.setJqDeptProportionLevel2(jqDeptManagerFee.getDeptManagerRadioLevel2());
|
|
|
+ insFeeOrderNew.setJqDeptProportionLevel3(jqDeptManagerFee.getDeptManagerRadioLevel3());
|
|
|
+ insFeeOrderNew.setJqDeptProportionLevel4(jqDeptManagerFee.getDeptManagerRadioLevel4());
|
|
|
+ insFeeOrderNew.setJqDeptProportionLevel5(jqDeptManagerFee.getDeptManagerRadioLevel5());
|
|
|
+ insFeeOrderNew.setJqDeptPremiumsLevel1(jqDeptManagerFee.getDeptManagerFeeLevel1());
|
|
|
+ insFeeOrderNew.setJqDeptPremiumsLevel2(jqDeptManagerFee.getDeptManagerFeeLevel2());
|
|
|
+ insFeeOrderNew.setJqDeptPremiumsLevel3(jqDeptManagerFee.getDeptManagerFeeLevel3());
|
|
|
+ insFeeOrderNew.setJqDeptPremiumsLevel4(jqDeptManagerFee.getDeptManagerFeeLevel4());
|
|
|
+ insFeeOrderNew.setJqDeptPremiumsLevel5(jqDeptManagerFee.getDeptManagerFeeLevel5());
|
|
|
+
|
|
|
+ insFeeOrderNew.setSyDeptProportionLevel1(syDeptManagerFee.getDeptManagerRadioLevel1());
|
|
|
+ insFeeOrderNew.setSyDeptProportionLevel2(syDeptManagerFee.getDeptManagerRadioLevel2());
|
|
|
+ insFeeOrderNew.setSyDeptProportionLevel3(syDeptManagerFee.getDeptManagerRadioLevel3());
|
|
|
+ insFeeOrderNew.setSyDeptProportionLevel4(syDeptManagerFee.getDeptManagerRadioLevel4());
|
|
|
+ insFeeOrderNew.setSyDeptProportionLevel5(syDeptManagerFee.getDeptManagerRadioLevel5());
|
|
|
+ insFeeOrderNew.setSyDeptPremiumsLevel1(syDeptManagerFee.getDeptManagerFeeLevel1());
|
|
|
+ insFeeOrderNew.setSyDeptPremiumsLevel2(syDeptManagerFee.getDeptManagerFeeLevel2());
|
|
|
+ insFeeOrderNew.setSyDeptPremiumsLevel3(syDeptManagerFee.getDeptManagerFeeLevel3());
|
|
|
+ insFeeOrderNew.setSyDeptPremiumsLevel4(syDeptManagerFee.getDeptManagerFeeLevel4());
|
|
|
+ insFeeOrderNew.setSyDeptPremiumsLevel5(syDeptManagerFee.getDeptManagerFeeLevel5());
|
|
|
+
|
|
|
+ insFeeOrderNew.setNoDeptProportionLevel1(noDeptManagerFee.getDeptManagerRadioLevel1());
|
|
|
+ insFeeOrderNew.setNoDeptProportionLevel2(noDeptManagerFee.getDeptManagerRadioLevel2());
|
|
|
+ insFeeOrderNew.setNoDeptProportionLevel3(noDeptManagerFee.getDeptManagerRadioLevel3());
|
|
|
+ insFeeOrderNew.setNoDeptProportionLevel4(noDeptManagerFee.getDeptManagerRadioLevel4());
|
|
|
+ insFeeOrderNew.setNoDeptProportionLevel5(noDeptManagerFee.getDeptManagerRadioLevel5());
|
|
|
+ insFeeOrderNew.setNoDeptPremiumsLevel1(noDeptManagerFee.getDeptManagerFeeLevel1());
|
|
|
+ insFeeOrderNew.setNoDeptPremiumsLevel2(noDeptManagerFee.getDeptManagerFeeLevel2());
|
|
|
+ insFeeOrderNew.setNoDeptPremiumsLevel3(noDeptManagerFee.getDeptManagerFeeLevel3());
|
|
|
+ insFeeOrderNew.setNoDeptPremiumsLevel4(noDeptManagerFee.getDeptManagerFeeLevel4());
|
|
|
+ insFeeOrderNew.setNoDeptPremiumsLevel5(noDeptManagerFee.getDeptManagerFeeLevel5());
|
|
|
+
|
|
|
+ //保存新的比例
|
|
|
+ insFeeOrderNewService.updateById(insFeeOrderNew);
|
|
|
+ return true;
|
|
|
+
|
|
|
+ }
|
|
|
}
|