Browse Source

计算工资 5.16

leiy 1 year ago
parent
commit
43ca7d4e3c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

+ 1 - 2
OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

@@ -243,7 +243,6 @@ namespace OASystem.API.Controllers
             string preYearMonth = yearMonthDt.AddMonths(-1).ToString("yyyy-MM");
 
 
-            Result hoildays = await PayrollComputation.GetWorkDays(startDt, endDt);
 
             //计算本月工资起止时间 比如是2月的1号-28号,那就是2月1号的零点到3月1号的零点 
             DateTime thisStartDt = startDt;
@@ -274,7 +273,7 @@ namespace OASystem.API.Controllers
 
             List<Pm_WageSheet> wageSheets = new List<Pm_WageSheet>();
 
-            _result = await PayrollComputation.SalaryCalculatorAsync(preWageSheetItems1, userNames,dto.UserId, thisYearMonth, thisStartDt,      );
+            _result = await PayrollComputation.SalaryCalculatorAsync(preWageSheetItems1, userNames,dto.UserId, thisYearMonth, thisStartDt,thisEndDt);
 
             #region 批量添加