|
|
@@ -1,5 +1,7 @@
|
|
|
package com.ydtech.modules.protocols.service.impl;
|
|
|
|
|
|
+import cn.dev33.satoken.session.SaSession;
|
|
|
+import cn.dev33.satoken.stp.StpUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
@@ -18,11 +20,13 @@ import com.ydtech.modules.fee.service.FeeRuleSchemeNewService;
|
|
|
import com.ydtech.modules.fee.service.FeeRuleSchemeService;
|
|
|
import com.ydtech.modules.order.entity.InsAreaCompany;
|
|
|
import com.ydtech.modules.order.entity.InsOrders;
|
|
|
+import com.ydtech.modules.order.entity.InsOrdersTrack;
|
|
|
import com.ydtech.modules.order.entity.vo.DistributionLevelVo;
|
|
|
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.order.service.InsOrdersTrackService;
|
|
|
import com.ydtech.modules.protocol.entity.po.PtlAgreement;
|
|
|
import com.ydtech.modules.protocol.entity.po.PtlAreaLicense;
|
|
|
import com.ydtech.modules.protocol.service.PtlAgreementService;
|
|
|
@@ -88,6 +92,9 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
@Autowired
|
|
|
private PtlAgreementProductCostsNewMapper ptlAgreementProductCostsNewMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private InsOrdersTrackService insOrdersTrackService;
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public Page<PtlAgreementProductCostsNew> getByAgreementId(Page page, AgreementProductQueryVo agreementProductQueryVo) {
|
|
|
@@ -1700,6 +1707,14 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
resultFeeOrderNewVo.setRetailFee(retailFeeList);
|
|
|
//保存新的比例
|
|
|
insFeeOrderNewService.updateById(insFeeOrderNew);
|
|
|
+
|
|
|
+ //添加轨迹
|
|
|
+ SaSession saSession = StpUtil.getSessionByLoginId(StpUtil.getLoginId());
|
|
|
+ SysUser sysCurrentUser = (SysUser) saSession.get(SaSession.USER);
|
|
|
+ //5 修改费用
|
|
|
+ InsOrdersTrack insOrdersTrack = new InsOrdersTrack(insAreaCompany,"5", sysCurrentUser.getId(), sysCurrentUser.getName());
|
|
|
+ insOrdersTrackService.save(insOrdersTrack);
|
|
|
+
|
|
|
return resultFeeOrderNewVo;
|
|
|
|
|
|
}
|