1
This commit is contained in:
@@ -107,6 +107,26 @@ class Production extends Base
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全部生成实例的main内容
|
||||
* @return \think\response\Json|void
|
||||
* @author wangjinlei
|
||||
*/
|
||||
public function getProductionMains(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"p_article_id" => "require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
|
||||
$mains = $this->production_article_main_obj->where('p_article_id',$data['p_article_id'])->where('state',0)->select();
|
||||
$re['mains'] = $mains;
|
||||
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除生产实例
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user