| | |
| | | import com.ruoyi.staff.service.StaffSalaryMainService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return staffSalaryMainService.delete(ids); |
| | | } |
| | | |
| | | @PostMapping("/export") |
| | | @Operation(summary = "导出员工薪资明细") |
| | | public void export(HttpServletResponse response, String salaryMonth) { |
| | | staffSalaryMainService.exportSalaryDetail(response, salaryMonth); |
| | | } |
| | | |
| | | @GetMapping("/availableDepts") |
| | | @Operation(summary = "获取可选部门(排除已发放工资表的部门)") |
| | | public AjaxResult getAvailableDepts(String salaryMonth) { |
| | | return staffSalaryMainService.getAvailableDepts(salaryMonth); |
| | | } |
| | | |
| | | } |