package com.gkhy.safePlatform.specialWork.service.baseService;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.gkhy.safePlatform.commons.vo.ResultVO;
|
import com.gkhy.safePlatform.commons.vo.SearchResultVO;
|
import com.gkhy.safePlatform.specialWork.entity.ApprovalRuleUnit;
|
import com.gkhy.safePlatform.specialWork.model.query.db.ApprovalRuleUnitDbQuery;
|
|
import java.util.List;
|
|
public interface ApprovalRuleUnitService extends IService<ApprovalRuleUnit> {
|
|
int saveOneUnit(ApprovalRuleUnit unit);
|
|
int updateOneUnit(ApprovalRuleUnit unit);
|
|
int saveUnitList(List<ApprovalRuleUnit> unitList);
|
|
List<ApprovalRuleUnit> listByRuleStepId(Long ruleStepId);
|
|
int updateStatusByRuleStepId(Long ruleStepId);
|
|
int updateStatusByStepIds(List<Long> stepIds);
|
|
int updateStatusByRuleId(Long ruleId);
|
|
/**
|
* 根据规则id批量删除
|
* @param ruleIds
|
* @return
|
*/
|
int updateStatusByRuleIds(List<Long> ruleIds);
|
|
/**
|
* 根据stepId获取单元主键集合
|
* @param stepId
|
* @return
|
*/
|
List<Long> listUnitIdByStepId(Long stepId);
|
|
/**
|
* 根据单元unitIds 删除
|
* @param unitIds
|
* @return
|
*/
|
int updateStatusByUnitIds(List<Long> unitIds);
|
|
/**
|
* 根据规则id查询单元
|
* @param ruleId
|
* @return
|
*/
|
List<ApprovalRuleUnit> listByRuleId(Long ruleId);
|
|
List<ApprovalRuleUnit> listByConditions(ApprovalRuleUnitDbQuery query);
|
|
/**
|
* @Description: 根据 ruleId 获取 unit
|
*/
|
List<ApprovalRuleUnit> listApprovalUnitByRuleId(Long ruleId);
|
|
/**
|
* 无条件查询
|
* @return
|
*/
|
List<ApprovalRuleUnit> listByNoConditions();
|
}
|