时间：- if(session('iszb')=='是'){ 所属店铺：
} 产品分类：
清空查询 if(display(CONTROLLER_NAME.'/dayin')){ 打印}

ID | 所属店铺 | 产品编号 | 产品名称 | 产品大类 | 产品分类 | 产品规格 | 计量单位 | {$_REQUEST['time1']}-{$_REQUEST['time2']}统计
--- | --- | --- | --- | --- | --- | --- | --- | ---
入库 | 出库 | 库存
{$v.id} | {$v.shopid|get_shop_name=###} | {$v.bianhao} | {$v.title|msubstr=###,0,20} | {$v.dalei} | {$v.fenlei|msubstr=###,0,20} | {$v.type|msubstr=###,0,20} | {$v.danwei|msubstr=###,0,20} | if(isset($_REQUEST['time1']) && $_REQUEST['time1'] != ''&&isset($_REQUEST['time2']) && $_REQUEST['time2'] != ''){ $map['shijian'] =array(array('egt',I('time1').' 00:00:00'),array('elt',I('time2').' 59:59:59'));} $where['bianhao']=array("eq",$v['bianhao']); $map['_complex'] = $where; echo M('rukus')->where($map)->sum('shuliang'); $where=""; $map=""; | if(isset($_REQUEST['time1']) && $_REQUEST['time1'] != ''&&isset($_REQUEST['time2']) && $_REQUEST['time2'] != ''){ $map['shijian'] =array(array('egt',I('time1').' 00:00:00'),array('elt',I('time2').' 59:59:59'));} $where['bianhao']=array("eq",$v['bianhao']); $map['_complex'] = $where; echo M('chukus')->where($map)->sum('shuliang'); $where=""; $map=""; | {$v.kucun}