26-03-14-14:30 规则CRUD
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user