26-03-14-14:30 规则CRUD

This commit is contained in:
MHW
2026-03-14 14:30:52 +08:00
parent d9a55d0c95
commit c1c67e826b
14 changed files with 556 additions and 240 deletions

View File

@@ -1,34 +1,38 @@
package com.solution.rule.mapper;
import com.solution.rule.domain.dto.WeaponModelDTO;
import com.solution.rule.domain.vo.ComponentCountVO;
import com.solution.rule.domain.vo.PlatformComponentNamesVO;
import com.solution.rule.domain.vo.WeaponModelVO;
import org.apache.ibatis.annotations.Mapper;
import com.solution.rule.domain.Rule;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface RuleMapper {
/**
* 根据ID查询规则
*/
Rule selectRuleById(Integer id);
/**
* 获取所有武器平台和组件
* @return
* 查询规则列表(支持分页)
*/
List<WeaponModelVO> getWeapon();
List<WeaponModelVO> getPlatformComponentNames();
List<Rule> selectRuleList(Rule rule);
/**
* 获取所有组件以及数量
* @return
* 新增规则
*/
List<ComponentCountVO> getModuleAndCount();
int insertRule(Rule rule);
/**
* 获取通信组件的所有平台和组件
* @param scenarioId
* @return
* 修改规则
*/
List<PlatformComponentNamesVO> getCommPlatformComponentNames(Integer scenarioId);
}
int updateRule(Rule rule);
/**
* 删除规则
*/
int deleteRuleById(Integer id);
/**
* 批量删除规则
*/
int deleteRuleByIds(@Param("ids")Integer[] ids);
}