update
This commit is contained in:
parent
1956f2b25c
commit
dcb560ade6
|
@ -100,8 +100,6 @@ class FenceHouseController extends BaseApiController
|
||||||
{
|
{
|
||||||
$params = $this->request->param();
|
$params = $this->request->param();
|
||||||
$pageNo = $params['page_no'] ?? 1;
|
$pageNo = $params['page_no'] ?? 1;
|
||||||
$params['create_time'] = date('Y-m-d H:i:s', time());
|
|
||||||
$params['update_time'] = date('Y-m-d H:i:s', time());
|
|
||||||
$lists = Db::name('change_fence_house_log')->where('user_id', $this->userId)->append(['old_fence_house_name', 'new_fence_house_name'])
|
$lists = Db::name('change_fence_house_log')->where('user_id', $this->userId)->append(['old_fence_house_name', 'new_fence_house_name'])
|
||||||
->withAttr('old_fence_house_name',function ($value, $data){
|
->withAttr('old_fence_house_name',function ($value, $data){
|
||||||
return FenceHouse::where('id', $data['old_fence_house_id'])->value('fence_house_name');
|
return FenceHouse::where('id', $data['old_fence_house_id'])->value('fence_house_name');
|
||||||
|
|
Loading…
Reference in New Issue