weaver-hrm-organization/src/com/engine/organization/mapper/staff/StaffPlanMapper.java

78 lines
1.4 KiB
Java
Raw Normal View History

package com.engine.organization.mapper.staff;
import com.engine.organization.entity.staff.po.StaffPlanPO;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
2022-05-26 10:11:02 +08:00
import java.util.Map;
/**
* @Author dxfeng
2022-06-14 11:07:48 +08:00
* @description:
* @Date 2022/5/25
* @Version V1.0
**/
public interface StaffPlanMapper {
/**
* 根据No查询编制方案
*
* @param planNo
* @return
*/
List<StaffPlanPO> listByNo(@Param("planNo") String planNo);
2022-05-26 10:11:02 +08:00
List<Map<String, Object>> listPlansByIds(@Param("ids") Collection<Long> ids);
2022-05-26 10:11:02 +08:00
/**
* 根据ID查询编制方案
*
* @param id
* @return
*/
StaffPlanPO getStaffPlanByID(@Param("id") long id);
/**
* 插入编制方案
*
* @param staffPlanPO
* @return
*/
int insertIgnoreNull(StaffPlanPO staffPlanPO);
/**
* 修改修改所有字段
*
* @param staffPlanPO
* @return
*/
int updateStaffPlan(StaffPlanPO staffPlanPO);
/**
* 更新禁用标记
*
* @param staffPlanPO
* @return
*/
int updateForbiddenTagById(StaffPlanPO staffPlanPO);
/**
* 批量删除
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
/**
* 查询所有被引用的ID
*
* @return
*/
List<String> listUsedId();
2022-07-07 14:19:56 +08:00
List<StaffPlanPO> getStaffPlansByIds(@Param("ids") Collection<Long> ids);
}