Merge remote-tracking branch 'origin/dev_New' into dev_New
| | |
| | | @Log(title = "导出薪资管理列表", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | | List<CompensationPerformance> list = compensationPerformanceService.list(); |
| | | List<CompensationPerformance> list = compensationPerformanceService.exportList(); |
| | | ExcelUtil<CompensationPerformance> util = new ExcelUtil<>(CompensationPerformance.class); |
| | | util.exportExcel(response, list, "导出薪资管理列表"); |
| | | } |
| | |
| | | import com.ruoyi.compensationperformance.pojo.CompensationPerformance; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author :yys |
| | | * @date : 2025/8/8 9:54 |
| | |
| | | * @param page 分页 |
| | | * @param staffName 员工姓名 |
| | | * @param payDateStr 薪资日期 |
| | | * @return |
| | | * @return 查询的人员薪资信息 |
| | | */ |
| | | IPage<CompensationPerformance> listPage(Page page, @Param("staffName") String staffName, @Param("payDateStr") String payDateStr); |
| | | |
| | | /** |
| | | * 导出人员薪资 |
| | | * |
| | | * @return 人员薪资信息 |
| | | */ |
| | | List<CompensationPerformance> exportList(); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.compensationperformance.pojo.CompensationPerformance; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author :yys |
| | | * @date : 2025/8/8 9:55 |
| | |
| | | */ |
| | | IPage<CompensationPerformance> listPage(Page page, String staffName, String payDateStr); |
| | | |
| | | /** |
| | | * 导出人员新增 |
| | | * |
| | | * @return 人员薪资 |
| | | */ |
| | | List<CompensationPerformance> exportList(); |
| | | } |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author :yys |
| | | * @date : 2025/8/8 9:55 |
| | |
| | | return compensationPerformanceMapper.listPage(page, staffName, payDateStr); |
| | | } |
| | | |
| | | @Override |
| | | public List<CompensationPerformance> exportList() { |
| | | return compensationPerformanceMapper.exportList(); |
| | | } |
| | | } |
| | |
| | | </where> |
| | | ORDER BY cp.pay_date DESC, cp.id DESC |
| | | </select> |
| | | |
| | | <select id="exportList" resultType="com.ruoyi.compensationperformance.pojo.CompensationPerformance"> |
| | | SELECT cp.*, |
| | | soj.staff_name AS staffName, |
| | | sp.post_name AS postName, |
| | | sd.dept_name AS deptName |
| | | FROM compensation_performance cp |
| | | LEFT JOIN staff_on_job soj ON soj.id = cp.staff_id |
| | | LEFT JOIN sys_post sp ON sp.post_id = soj.sys_post_id |
| | | LEFT JOIN sys_dept sd ON sd.dept_id = soj.sys_dept_id |
| | | ORDER BY cp.pay_date DESC, cp.id DESC |
| | | </select> |
| | | </mapper> |