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

77 lines
1.5 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;
/**
2022-05-09 14:40:18 +08:00
* @Author dxfeng
2022-05-07 10:18:50 +08:00
* @Description: TODO
2022-05-09 14:40:18 +08:00
* @Date 2022/5/9
2022-05-07 10:18:50 +08:00
* @Version V1.0
**/
public interface SchemeMapper {
2022-05-07 22:03:42 +08:00
/**
2022-05-09 14:40:18 +08:00
* 根据No查询登记方案
*
2022-05-07 22:03:42 +08:00
* @param schemeNo
* @return
*/
2022-05-09 14:40:18 +08:00
@Select("select * from jcl_org_scheme t where scheme_no = #{schemeNo} AND delete_type = 0")
2022-05-07 10:18:50 +08:00
List<SchemePO> listByNo(String schemeNo);
2022-05-09 14:40:18 +08:00
/**
* 根据ID查询登记方案
*
* @param id
* @return
*/
@Select("select * from jcl_org_scheme t where id = #{id} AND delete_type = 0")
SchemePO getSchemeByID(@Param("id") long id);
2022-05-07 22:03:42 +08:00
/**
* 根据ID查询登记方案列表
2022-05-09 14:40:18 +08:00
*
2022-05-07 22:03:42 +08:00
* @param ids
* @return
*/
2022-05-09 14:40:18 +08:00
List<SchemePO> listSchemesByIds(@Param("ids") Collection<Long> ids);
2022-05-07 22:03:42 +08:00
/**
* 新增忽略null字段
2022-05-09 14:40:18 +08:00
*
2022-05-07 22:03:42 +08:00
* @param schemePO
* @return
*/
2022-05-07 10:18:50 +08:00
int insertIgnoreNull(SchemePO schemePO);
2022-05-07 22:03:42 +08:00
/**
* 修改修改所有字段
2022-05-09 14:40:18 +08:00
*
2022-05-07 22:03:42 +08:00
* @param schemePO
* @return
*/
int updateScheme(SchemePO schemePO);
/**
* 更新禁用标记
2022-05-09 14:40:18 +08:00
*
2022-05-07 22:03:42 +08:00
* @param schemePO
* @return
*/
int updateForbiddenTagById(SchemePO schemePO);
/**
* 批量删除登记方案
*
* @param ids
*/
int deleteByIds(@Param("ids") Collection<Long> ids);
2022-05-07 10:18:50 +08:00
}