|
@@ -12,14 +12,15 @@ use think\exception\ValidateException;
|
|
|
|
|
|
class Cyd
|
|
|
{
|
|
|
+ //监管端获取抽样单列表
|
|
|
public function getCydList()
|
|
|
{
|
|
|
$task_id = request()->param('task_id', '', 'int');
|
|
|
- try {
|
|
|
- validate(\app\api\validate\Sample::class)->scene('get_cyd_list')->check($task_id);
|
|
|
- } catch (ValidateException $exception) {
|
|
|
- return show(config('status.err_validate'),$exception->getError());
|
|
|
- }
|
|
|
+// try {
|
|
|
+// validate(\app\api\validate\Sample::class)->scene('get_cyd_list')->check($task_id);
|
|
|
+// } catch (ValidateException $exception) {
|
|
|
+// return show(config('status.err_validate'),$exception->getError());
|
|
|
+// }
|
|
|
|
|
|
$result = (new CydBus())->getCydList($task_id);
|
|
|
if ($result['total'] == 0) {
|
|
@@ -27,4 +28,14 @@ class Cyd
|
|
|
}
|
|
|
return showSuccess($result);
|
|
|
}
|
|
|
+
|
|
|
+ public function updateCydStatus()
|
|
|
+ {
|
|
|
+ $cyd_id = request()->param('cyd_id', '', 'int');
|
|
|
+ $result = (new CydBus())->updateCydStatus($cyd_id);
|
|
|
+ return showSuccess($result);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|