|
@@ -27,6 +27,7 @@ class appointmentlogic extends baselogic
|
|
|
'finishedbyaid' => [
|
|
|
['name' => 'appointment_id', 'title' => '申请id', 'require' => true, 'type' => 'numeric'],
|
|
|
['name' => 'testtubeno', 'title' => '测试管号', 'require' => true, 'type' => 'numeric'],
|
|
|
+ ['name' => 'testtype', 'title' => '测试类型', 'require' => true, 'type' => 'numeric'],
|
|
|
],
|
|
|
];
|
|
|
return $list;
|
|
@@ -77,8 +78,13 @@ class appointmentlogic extends baselogic
|
|
|
$data = $result['data'];
|
|
|
$aid = $data['appointment_id'];
|
|
|
$testtubeno = $data['testtubeno'];
|
|
|
+ $testtype = $data['testtype'];
|
|
|
$m_t = new tubemodel();
|
|
|
$m_a = new appointmentmodel();
|
|
|
+ $testtypelist = $m_t->gettesttypelist();
|
|
|
+ if (!isset($testtypelist[$testtype])) {
|
|
|
+ return backarr(0, "测试类型错误");
|
|
|
+ }
|
|
|
$where = ['id' => $aid];
|
|
|
$field = ['name', 'sfzid', 'telno', 'signurl', 'oprdate', 'ispay', 'isuse', 'payorderno', 'openid', 'code', 'id'];
|
|
|
$ainfo = $m_a->getInfo($where, $field);
|
|
@@ -124,4 +130,17 @@ class appointmentlogic extends baselogic
|
|
|
return backarr(0, $e->getMessage());
|
|
|
}
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 获取测试类型
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ * @author wj
|
|
|
+ * @date 2022-07-26
|
|
|
+ */
|
|
|
+ public function gettesttypelist()
|
|
|
+ {
|
|
|
+ $t_m = new tubemodel();
|
|
|
+ $list = $t_m->gettesttypelist();
|
|
|
+ return $list;
|
|
|
+ }
|
|
|
}
|