正在显示
1 个修改的文件
包含
10 行增加
和
0 行删除
| @@ -8,6 +8,7 @@ use App\Models\Manage\BelongingGroup; | @@ -8,6 +8,7 @@ use App\Models\Manage\BelongingGroup; | ||
| 8 | use App\Models\Manage\EntryPosition; | 8 | use App\Models\Manage\EntryPosition; |
| 9 | use App\Models\Manage\JobLevel; | 9 | use App\Models\Manage\JobLevel; |
| 10 | use App\Models\Manage\ManageHr; | 10 | use App\Models\Manage\ManageHr; |
| 11 | +use Illuminate\Support\Facades\Log; | ||
| 11 | 12 | ||
| 12 | 13 | ||
| 13 | /** | 14 | /** |
| @@ -37,12 +38,21 @@ class HrLogic extends BaseLogic | @@ -37,12 +38,21 @@ class HrLogic extends BaseLogic | ||
| 37 | } | 38 | } |
| 38 | 39 | ||
| 39 | public function save($param){ | 40 | public function save($param){ |
| 41 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND); | ||
| 40 | foreach ($this->model::specieField() as $v){ | 42 | foreach ($this->model::specieField() as $v){ |
| 41 | $param = $this->setJson($v,$param); | 43 | $param = $this->setJson($v,$param); |
| 42 | } | 44 | } |
| 45 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND); | ||
| 43 | return parent::save($param); | 46 | return parent::save($param); |
| 44 | } | 47 | } |
| 45 | 48 | ||
| 49 | + /** | ||
| 50 | + * @remark :获取详情 | ||
| 51 | + * @name :getHrInfo | ||
| 52 | + * @author :lyh | ||
| 53 | + * @method :post | ||
| 54 | + * @time :2023/7/25 9:27 | ||
| 55 | + */ | ||
| 46 | public function getHrInfo($id){ | 56 | public function getHrInfo($id){ |
| 47 | $data = $this->model->read(['id'=>$id]); | 57 | $data = $this->model->read(['id'=>$id]); |
| 48 | foreach ($this->model::specieField() as $v){ | 58 | foreach ($this->model::specieField() as $v){ |
-
请 注册 或 登录 后发表评论