作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

bug修改

@@ -265,8 +265,11 @@ class AfterToBefore extends Api @@ -265,8 +265,11 @@ class AfterToBefore extends Api
265 $add_money = 0; 265 $add_money = 0;
266 } 266 }
267 // 社保基数 267 // 社保基数
268 - $social_top = config('site.social_top'); //社保封顶金额  
269 - $social_bottom = config('site.social_bottom'); //社保保底金额 268 + $social_top = config('site.social_top_after'); //社保封顶金额
  269 + $social_bottom = config('site.social_bottom_after'); //社保保底金额
  270 + // 公积金基数
  271 + $housing_fund_top = config('site.housing_fund_top_after'); //公积金封顶金额
  272 + $housing_fund_bottom = config('site.housing_fund_bottom_after'); //公积金保底金额
270 // 公积金缴存比例5%-7% 273 // 公积金缴存比例5%-7%
271 $social_rate_user = Db::name('social_insurance_rate')->where('id',1)->find(); 274 $social_rate_user = Db::name('social_insurance_rate')->where('id',1)->find();
272 $social_rate_company = Db::name('social_insurance_rate')->where('id',2)->find(); 275 $social_rate_company = Db::name('social_insurance_rate')->where('id',2)->find();
@@ -496,7 +499,7 @@ class AfterToBefore extends Api @@ -496,7 +499,7 @@ class AfterToBefore extends Api
496 // 社保汇缴基数 499 // 社保汇缴基数
497 $social_base = $salary_average > $social_top ? $social_top : ($salary_average < $social_bottom ? $social_bottom : $salary_average); 500 $social_base = $salary_average > $social_top ? $social_top : ($salary_average < $social_bottom ? $social_bottom : $salary_average);
498 // 公积金汇缴基数 501 // 公积金汇缴基数
499 - $housing_fund_base = $social_base; 502 + $housing_fund_base = $salary_average > $housing_fund_top ? $housing_fund_top : ($salary_average < $housing_fund_bottom ? $housing_fund_bottom : $salary_average);
500 $this->success('请求成功',compact('param','salary_average','social_user','social_user_money','social_company','social_company_money','person_fee_average','company_cost','user_go','company_go','social_base','housing_fund_base')); 503 $this->success('请求成功',compact('param','salary_average','social_user','social_user_money','social_company','social_company_money','person_fee_average','company_cost','user_go','company_go','social_base','housing_fund_base'));
501 504
502 } 505 }
@@ -46,4 +46,8 @@ return array ( @@ -46,4 +46,8 @@ return array (
46 'social_bottom' => '4927', 46 'social_bottom' => '4927',
47 'housing_fund_top' => '28017', 47 'housing_fund_top' => '28017',
48 'housing_fund_bottom' => '2480', 48 'housing_fund_bottom' => '2480',
  49 + 'social_top_after' => '28017',
  50 + 'social_bottom_after' => '4927',
  51 + 'housing_fund_top_after' => '28017',
  52 + 'housing_fund_bottom_after' => '4927',
49 ); 53 );