| | |
| | | public class RulesServiceImpl extends BaseServiceImpl<RulesMapper, Rules> implements IRulesService { |
| | | private final IRulesConditionService rulesConditionService; |
| | | |
| | | |
| | | @Override |
| | | public IPage<Rules> selectRulesPage(IPage<Rules> page, Rules rules) { |
| | | return page.setRecords(baseMapper.selectRulesPage(page,rules)); |
| | |
| | | RulesCondition rulesCondition = new RulesCondition(); |
| | | rulesCondition.setRuleId(id); |
| | | List<RulesCondition> list = rulesConditionService.list(Condition.getQueryWrapper(rulesCondition)); |
| | | boolean removeCondition = removeByIds(list); |
| | | boolean removeCondition = rulesConditionService.removeBatchByIds(list); |
| | | return removeRule&&removeCondition; |
| | | } |
| | | } |