yu199195 commented on code in PR #4380:
URL: https://github.com/apache/shenyu/pull/4380#discussion_r1104272908


##########
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/RuleServiceImpl.java:
##########
@@ -152,11 +152,17 @@ public int update(final RuleDTO ruleDTO) {
         Assert.notNull(before, "the updated rule is not found");
         RuleDO ruleDO = RuleDO.buildRuleDO(ruleDTO);
         final int ruleCount = ruleMapper.updateSelective(ruleDO);
+
+        // need old data for cleaning
+        final List<RuleConditionDO> beforeRuleCondition = 
ruleConditionMapper.selectByQuery(new RuleConditionQuery(ruleDO.getId()));

Review Comment:
    update beforeRuleCondition ?  why?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to