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

111 lines
2.1 KiB
Java
Raw Normal View History

2022-05-10 21:07:50 +08:00
package com.engine.organization.mapper.scheme;
2022-06-22 11:22:51 +08:00
import com.engine.organization.entity.TreeData;
2022-05-10 21:07:50 +08:00
import com.engine.organization.entity.scheme.po.LevelPO;
2022-05-12 13:22:54 +08:00
import org.apache.ibatis.annotations.MapKey;
2022-05-10 21:07:50 +08:00
import org.apache.ibatis.annotations.Param;
2022-06-22 11:22:51 +08:00
import java.util.ArrayList;
2022-05-10 21:07:50 +08:00
import java.util.Collection;
import java.util.List;
2022-05-12 13:22:54 +08:00
import java.util.Map;
2022-05-10 21:07:50 +08:00
/**
* @Author dxfeng
2022-06-14 11:07:48 +08:00
* @description:
2022-05-10 21:07:50 +08:00
* @Date 2022/5/9
* @Version V1.0
**/
public interface LevelMapper {
/**
* 根据No查询登记方案
*
* @param levelNo
* @return
*/
List<LevelPO> listByNo(@Param("levelNo") String levelNo);
2022-11-10 10:55:56 +08:00
/**
* 根据NoschemeId查询
* @param levelNo
* @param schemeId
* */
LevelPO getLevelByNoAndSid(@Param("levelNo") String levelNo,@Param("schemeId") Long schemeId);
/**
* 查询所有被引用的ID
*
* @return
*/
List<String> listUsedId();
2022-05-10 21:07:50 +08:00
/**
* 获取职等根据ID
2022-06-22 11:22:51 +08:00
*
2022-05-10 21:07:50 +08:00
* @param id
* @return
*/
LevelPO getLevelByID(@Param("id") long id);
2022-05-12 13:22:54 +08:00
/**
* 根据ID查询登记方案列表
*
* @param ids
* @return
*/
@MapKey("id")
2022-06-22 11:22:51 +08:00
List<Map<String, Object>> listLevelsByIds(@Param("ids") Collection<Long> ids);
2022-05-12 13:22:54 +08:00
2022-05-10 21:07:50 +08:00
/**
* 插入职等
2022-06-22 11:22:51 +08:00
*
2022-05-10 21:07:50 +08:00
* @param levelPO
* @return
*/
int insertIgnoreNull(LevelPO levelPO);
/**
* 修改修改所有字段
*
* @param levelPO
* @return
*/
int updateLevel(LevelPO levelPO);
/**
* 更新禁用标记
*
* @param levelPO
* @return
*/
int updateForbiddenTagById(LevelPO levelPO);
/**
* 批量删除登记方案
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
2022-05-11 14:38:08 +08:00
/**
* 根据禁用标记统计
2022-06-22 11:22:51 +08:00
*
2022-05-11 14:38:08 +08:00
* @param tag
* @return
*/
int getCountByTag(@Param("tag") int tag);
2022-06-22 11:22:51 +08:00
/**
* 获取左侧树
*
* @return
*/
ArrayList<TreeData> getTreeData();
2022-07-07 14:19:56 +08:00
List<LevelPO> getLevelsByIds(@Param("ids")Collection<Long> ids);
2022-09-06 15:38:16 +08:00
int checkRepeatNo(@Param("schemeId") Long schemeId, @Param("no") String no, @Param("id") Long id);
2022-05-10 21:07:50 +08:00
}