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

72 lines
1.4 KiB
Java
Raw Normal View History

2022-05-07 10:18:50 +08:00
package com.engine.organization.mapper.scheme;
import com.engine.organization.entity.scheme.po.SchemePO;
2022-05-07 22:03:42 +08:00
import org.apache.ibatis.annotations.Param;
2022-05-07 10:18:50 +08:00
import org.apache.ibatis.annotations.Select;
2022-05-07 22:03:42 +08:00
import java.util.Collection;
2022-05-07 10:18:50 +08:00
import java.util.List;
/**
* @Author weaver_cl
* @Description: TODO
* @Date 2022/3/9
* @Version V1.0
**/
public interface SchemeMapper {
2022-05-07 22:03:42 +08:00
/**
* 根据ID查询登记方案
* @param schemeNo
* @return
*/
2022-05-07 10:18:50 +08:00
@Select("select * from jcl_org_scheme t where scheme_no = #{schemeNo}")
List<SchemePO> listByNo(String schemeNo);
2022-05-07 22:03:42 +08:00
/**
* 根据ID查询登记方案列表
* @param ids
* @return
*/
List<SchemePO> listSchemesById(@Param("ids") Collection<Long> ids);
/**
* 新增忽略null字段
* @param schemePO
* @return
*/
2022-05-07 10:18:50 +08:00
int insertIgnoreNull(SchemePO schemePO);
2022-05-07 22:03:42 +08:00
/**
* 修改修改所有字段
* @param schemePO
* @return
*/
int updateScheme(SchemePO schemePO);
/**
* 更新禁用标记
* @param schemePO
* @return
*/
int updateForbiddenTagById(SchemePO schemePO);
/**
* 删除记录
*
* @param schemePO 待删除的记录
* @return 返回影响行数
*/
int deleteScheme(SchemePO schemePO);
/**
* 批量删除登记方案
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
2022-05-07 10:18:50 +08:00
}