...
|
...
|
@@ -347,6 +347,7 @@ class Attestation extends Api |
|
|
"address":"address",//详细地址
|
|
|
"project_num"://创建项目
|
|
|
"createtime"://入驻时间
|
|
|
"is_ti"://是否已经提交(1提交过2没有提交过)
|
|
|
}
|
|
|
})
|
|
|
*/
|
...
|
...
|
@@ -357,6 +358,14 @@ class Attestation extends Api |
|
|
->where('id',$user_id)
|
|
|
->find();
|
|
|
if($data['identity'] == 2){
|
|
|
|
|
|
$info = Db::name('attestation')->where('user_id',$user_id)->find();
|
|
|
if(!empty($info)){
|
|
|
$list['is_ti'] = 1;
|
|
|
}else{
|
|
|
$list['is_ti'] = 2;
|
|
|
}
|
|
|
|
|
|
//查询入驻消息 拿出 申请人名字
|
|
|
$res = Db::name('personage')
|
|
|
->where('user_id',$user_id)
|
...
|
...
|
@@ -380,6 +389,13 @@ class Attestation extends Api |
|
|
$list['createtime'] = date('Y-m-d H:i:s',$farm['createtime']);
|
|
|
$this->success('success',$list);
|
|
|
}elseif ($data['identity'] == 3){
|
|
|
//查询是否已经提交认证信息
|
|
|
$info = Db::name('attestation')->where('user_id',$user_id)->find();
|
|
|
if(!empty($info)){
|
|
|
$list['is_ti'] = 1;
|
|
|
}else{
|
|
|
$list['is_ti'] = 2;
|
|
|
}
|
|
|
//查询入驻消息 拿出 申请人名字
|
|
|
$res = Db::name('company')
|
|
|
->where('user_id',$user_id)
|
...
|
...
|
@@ -433,14 +449,15 @@ class Attestation extends Api |
|
|
{
|
|
|
$user_id = $this->getUserId();
|
|
|
$param = $this->request->param();
|
|
|
if(empty($param['province'])){
|
|
|
$this->error('缺少必要信息');
|
|
|
if(!empty($param['province'])){
|
|
|
$where['province'] = ['Like',"$param[province]%"];
|
|
|
}
|
|
|
if(!empty($param['city'])){
|
|
|
$where['city'] = ['eq',$param['city']] ;
|
|
|
}
|
|
|
if(empty($param['city'])){
|
|
|
$this->error('缺少必要信息');
|
|
|
if(!empty($param['county'])){
|
|
|
$where['county'] = ['eq',$param['county']];
|
|
|
}
|
|
|
$where['province'] = ['Like',"$param[province]%"];
|
|
|
$where['city'] = ['eq',$param['city']] ;
|
|
|
$where['status'] = ['eq',1];
|
|
|
$data = Db::name('government')
|
|
|
->where($where)
|
...
|
...
|
@@ -489,6 +506,7 @@ class Attestation extends Api |
|
|
'institution' => 'require',
|
|
|
'name'=>'require',
|
|
|
'identity'=>'require',
|
|
|
'institution_id'=>'require',
|
|
|
'farm_name'=>'require',
|
|
|
'project_num'=>'require',
|
|
|
'address' => 'require',
|
...
|
...
|
|