package cn.com.lzt.personnelbasearchivesmanage.dao; import java.util.List; import org.jeecgframework.minidao.annotation.Arguments; import org.jeecgframework.minidao.annotation.Param; import org.jeecgframework.minidao.annotation.ResultType; import org.jeecgframework.minidao.annotation.Sql; import org.jeecgframework.minidao.pojo.MiniDaoPage; import org.springframework.stereotype.Repository; import cn.com.lzt.personnelbasearchivesmanage.dto.DepartDto; import cn.com.lzt.personnelbasearchivesmanage.dto.LeavePersonTaxExcelExportDto; import cn.com.lzt.personnelbasearchivesmanage.dto.NewPersonTaxExcelExportDto; import cn.com.lzt.personnelbasearchivesmanage.dto.PersonnelBaseArchivesManageInDto; import cn.com.lzt.personnelbasearchivesmanage.dto.PersonnelBaseArchivesManageOutDto; import cn.com.lzt.personnelbasearchivesmanage.dto.exportandimportdto.TSysFileDto; import cn.com.lzt.personnelbasearchivesmanage.entity.PersonnelBaseArchivesManageEntity; @Repository public interface PersonnelBaseArchivesManageDao { Class String = null; /** * 新员工-员工基本档案个税格式导出 * @param inDto * @param page * @param rows * @param authSql * @param sortorder * @return 员工基本档案数据 */ @ResultType(NewPersonTaxExcelExportDto.class) public MiniDaoPage getNewmanTaxExport(@Param("inDto") PersonnelBaseArchivesManageInDto inDto, @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("sortorder") String sortorder); /** * 离职员工-员工基本档案个税格式导出 * @param inDto * @param page * @param rows * @param authSql * @param sortorder * @return 员工基本档案数据 */ @ResultType(LeavePersonTaxExcelExportDto.class) public MiniDaoPage getLeavemanTaxExport(@Param("inDto") PersonnelBaseArchivesManageInDto inDto, @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("sortorder") String sortorder); /** * 退休人员 * @param inDto * @param toDate 截止日期 * @return */ @ResultType(LeavePersonTaxExcelExportDto.class) public MiniDaoPage getTiredperson(@Param("inDto") PersonnelBaseArchivesManageInDto inDto, @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("toDate") String toDate); /** * 员工基本档案数据检索 * @param inDto * @param page * @param rows * @param authSql * @param sortorder * @return 员工基本档案数据 */ @ResultType(PersonnelBaseArchivesManageOutDto.class) public MiniDaoPage dataGrid(@Param("inDto") PersonnelBaseArchivesManageInDto inDto, @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("sortorder") String sortorder); @ResultType(PersonnelBaseArchivesManageOutDto.class) public MiniDaoPage dataGridLeave(@Param("inDto") PersonnelBaseArchivesManageInDto inDto, @Param("page") int page,@Param("rows") int rows,@Param("authSql") String authSql,@Param("sortorder") String sortorder); @ResultType(PersonnelBaseArchivesManageOutDto.class) public MiniDaoPage getAllEntities(); @ResultType(PersonnelBaseArchivesManageOutDto.class) public MiniDaoPagegetEntityByUserId(@Param("userId") String userId); /** * 部门下的所有部门ID * @param pId * @return 部门下的所有部门ID */ @ResultType(DepartDto.class) public List getAllChildDepart(@Param("pId") String pId); /** * 定时任务查询 * 得到所有需要自动转正的员工 * @return 得到所有需要自动转正的员工 */ @Sql("SELECT * FROM t_bus_user_personnel where (auto_correction = 1 or manager_type = 2) and position_status = 1") public List getAllautoCorrection(); /** * 查询某些角色的所有人员id * @param params * @return */ @ResultType(DepartDto.class) public List getUserIdByRole(@Param("params")List params); // /**文件管理表 // * 根据业务编码删除表数据 // * @author zbw // * 2017-12-22 // * @param ids // * @return // */ // @Sql("delete from t_sys_file where 1=1 "+ // " AND "+ // "id IN ("+ // " <#list tSysFileIdList as item> "+ // " '${item}' "+ // " <#if item_has_next>,"+ // ""+ // " ) ") // public int batchSysFileDeleteByTSysFileIdList(@Param("tSysFileIdList") List tSysFileIdList); // // /** // * 用户附件表 // * 根据用户id删除表数据 // * @author zbw // * 2017-12-22 // * @param tableName // * @param ids // * @return // */ // @Sql("delete from t_bus_accessory where 1=1 "+ // " AND "+ // "userid IN ("+ // " <#list userIdList as item> "+ // " '${item}' "+ // " <#if item_has_next>,"+ // ""+ // " ) ") // public int batchAccessoryDeleteByUserIdList(@Param("userIdList") List userIdList); // // /** // * 员工财务信息表 // * 根据用户id删除表数据 // * @author zbw // * 2017-12-22 // * @param tableName // * @param ids // * @return // */ // @Sql("delete from t_bus_user_financial where 1=1 "+ // " AND "+ // "userid IN ("+ // " <#list userIdList as item> "+ // " '${item}' "+ // " <#if item_has_next>,"+ // ""+ // " ) ") // public int batchFinancialDeleteByUserIdList(@Param("userIdList") List userIdList); // // /** // *员工证书信息表 // * 根据用户id删除表数据 // * @author zbw // * 2017-12-22 // * @param tableName // * @param ids // * @return // */ // @Sql("delete from t_bus_user_certificate where 1=1 "+ // " AND "+ // "userid IN ("+ // " <#list userIdList as item> "+ // " '${item}' "+ // " <#if item_has_next>,"+ // ""+ // " ) ") // public int batchCertificateDeleteByUserIdList(@Param("userIdList") List userIdList); // // /** // * 员工人事信息表 // * 根据用户id删除表数据 // * @author zbw // * 2017-12-22 // * @param tableName // * @param ids // * @return // */ // @Sql("delete from t_bus_user_personnel where 1=1 "+ // " AND "+ // "userid IN ("+ // " <#list userIdList as item> "+ // " '${item}' "+ // " <#if item_has_next>,"+ // ""+ // " ) ") // public int batchPersonnelDeleteByUserIdList(@Param("userIdList") List userIdList); // // /** // * 用户与组织机构关系表 // * 根据用户id删除表数据 // * @author zbw // * 2017-12-22 // * @param tableName // * @param ids // * @return // */ // @Sql("delete from t_s_user_org where 1=1 "+ // " AND "+ // "user_id IN ("+ // " <#list userIdList as item> "+ // " '${item}' "+ // " <#if item_has_next>,"+ // ""+ // " ) ") // public int batchOrgDeleteByUserIdList(@Param("userIdList") List userIdList); // // /** // * 员工个人信息表 // * 根据用户id删除表数据 // * @author zbw // * 2017-12-22 // * @param tableName // * @param ids // * @return // */ // @Sql("delete from t_s_user where 1=1 "+ // " AND "+ // "id IN ("+ // " <#list userIdList as item> "+ // " '${item}' "+ // " <#if item_has_next>,"+ // ""+ // " ) ") // public int batchUserDeleteByUserIdList(@Param("userIdList") List userIdList); // // // // /** // * 根据员工工号删除数据 // * @author zbw // * 2017-12-22 // * @param ids // * @return // */ // @Sql("delete from t_s_base_user where 1=1 "+ // " AND "+ // "username IN ("+ // " <#list userNameList as item> "+ // " '${item}' "+ // " <#if item_has_next>,"+ // ""+ // " ) ") // public int batchBaseUserDeleteByUserNameList(@Param("userName") List userNameList); /** * 文件上传分页批量查询 * @author zbw * 2017-12-27 * @param tSysFileDto * @param page * @param rows * @param authSql * @return */ @Arguments({"tSysFileDto", "page", "rows","authSql"}) @ResultType(TSysFileDto.class) public MiniDaoPage getTSysFileDtoPage( TSysFileDto tSysFileDto, int page, int rows, String authSql); }