weaver-hrm-organization/src/com/engine/organization/mapper/scheme/GradeMapper.java

96 lines
1.8 KiB
Java
Raw Normal View History

2022-05-11 15:37:17 +08:00
package com.engine.organization.mapper.scheme;
import com.engine.organization.entity.scheme.po.GradePO;
2022-07-11 15:59:15 +08:00
import org.apache.ibatis.annotations.MapKey;
2022-05-11 15:37:17 +08:00
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
2022-07-11 15:59:15 +08:00
import java.util.Map;
2022-05-11 15:37:17 +08:00
/**
* @Author dxfeng
2022-06-14 11:07:48 +08:00
* @description:
2022-05-11 15:37:17 +08:00
* @Date 2022/5/11
* @Version V1.0
**/
public interface GradeMapper {
/**
* 根据No查询登记方案
*
* @param gradeNo
* @return
*/
List<GradePO> listByNo(@Param("gradeNo") String gradeNo);
2022-05-31 21:39:20 +08:00
/**
* 根据等级方案查询数据
*
* @param schemeId
* @return
*/
List<GradePO> listGradesBySchemeId(@Param("schemeId") long schemeId);
2022-05-11 15:37:17 +08:00
/**
2022-05-11 18:27:52 +08:00
* 获取职级根据ID
2022-05-31 21:39:20 +08:00
*
2022-05-11 15:37:17 +08:00
* @param id
* @return
*/
GradePO getGradeByID(@Param("id") long id);
/**
2022-05-11 18:27:52 +08:00
* 插入职级
2022-05-31 21:39:20 +08:00
*
2022-05-11 15:37:17 +08:00
* @param gradePO
* @return
*/
int insertIgnoreNull(GradePO gradePO);
/**
* 修改修改所有字段
*
* @param gradePO
* @return
*/
int updateGrade(GradePO gradePO);
/**
* 更新禁用标记
*
* @param gradePO
* @return
*/
int updateForbiddenTagById(GradePO gradePO);
/**
* 批量删除登记方案
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
/**
* 根据禁用标记统计
2022-05-31 21:39:20 +08:00
*
2022-05-11 15:37:17 +08:00
* @param tag
* @return
*/
int getCountByTag(@Param("tag") int tag);
List<String> listUsedId();
2022-07-07 14:19:56 +08:00
List<String> getGradeNameByIds(@Param("ids") Collection<Long> ids);
2022-07-11 15:59:15 +08:00
@MapKey("id")
List<Map<String, Object>> listGradessByIds(@Param("ids") Collection<Long> ids);
GradePO getGradeByLevelId(@Param("levelId") long levelId);
2022-09-06 15:38:16 +08:00
int checkRepeatNo(@Param("schemeId") Long schemeId, @Param("no") String no, @Param("id") Long id);
2022-05-11 15:37:17 +08:00
}