|
|
@@ -91,6 +91,8 @@ class StaffSalary extends Api
|
|
|
$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['法定天数'];
|
|
|
+ }else{
|
|
|
+ $this->error('法定天数未设置');
|
|
|
}
|
|
|
//将起止日期内数据删除
|
|
|
$delRes = \db('绩效工资汇总')->where('sczl_rq','between',[$startDate,$endDate])->delete();
|