This commit is contained in:
70
app/order/controller/IncomeCheck.php
Normal file
70
app/order/controller/IncomeCheck.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/*
|
||||
* @Descripttion:
|
||||
* @version:
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-10-13 19:52:37
|
||||
* @LastEditors: kangkang
|
||||
* @LastEditTime: 2020-10-23 18:26:27
|
||||
*/
|
||||
/*
|
||||
* @Descripttion:
|
||||
* @version:
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-10-13 19:52:37
|
||||
* @LastEditors: kangkang
|
||||
* @LastEditTime: 2020-10-14 20:04:16
|
||||
*/
|
||||
|
||||
namespace app\order\controller;
|
||||
|
||||
use app\order\model\IncomeCheck as CheckModel;
|
||||
use fastphp\base\Controller;
|
||||
|
||||
class IncomeCheck extends Controller
|
||||
{
|
||||
/**
|
||||
* @description: 数据列表
|
||||
* @param {*}
|
||||
* @return {*}
|
||||
*/
|
||||
public function getList()
|
||||
{
|
||||
$page = 0;
|
||||
if (isset($_GET['PageIndex'])) {
|
||||
$page = ($_GET['PageIndex'] - 1) * 50;
|
||||
}
|
||||
if (isset($_GET['ProductId'])){
|
||||
$where['ProductId'] = $_GET['ProductId'];
|
||||
}
|
||||
if (isset($_GET['PackageId'])){
|
||||
$where['PackageId'] = $_GET['PackageId'];
|
||||
}
|
||||
if (!empty($_GET['keyWord'])){
|
||||
$where['OrderNo'] = $_GET['keyWord'];
|
||||
}
|
||||
|
||||
$check_model = new CheckModel;
|
||||
$list = $check_model->getListPage([], '*', 'id desc', "$page,50");
|
||||
$data = [
|
||||
'Code' => 10000,
|
||||
'data' => $list,
|
||||
'msg' => '',
|
||||
'count' => (int)$check_model->getCount()['count'],
|
||||
];
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function search(){
|
||||
$data = json_decode(file_get_contents("php://input"), true)['time'];
|
||||
$check_model = new CheckModel;
|
||||
$list = $check_model->getListPage(['day_time'=>['>',$data[0]],'day_time'=>['<',$data[1]]], '*', 'id desc', "10000");
|
||||
$data = [
|
||||
'Code' => 30000,
|
||||
'data' => $list,
|
||||
'msg' => '',
|
||||
'count' => 0,
|
||||
];
|
||||
echo json_encode($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user