| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- 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<NewPersonTaxExcelExportDto> 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<LeavePersonTaxExcelExportDto> 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<LeavePersonTaxExcelExportDto> 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<PersonnelBaseArchivesManageOutDto> 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<PersonnelBaseArchivesManageOutDto> 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<PersonnelBaseArchivesManageOutDto> getAllEntities();
-
- @ResultType(PersonnelBaseArchivesManageOutDto.class)
- public MiniDaoPage<PersonnelBaseArchivesManageOutDto>getEntityByUserId(@Param("userId") String userId);
- /**
- * 部门下的所有部门ID
- * @param pId
- * @return 部门下的所有部门ID
- */
- @ResultType(DepartDto.class)
- public List<DepartDto> 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<PersonnelBaseArchivesManageEntity> getAllautoCorrection();
- /**
- * 查询某些角色的所有人员id
- * @param params
- * @return
- */
- @ResultType(DepartDto.class)
- public List<DepartDto> getUserIdByRole(@Param("params")List<String> 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>,</#if>"+
- // "</#list>"+
- // " ) ")
- // public int batchSysFileDeleteByTSysFileIdList(@Param("tSysFileIdList") List<String> 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>,</#if>"+
- // "</#list>"+
- // " ) ")
- // public int batchAccessoryDeleteByUserIdList(@Param("userIdList") List<String> 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>,</#if>"+
- // "</#list>"+
- // " ) ")
- // public int batchFinancialDeleteByUserIdList(@Param("userIdList") List<String> 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>,</#if>"+
- // "</#list>"+
- // " ) ")
- // public int batchCertificateDeleteByUserIdList(@Param("userIdList") List<String> 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>,</#if>"+
- // "</#list>"+
- // " ) ")
- // public int batchPersonnelDeleteByUserIdList(@Param("userIdList") List<String> 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>,</#if>"+
- // "</#list>"+
- // " ) ")
- // public int batchOrgDeleteByUserIdList(@Param("userIdList") List<String> 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>,</#if>"+
- // "</#list>"+
- // " ) ")
- // public int batchUserDeleteByUserIdList(@Param("userIdList") List<String> 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>,</#if>"+
- // "</#list>"+
- // " ) ")
- // public int batchBaseUserDeleteByUserNameList(@Param("userName") List<String> 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<TSysFileDto> getTSysFileDtoPage(
- TSysFileDto tSysFileDto, int page, int rows, String authSql);
-
-
-
-
- }
|