作者 sgj
1 个管道 的构建 通过 耗费 4 秒

进修信息列表

... ... @@ -19,6 +19,8 @@ class EagageController extends HomeBaseController
public function engagePost(){
$data=input();
$data['add_time']=time();
$data['user_id']=cmf_get_current_user_id();
$result=db('engage')->insert($data);
if ($result==1){
$this->success('');
... ... @@ -29,6 +31,4 @@ class EagageController extends HomeBaseController
}
\ No newline at end of file
... ...
... ... @@ -24,7 +24,23 @@ class ExpertController extends WeChatBaseController
return $this->fetch();
}
/**
* 获取进修提交列表
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function engageAnswer(){
$user_id=cmf_get_current_user_id();
$map['user_id']=$user_id;
$map['state']='0';
/*未处理信息*/
$undo=db('engage')->where($map)->select()->toArray();
$map['state']=['in','1,2'];
$redo=db('engage')->where($map)->select()->toArray();
$this->assign('undo',$undo);
$this->assign('redo',$redo);
return $this->fetch();
}
... ...