Commit a0650666 authored by hujun's avatar hujun

show

parent 0407dd27
......@@ -82,39 +82,47 @@ class Finance extends Basic
$where['a.father_id'] = 0;
$where['a.status'] = 11;
$order = 'a.id desc';
$is_show = 1;
$is_show = 0;
if (!empty($this->params['create_time']) && empty($this->params['end_time'])) {
$where['a.create_time'] = [ '> time', $this->params['create_time'] . ' 00:00:00' ];
$is_show = 1;
}
if (!empty($this->params['end_time']) && empty($this->params['create_time'])) {
$where['a.create_time'] = [ '< time', $this->params['end_time'] . ' 23:59:59' ];
$is_show = 1;
}
if (!empty($this->params['end_time']) && !empty($this->params['create_time'])) {
$where['a.create_time'] = [ 'between time', [ $this->params['create_time'] . ' 00:00:00', $this->params['end_time'] . ' 23:59:59' ] ];
$is_show = 1;
}
if (!empty($this->params['internal_address'])) {
$where['d.internal_address'] = [ 'like', '%' . $this->params['internal_address'] . '%' ];
$is_show = 1;
}
if (!empty($this->params['user_phone'])) {
$where['b.user_phone'] = [ 'like', '%' . $this->params['user_phone'] . '%' ];
$is_show = 1;
}
if (!empty($this->params['house_number'])) {
$where['a.house_number'] = [ 'like', '%' . $this->params['house_number'] . '%' ];
$is_show = 1;
}
//商铺类型(0商场,1街铺)
if (isset($this->params['shop_type']) && $this->params['shop_type'] != -1) {
$where['d.shop_type'] = $this->params['shop_type'];
$is_show = 1;
}
if (!empty($this->params['bargain_id'])) {
$where['a.id'] = $this->params['bargain_id'];
$is_show = 1;
}
switch ($check_status) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment