补遗
This commit is contained in:
@@ -99,13 +99,46 @@ class FinanceCheck extends Controller
|
||||
|
||||
public function buyiList()
|
||||
{
|
||||
$where = [];
|
||||
$where2 = '';
|
||||
$page = 0;
|
||||
if (isset($_GET['page'])) {
|
||||
$page = ($_GET['page'] - 1) * 50;
|
||||
}
|
||||
|
||||
$product_ids = [
|
||||
'8' => 'xingxing',
|
||||
'6' => 'xianfeng',
|
||||
'13' => 'jike',
|
||||
'1' => 'qiangzi',
|
||||
'2' => 'xunlian',
|
||||
'14' => 'tiantian',
|
||||
'5' => 'laoying',
|
||||
'4' => 'jinrui',
|
||||
'7' => 'wujin',
|
||||
'9' => 'wanmei',
|
||||
'3' => 'jinqiao',
|
||||
'10' => 'wuxian',
|
||||
'16' => 'shihui',
|
||||
'15' => 'gongxiang',
|
||||
];
|
||||
|
||||
if (!empty($_GET['ProductId'])){
|
||||
$where['product'] = $product_ids[$_GET['ProductId']];
|
||||
}
|
||||
if (!empty($_GET['type'])){
|
||||
$where['type'] = $_GET['type'];
|
||||
}
|
||||
if (!empty($_GET['Btime'])){
|
||||
$date1 = date('Y-m-d', strtotime($_GET['Btime']));
|
||||
$date2 = date('Y-m-d', strtotime($_GET['Etime']));
|
||||
$where2 .= " riqi>='" . $date1 . "' and riqi<='" . $date2 . "' ";
|
||||
}
|
||||
|
||||
// dump($_GET);die;
|
||||
|
||||
$finance_model = new FinanceOperationModel;
|
||||
$list = $finance_model->getListPage([], '*', 'id desc', "$page,50");
|
||||
$list = $finance_model->getListSearch($where, $where2,'*', 'id desc', "$page,50");
|
||||
$types = ['充值', '退款', '补差价'];
|
||||
$products = [
|
||||
'xingxing' => '星星',
|
||||
|
||||
Reference in New Issue
Block a user