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

77 lines
1.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.engine.organization.mapper.scheme;
import com.engine.organization.entity.scheme.po.SchemePO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.Collection;
import java.util.List;
/**
* @Author dxfeng
* @Description: TODO
* @Date 2022/5/9
* @Version V1.0
**/
public interface SchemeMapper {
/**
* 根据No查询登记方案
*
* @param schemeNo
* @return
*/
@Select("select * from jcl_org_scheme t where scheme_no = #{schemeNo} AND delete_type = 0")
List<SchemePO> listByNo(String schemeNo);
/**
* 根据ID查询登记方案
*
* @param id
* @return
*/
@Select("select * from jcl_org_scheme t where id = #{id} AND delete_type = 0")
SchemePO getSchemeByID(@Param("id") long id);
/**
* 根据ID查询登记方案列表
*
* @param ids
* @return
*/
List<SchemePO> listSchemesByIds(@Param("ids") Collection<Long> ids);
/**
* 新增忽略null字段
*
* @param schemePO
* @return
*/
int insertIgnoreNull(SchemePO schemePO);
/**
* 修改,修改所有字段
*
* @param schemePO
* @return
*/
int updateScheme(SchemePO schemePO);
/**
* 更新禁用标记
*
* @param schemePO
* @return
*/
int updateForbiddenTagById(SchemePO schemePO);
/**
* 批量删除登记方案
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
}