新零售是什么模式
新零售简单来说就是一种新型的物流销售模式。
即企业以互联网为依托,通过运用大数据、人工智能等先进技术手段,对商品的生产、流通与销售过程进行升级改造,进而重塑业态结构与生态圈,并对线上服务、线下体验以及现代物流进行深度融合的零售新模式。
人工智能(Artificial Intelligence,简称AI)是指计算机系统在完成类似人类智力所需的任务时所表现出来的能力。它是一种复杂的技术,通过将大量的数据输入到算法中进行学习,不断调整和改进自己的算法,从而不断优化其性能。
/**
*/
namespace AdminController;
use CommonControllerAdminbaseController;
class CashController extends AdminbaseController{
var$type=array(
'1'=>
'2'=>
'3'=>
);
function index(){
if($_REQUEST['status']!=''){
$map['status']=$_REQUEST['status'];
$_GET['status']=$_REQUEST['status'];
$cash['type']=1;
}
if($_REQUEST['start_time']!=''){
$map['addtime']=array("gt",strtotime($_REQUEST['start_time']));
$_GET['start_time']=$_REQUEST['start_time'];
}
if($_REQUEST['end_time']!=''){
$map['addtime']=array("lt",strtotime($_REQUEST['end_time']));
$_GET['end_time']=$_REQUEST['end_time'];
}
if($_REQUEST['start_time']!=''&&$_REQUEST['end_time']!=''){
$map['addtime']=array("between",array(strtotime($_REQUEST['start_time']),strtotime($_REQUEST['end_time'])));
$_GET['start_time']=$_REQUEST['start_time'];
$_GET['end_time']=$_REQUEST['end_time'];
}
if($_REQUEST['keyword']!=''){
$map['uid|orderno|trade_no']=array("like","%".$_REQUEST['keyword']."%");
$_GET['keyword']=$_REQUEST['keyword'];
}
$cashrecord=M("users_cashrecord");
$count=$cashrecord->where($map)->count();
$page=$this->page($count,20);
$lists=$cashrecord
->where($map)
->order("addtime DESC")
->limit($page->firstRow.','.$page->listRows)
->select();
foreach($lists as$k=>$v){
$userinfo=M("users")->field("user_nicename")->where("id='$v[uid]'")->find();
$lists[$k]['userinfo']=$userinfo;
}
$cashrecord_total=$cashrecord->where($map)->sum("paid_in");
if($_REQUEST['status']=='')
{
$success=$map;
$success['status']=1;
$fail=$map;
$fail['status']=0;
$cashrecord_success=$cashrecord->where($success)->sum("paid_in");
$cashrecord_fail=$cashrecord->where($fail)->sum("paid_in");
$cash['success']=$cashrecord_success;
$cash['fail']=$cashrecord_fail;
$cash['type']=0;
}
$cash['total']=$cashrecord_total;
$this->assign('cash',$cash);
$this->assign('lists',$lists);
$this->assign('formget',$_GET);
$this->assign('type',$this->type);
$this->assign("page",$page->show('Admin'));
$this->display();
}
}