正在显示
2 个修改的文件
包含
42 行增加
和
1 行删除
@@ -368,7 +368,7 @@ class Order extends Api | @@ -368,7 +368,7 @@ class Order extends Api | ||
368 | ->alias('a') | 368 | ->alias('a') |
369 | ->join('teacher b','a.teacher_id = b.id') | 369 | ->join('teacher b','a.teacher_id = b.id') |
370 | ->where('a.finish_status',3) | 370 | ->where('a.finish_status',3) |
371 | - ->where('a.is_complaint',['=',1],['=',3],'or') | 371 | +// ->where('a.is_complaint',['=',1],['=',3],'or') |
372 | ->where('a.user_id',$user_id) | 372 | ->where('a.user_id',$user_id) |
373 | ->field('a.*,b.name,b.thumbnail') | 373 | ->field('a.*,b.name,b.thumbnail') |
374 | ->page($page,$pageNum) | 374 | ->page($page,$pageNum) |
@@ -417,6 +417,47 @@ class Order extends Api | @@ -417,6 +417,47 @@ class Order extends Api | ||
417 | $this->success('success',$data); | 417 | $this->success('success',$data); |
418 | } | 418 | } |
419 | 419 | ||
420 | + /** | ||
421 | + * @ApiTitle (查看总结) | ||
422 | + * @ApiSummary (查看总结) | ||
423 | + * @ApiMethod (POST) | ||
424 | + * @ApiRoute (/api/order/select) | ||
425 | + * | ||
426 | + * @ApiHeaders (name=token, type=string, required=true, description="请求的Token") | ||
427 | + * | ||
428 | + * @ApiParams (name="order_id", type="int", required=true, description="订单ID") | ||
429 | + * | ||
430 | + * @ApiReturn({ | ||
431 | + "code": 1, | ||
432 | + "msg": "成功", | ||
433 | + "time": "1571492001", | ||
434 | + "data": { | ||
435 | + 'id'://总结ID | ||
436 | + "background"://背景 | ||
437 | + "questions"://问题 | ||
438 | + "Research"://调研 | ||
439 | + "analyze"://分析 | ||
440 | + "conclusion"://结论 | ||
441 | + "plana"://方案一 | ||
442 | + "planb"://方案二 | ||
443 | + "planc"://方案三 | ||
444 | + } | ||
445 | + }) | ||
446 | + */ | ||
447 | + public function select() | ||
448 | + { | ||
449 | + $user_id = $this->getUserId(); | ||
450 | + $order_id = $this->request->param('order_id'); | ||
451 | + if(empty($order_id)){ | ||
452 | + $this->error('缺少必要参数'); | ||
453 | + } | ||
454 | + $data = Db::name('summarize') | ||
455 | + ->where('order_id',$order_id) | ||
456 | + ->field('order_id,createtime',true) | ||
457 | + ->find(); | ||
458 | + $this->success('success',$data); | ||
459 | + } | ||
460 | + | ||
420 | 461 | ||
421 | /** | 462 | /** |
422 | * @ApiTitle (老师身份我的订单列表) | 463 | * @ApiTitle (老师身份我的订单列表) |
此 diff 太大无法显示。
-
请 注册 或 登录 后发表评论