Commit 23cf308c by guojuxing

商户规则新增和删除修复

parent c8eabf27
......@@ -54,7 +54,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
}
//验证并获取规则树数据
ServiceResponse<List<Integer>> ruleIdListResult = getEnterpriseIdList(dto);
ServiceResponse<List<Integer>> ruleIdListResult = getRuleIdList(dto);
List<Integer> ruleIdList;
if (ruleIdListResult.isSuccess()) {
ruleIdList = ruleIdListResult.getResult();
......@@ -107,6 +107,7 @@ public class ConfigRuleEnterpriseApiServiceImpl implements ConfigRuleEnterpriseA
configRuleEnterpriseService.update(record.setStatus(0));
//解绑
configRuleEnterpriseService.deleteByEnterpriseRuleId(enterpriseRuleId);
configRuleEnterpriseService.deleteByEnterpriseRuleIdForRuleRel(enterpriseRuleId);
return ServiceResponse.success(record.getRuleName());
}
......
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