gaoluyang
昨天 8c65f898ed6e5b0c7a94c792c4562f6ec831dccd
yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/salary/HrmSalaryCalculationController.java
@@ -14,6 +14,7 @@
import cn.iocoder.yudao.module.hrm.dal.dataobject.salary.HrmSalaryCalculationDO;
import cn.iocoder.yudao.module.hrm.service.employee.HrmEmployeeService;
import cn.iocoder.yudao.module.hrm.service.salary.HrmSalaryCalculationService;
import cn.iocoder.yudao.module.mes.api.feedback.dto.MesProFeedbackWageDetailRespDTO;
import cn.iocoder.yudao.module.system.api.dept.DeptApi;
import cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO;
import io.swagger.v3.oas.annotations.Operation;
@@ -121,6 +122,17 @@
        return success(respVO);
    }
    @GetMapping("/work-wage-detail")
    @Operation(summary = "获得员工某核算周期的报工工资明细",
            description = "按报工人汇总口径返回每条报工单的主工资、辅助工资、自定义工资字段、质量调整与最终工资")
    @Parameter(name = "period", description = "核算周期,格式 2024-01", required = true, example = "2026-11")
    @Parameter(name = "userId", description = "员工编号(薪酬核算记录中的 userId)", required = true, example = "1024")
    public CommonResult<List<MesProFeedbackWageDetailRespDTO>> getWorkWageDetail(
            @RequestParam("period") String period,
            @RequestParam("userId") Long userId) {
        return success(salaryCalculationService.getWorkWageDetailList(period, userId));
    }
    @PostMapping("/calculate")
    @Operation(summary = "执行薪酬核算")
    @Parameter(name = "period", description = "核算周期", required = true, example = "2024-01")