...
|
...
|
@@ -198,16 +198,16 @@ class Order extends Backend |
|
|
$data = Db::name('summarize')
|
|
|
->where('order_id',$ids)
|
|
|
->find();
|
|
|
$name = Db::name('order')
|
|
|
->alias('a')
|
|
|
->join('teacher b','a.teacher_id = b.id')
|
|
|
->where('a.id',$ids)
|
|
|
->field('b.name')
|
|
|
->find();
|
|
|
$data['teacher_name'] = $name['name'];
|
|
|
if(empty($data)){
|
|
|
$this->error('暂无总结');
|
|
|
}else{
|
|
|
$name = Db::name('order')
|
|
|
->alias('a')
|
|
|
->join('teacher b','a.teacher_id = b.id')
|
|
|
->where('a.id',$ids)
|
|
|
->field('b.name')
|
|
|
->find();
|
|
|
$data['teacher_name'] = $name['name'];
|
|
|
$data['createtime'] = date('Y-m-d H:i:s',$data['createtime']);
|
|
|
$this->assign('data',$data);
|
|
|
return $this->view->fetch();
|
...
|
...
|
|