Commit 0f357dde by guojuxing

复制规则

parent 8ff56827
......@@ -270,7 +270,7 @@ public class ConfigRuleApiServiceImpl implements ConfigRuleApiService {
.setRuleLevel(2).setRuleName(tabConfigRule.getRuleName()));
//更新操作ID链数据
String classifyChain = "_0_" + copyRuleId + "_" + classifyId + "_";
configRuleService.update(new TabConfigRule().setRuleId(ruleId).setRuleChain(classifyChain));
configRuleService.update(new TabConfigRule().setRuleId(classifyId).setRuleChain(classifyChain));
//复制场景
List<TabConfigRule> sceneList = configRuleService.listRule(null, 3, tabConfigRule.getRuleId());
if (CollectionUtils.isNotEmpty(sceneList)) {
......@@ -281,7 +281,7 @@ public class ConfigRuleApiServiceImpl implements ConfigRuleApiService {
.setMarketScene(scene.getMarketScene()).setRemark(scene.getRemark())
.setRuleDesc(scene.getRuleDesc()).setRuleLevel(3).setRuleName(scene.getRuleName()));
//更新操作ID链数据
configRuleService.update(new TabConfigRule().setRuleId(ruleId).setRuleChain(classifyChain + sceneId + "_"));
configRuleService.update(new TabConfigRule().setRuleId(sceneId).setRuleChain(classifyChain + sceneId + "_"));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment