|
|
@@ -44,6 +44,9 @@ class SalaryCalculationService
|
|
|
}
|
|
|
//法定天数
|
|
|
$clocking_in_day = \db('人事_考勤资料')->where('kqzl_ny', $params['date'])->field('法定天数')->order('UniqId desc')->find();
|
|
|
+ if (!empty($clocking_in_day)){
|
|
|
+ $params['days'] = (int)$clocking_in_day['法定天数'];
|
|
|
+ }
|
|
|
//将起止日期内数据删除
|
|
|
$delRes = \db('绩效工资汇总')->where('sczl_rq', 'between', [$startDate, $endDate])->delete();
|
|
|
//设备产量计酬报工数据查询
|