rabin 2 years ago
parent
commit
faa9cae9ec
2 changed files with 13 additions and 2 deletions
  1. 12 1
      service/option/database/account.php
  2. 1 1
      service/option/database/agreement.php

+ 12 - 1
service/option/database/account.php

@@ -52,7 +52,7 @@ $is_idcard = array
 $agreement_status = array
 (
     0 => '合同审核状态',
-    //1 => '未提交审核',
+    'no' => '未签署',
     2 => '待审核',
     3 => '审核通过',
     4 => '审核未通过',
@@ -321,6 +321,7 @@ return array
                 'result' => 'aid',
                 'search' => 'id',
                 'option' => $agreement_status,
+                'no' => '(select aid from churen_option_agreement)',
             ) : 'hidden',
             # 读取另外表的关联方式
             'sync'      => array('id', 'aid'),
@@ -409,9 +410,19 @@ return array
                 'audit' => array('yes', 'in'),
                 'start_cdate' => array('yes-cdate', '>='),
                 'end_cdate' => array('yes-cdate', '<='),
+                //'no' => 'yes-NOT EXISTS (select * from churen_option_agreement as a where a.aid = churen_option_account.id)',
+                /*
+                'not' => array
+                (
+                    'table' => 'option/agreement',
+                    'on' => array('aid','id'),
+                ),
+                */
+                'no' => array('yes-id', 'not in'),
                 'status' => 'yes',
                 'state' => 1,
             ),
+
             'type' => 'all',
             'order' => array('id' => 'desc'),
             'page' => array(20, 'list'),

+ 1 - 1
service/option/database/agreement.php

@@ -8,7 +8,7 @@ $status = array
 );
 $audit = array
 (
-    1 => '未提交审核',
+    //1 => '未提交审核',
     2 => '待审核',
     3 => '审核通过',
     4 => '审核未通过',