lrf402788946 4 年之前
父节点
当前提交
02dbce35bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/controller/patientemrs.js

+ 1 - 1
app/controller/patientemrs.js

@@ -26,7 +26,7 @@ class PatientEmrsController extends Controller {
   // GET /{id}
   // GET /{id}
   async fetch() {
   async fetch() {
     const { patientid, emrid } = this.ctx.params;
     const { patientid, emrid } = this.ctx.params;
-    const res = await this.service.fetchEmr({ id: patientid, emrid });
+    const res = await this.service.fetchEmr({ patientid, emrid });
     this.ctx.ok({ data: res });
     this.ctx.ok({ data: res });
   }
   }