| | |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.staff.dto.CalculateSalaryDto; |
| | | import com.ruoyi.staff.dto.StaffSalaryCalculateDto; |
| | | import com.ruoyi.staff.pojo.StaffSalaryMain; |
| | | 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.calculateSalary(calculateSalaryDto); |
| | | } |
| | | |
| | | @Operation(summary = "按员工重算工资明细") |
| | | @PostMapping("/calculateByEmployeeId") |
| | | public AjaxResult calculateByEmployeeId(@RequestBody StaffSalaryCalculateDto staffSalaryCalculateDto) { |
| | | return staffSalaryMainService.calculateSalaryByEmployee(staffSalaryCalculateDto); |
| | | } |
| | | |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新建工资表") |
| | | @Log(title = "新建工资表", businessType = BusinessType.INSERT) |
| | |
| | | return staffSalaryMainService.delete(ids); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/export") |
| | | @Operation(summary = "导出员工薪资明细") |
| | | public void export(HttpServletResponse response, String salaryMonth) { |
| | | staffSalaryMainService.exportSalaryDetail(response, salaryMonth); |
| | | } |
| | | |
| | | } |