|
|
@@ -62,7 +62,7 @@ class StaffSalary extends Api
|
|
|
$startDate = $params['start_date'];
|
|
|
$endDate = $params['end_date'];
|
|
|
//将起止日期内数据删除
|
|
|
- \db('绩效工资汇总_temp')->where('sczl_rq','between',[$startDate,$endDate])->delete();
|
|
|
+ \db('绩效工资汇总')->where('sczl_rq','between',[$startDate,$endDate])->delete();
|
|
|
$where = [];
|
|
|
$where['a.sczl_rq'] = ['between',[$startDate,$endDate]];
|
|
|
$fields = "a.sczl_gdbh,a.sczl_yjno,a.sczl_gxh,a.sczl_gxmc as sczl_type,a.sczl_rq,a.sczl_jtbh,a.sczl_ms,a.sczl_cl as 班组车头产量,a.sczl_Pgcl,a.sczl_zcfp,
|
|
|
@@ -85,7 +85,7 @@ class StaffSalary extends Api
|
|
|
}
|
|
|
$query->where($where);
|
|
|
$list = $query->select();
|
|
|
- $UniqId = \db('绩效工资汇总_temp')->field('UniqID')->order('UniqID desc')->find();
|
|
|
+ $UniqId = \db('绩效工资汇总')->field('UniqID')->order('UniqID desc')->find();
|
|
|
if (empty($UniqId)){
|
|
|
$UniqId = 1;
|
|
|
}else{
|
|
|
@@ -430,7 +430,7 @@ class StaffSalary extends Api
|
|
|
unset($data[$key]['核算产量']);
|
|
|
}
|
|
|
// halt($data);
|
|
|
- $res = \db('绩效工资汇总_temp')->insertAll($data);
|
|
|
+ $res = \db('绩效工资汇总')->insertAll($data);
|
|
|
if ($res){
|
|
|
$this->success('请求成功');
|
|
|
}else{
|