|
@@ -165,7 +165,7 @@ class AdminLightOrderController extends AdminBaseController |
|
@@ -165,7 +165,7 @@ class AdminLightOrderController extends AdminBaseController |
165
|
->join('temple t','l.temple_id=t.id')
|
165
|
->join('temple t','l.temple_id=t.id')
|
166
|
->join('temple_area ta','l.area_id=ta.id')
|
166
|
->join('temple_area ta','l.area_id=ta.id')
|
167
|
->where('lo.id',$id)
|
167
|
->where('lo.id',$id)
|
168
|
- ->field('lo.*,l.*,u.mobile,u.user_name,t.name as tname,ta.name as taname,lo.name as loname')
|
168
|
+ ->field('lo.*,l.*,u.mobile,u.user_name,t.name as tname,ta.name as taname,lo.name as loname,lo.id as loid')
|
169
|
->find();
|
169
|
->find();
|
170
|
|
170
|
|
171
|
$address = Db::name('temple')->where($where)->field('address')->distinct('true')->select();
|
171
|
$address = Db::name('temple')->where($where)->field('address')->distinct('true')->select();
|
|
@@ -195,13 +195,10 @@ class AdminLightOrderController extends AdminBaseController |
|
@@ -195,13 +195,10 @@ class AdminLightOrderController extends AdminBaseController |
195
|
public function editPost()
|
195
|
public function editPost()
|
196
|
{
|
196
|
{
|
197
|
$param = $this->request->param();
|
197
|
$param = $this->request->param();
|
198
|
- var_dump($param['content']);
|
|
|
199
|
- var_dump($param['id']);
|
|
|
200
|
- exit();
|
|
|
201
|
$param['create_time'] = time();
|
198
|
$param['create_time'] = time();
|
202
|
Db::name('light_order')->where('id', $param['id'])->update($param);
|
199
|
Db::name('light_order')->where('id', $param['id'])->update($param);
|
203
|
-// $lightService= new service\LightService();
|
|
|
204
|
-// $lightService->lightChange($param['light_id'],'01','01',$param['name']);
|
200
|
+ $lightService= new service\LightService();
|
|
|
201
|
+ $lightService->lightChange($param['light_id'],'01','01',$param['name'],$param['content']);
|
205
|
$this->success('编辑成功');
|
202
|
$this->success('编辑成功');
|
206
|
}
|
203
|
}
|
207
|
|
204
|
|