Commit 5003fb5f by zhoulm

fix(goods-listing): 替换结算规则获取方法为最新生效接口

将原获取最近基础场景分账规则的方法替换为getEffectRule接口,传入当前时间获取实时生效的分账规则
1 parent 0b988d15
......@@ -1872,8 +1872,8 @@ public class GoodsListingSubmitService {
.build()).collect(Collectors.toList());
if(Objects.equals(goodsListingApproval.getShelfType(), GoodsListingEnum.ShelfType.SINGLE.getValue())) {
Integer merchantId = merchantRefs.get(0).getMerchantId();
MerchantSettleDistributeRuleDTO effectedRule = merchantSettleDistributeRuleRemote.getLastRuleWithBaseSceneCode(
merchantId, sceneType, goodsListingApproval.getBaseSceneCode(), ExpenseCategroyRulsBuildTypeEnum.PLAIN.getValue()).getResult();
MerchantSettleDistributeRuleDTO effectedRule = merchantSettleDistributeRuleRemote.getEffectRule(
merchantId, sceneType, goodsListingApproval.getBaseSceneCode(), new Date()).getResult();
if(Objects.nonNull(effectedRule)) {
//若该门店+业务场景当前有生效财务规则,则自动带入“线上自动分账”“分账周期”“流量方分账方”现有的值
divisionRuleAutoList = effectedRule.getDivisionRuleAutos().stream().map(o->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!