新增离职的人员选项使用下拉框(查询改员工最新的入职信息)
| | |
| | | IPage<StaffJoinLeaveRecord> staffJoinLeaveRecordListPage(Page page, @Param("staffJoinLeaveRecord") StaffJoinLeaveRecord staffJoinLeaveRecord); |
| | | |
| | | List<StaffJoinLeaveRecord> staffJoinLeaveRecordList(@Param("staffJoinLeaveRecord") StaffJoinLeaveRecord staffJoinLeaveRecord); |
| | | |
| | | List<StaffJoinLeaveRecord> staffOnJobList(); |
| | | |
| | | } |
| | |
| | | |
| | | void staffOnJobExport(HttpServletResponse response, StaffOnJob staffOnJob); |
| | | |
| | | List<StaffOnJob> staffOnJobList(); |
| | | List<StaffJoinLeaveRecord> staffOnJobList(); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<StaffOnJob> staffOnJobList() { |
| | | return staffOnJobMapper.selectList(Wrappers.<StaffOnJob>lambdaQuery().eq(StaffOnJob::getStaffState,1)); |
| | | public List<StaffJoinLeaveRecord> staffOnJobList() { |
| | | return staffJoinLeaveRecordMapper.staffOnJobList(); |
| | | } |
| | | |
| | | |
| | |
| | | AND staff_name LIKE CONCAT('%',#{staffJoinLeaveRecord.staffName},'%') |
| | | </if> |
| | | </select> |
| | | <select id="staffOnJobList" resultType="com.ruoyi.staff.pojo.StaffJoinLeaveRecord"> |
| | | select * |
| | | from (select *, |
| | | ROW_NUMBER() over (PARTITION BY staff_no ORDER BY create_time DESC ) as rn |
| | | from staff_join_leave_record |
| | | where staff_state = 1) t |
| | | where rn = 1 |
| | | |
| | | </select> |
| | | </mapper> |