package com.artfess.uc.manager; import com.artfess.base.manager.BaseManager; import com.artfess.base.model.CommonResult; import com.artfess.uc.model.OrgJob; import com.artfess.uc.params.job.JobVo; import com.artfess.uc.params.user.UserVo; import java.util.List; /** *
 * 描述:组织关系定义 处理接口
 * 构建组:x5-bpmx-platform
 * 作者:ray
 * 邮箱:zhangyg@jee-soft.cn
 * 日期:2016-06-29 18:00:43
 * 版权:广州宏天软件有限公司
 * 
*/ public interface OrgJobManager extends BaseManager { /** * 删除所有已逻辑删除的实体(物理删除) */ Integer removePhysical(); /** * 根据职务编码获取职务定义 * * @param code * @return */ public OrgJob getByCode(String code); /** * 根据职务名称获取职务 * * @param name * @return */ List getByName(String name); /** * 通过用户ID获取其拥有的职务 * * @param userId * @return */ List getListByUserId(String userId); /** * 通过用户账号获取其拥有的职务 * * @param account * @return */ List getListByAccount(String account); /** * 新增职务 * * @param job * @return * @throws Exception */ CommonResult addJob(JobVo job) throws Exception; /** * 从第三方系统数据添加职务到系统 * * @param job * @return * @throws Exception */ CommonResult addJobFromExterUni(OrgJob job) throws Exception; /** * 通过编码删除职务 * * @param codes * @return * @throws Exception */ CommonResult deleteJob(String codes) throws Exception; /** * 更新职务 * * @param job * @return * @throws Exception */ CommonResult updateJob(JobVo job) throws Exception; /** * 获取职务下的用户列表 * * @param code * @return * @throws Exception */ List getUsersByJob(String code) throws Exception; /** * 根据时间获取职务数据(数据同步) * * @param btime * @param etime * @return * @throws Exception */ List getJobByTime(String btime, String etime) throws Exception; /** * 查询职务编码是否已存在 * * @param code * @return * @throws Exception */ CommonResult isCodeExist(String code) throws Exception; /** * 根据职务id删除 * * @param ids * @return */ CommonResult deleteJobByIds(String ids); /** * 批量插入 * * @param list * @return */ boolean insertBatch(List list); }