|
@@ -503,6 +503,31 @@ return array
|
|
|
// 'order' => array('cdate'=>'desc'),
|
|
|
'col' => 'sum(cash) as cash,sum(total_num) as total_num,sum(sell_num) as sell_num,price',
|
|
|
),
|
|
|
+
|
|
|
+ 'getDhTotal' => array
|
|
|
+ (
|
|
|
+ # 匹配的正则或函数 选填项
|
|
|
+ 'option' => array
|
|
|
+ (
|
|
|
+ 'fstart' => array('yes-t_2.ddate','>='),
|
|
|
+ 'fend' => array('yes-t_2.ddate','<='),
|
|
|
+ 'mid' => 'yes-t_1.mid',
|
|
|
+ 'type' => array('yes-t_1.type','in'),
|
|
|
+ 'type_id' => 'yes-t_1.type_id',
|
|
|
+ 'state' => 'yes-t_1.state-1',
|
|
|
+ ),
|
|
|
+ 'join' => array
|
|
|
+ (
|
|
|
+ 'table' => 'card/code',
|
|
|
+ 'type' => 'left join',
|
|
|
+ 'on' => array('id', 'sku_id'),
|
|
|
+ 'col' => 't_2.id as cid',
|
|
|
+ ),
|
|
|
+ 'type' => 'one',
|
|
|
+ // 'order' => array('cdate'=>'desc'),
|
|
|
+ 'col' => 'id,sum(t_1.cash) as cash,sum(t_1.total_num) as total_num,sum(t_1.sell_num) as sell_num,t_1.price',
|
|
|
+ ),
|
|
|
+
|
|
|
'getProduct' => array
|
|
|
(
|
|
|
# 匹配的正则或函数 选填项
|