|
@@ -23,32 +23,24 @@ class Sample
|
|
|
|
|
|
public function getSampleObj()
|
|
|
{
|
|
|
- $task_id = request()->param('id','','int');
|
|
|
- $result = (new SampleBus())->getSampleObj($task_id);
|
|
|
+ $task_id = request()->param('task_id','','int');
|
|
|
+ $under_task_id = request()->param('under_id', '', 'int');
|
|
|
+ $result = (new SampleBus())->getSampleObj($task_id,$under_task_id);
|
|
|
return showSuccess($result);
|
|
|
}
|
|
|
|
|
|
public function createSampleId()
|
|
|
{
|
|
|
-//
|
|
|
-// $data=$this->request->post();
|
|
|
-// $task = Db::name('ccjc')->where('id',$data['id'])->field('task_class')->find();
|
|
|
-// $count = Db::name('cyd')->whereDay('createtime','today')->count();
|
|
|
-// if($task['task_class']=="例行监测"){
|
|
|
-// $id['id'] = 'LXJC'.date('Y').date('m').date('d').date('H').date('m').str_pad(($count+1),4,0,STR_PAD_LEFT);
|
|
|
-// }else{
|
|
|
-// $id['id'] = 'ZXJC'.date('Y').date('m').date('d').date('H').date('m').str_pad(($count+1),4,0,STR_PAD_LEFT);
|
|
|
-//
|
|
|
-// }
|
|
|
+ $task_id = request()->param('task_id', '', 'int');
|
|
|
+ $result = (new SampleBus())->createSampleId($task_id);
|
|
|
+ return showSuccess($result);
|
|
|
}
|
|
|
|
|
|
public function createSample()
|
|
|
{
|
|
|
+ $data = request()->param();
|
|
|
|
|
|
- return $this->jsonSuccessData($res);
|
|
|
- $data=[
|
|
|
- ''
|
|
|
- ];
|
|
|
+ return $data;
|
|
|
}
|
|
|
|
|
|
}
|