Your Name 3 vuotta sitten
vanhempi
commit
e507ad0cc4
2 muutettua tiedostoa jossa 35 lisäystä ja 3 poistoa
  1. 32 0
      app/shop/database/info.php
  2. 3 3
      service/bill/database/shop_stat.php

+ 32 - 0
app/shop/database/info.php

@@ -594,6 +594,16 @@ return array
             'update'    => 'textarea',
         ),
 
+        // 'price'      => array
+        // (
+        //     'type'      => 'varchar-50',
+        //     'name'      => '资金账户-单位为元',
+        //     'default'   => '0',
+        //     'desc'      => '资金账户',
+        //     'match'     => 'option',
+        //     'update'    => 'text',
+        // ),
+
         'stat_type'        => array
         (
             'type'      => 'int-11',
@@ -717,6 +727,16 @@ return array
 
     'request' => array
     (
+        'getSearch' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'col' => array('yes-sid,name', 'like'),
+            ),
+            'type' => 'all',
+            'col' => '*|id',
+        ),
         # 获取单条数据
         'getOne' => array
         (
@@ -866,5 +886,17 @@ return array
             'type' => 'count',
             'col' => '*',
         ),
+        'upCash' => array
+        (
+            'type' => 'update',
+            'where' => array
+            (
+                'id' => 'yes',
+            ),
+            'set' => array
+            (
+                'price' => array('yes', '+='),
+            ),
+        ),
     ),
 );

+ 3 - 3
service/bill/database/shop_stat.php

@@ -65,15 +65,15 @@ $config = array
         'shop_id'      => array
         (
             'type'      => 'int-11',
-            'name'      => '店铺名称',
+            'name'      => '店铺名称/店铺编号',
             'default'   => '',
             'desc'      => '店铺名称',
             'match'     => 'is_numeric',
             'option'    => $shop,
             'search'    => array
             (
-                'api' => 'shop/info-like',
-                'col' => 'name',
+                'api' => 'shop/info-getSearch',
+                'col' => 'col',
                 'result' => 'id',
             ) ,
             'list_name' => '门店名称<br/>门店编号<br/>所属代理商',