切换导航条
此项目
正在载入...
登录
root
/
chengxiang
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
7c3939772247bdfd7d8e17e266601ff853dad232
1 个父辈
bce596ea
1 个管道 的构建
通过
耗费 1 秒
代理人注册
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
22 行增加
和
5 行删除
app/admin/controller/OrderController.php
public/themes/admin_simpleboot3/admin/order/index.html
app/admin/controller/OrderController.php
查看文件 @
7c39397
...
...
@@ -17,6 +17,7 @@ class OrderController extends AdminBaseController
{
public
function
index
(){
$where
=
[];
$whereor
=
''
;
$param
=
$this
->
request
->
param
();
$startTime
=
empty
(
$param
[
'start_time'
])
?
0
:
strtotime
(
$param
[
'start_time'
]);
$endTime
=
empty
(
$param
[
'end_time'
])
?
0
:
strtotime
(
$param
[
'end_time'
]);
...
...
@@ -34,9 +35,24 @@ class OrderController extends AdminBaseController
if
(
!
empty
(
$keyword
))
{
$where
[
'u.nickname'
]
=
[
'like'
,
"%
$keyword
%"
];
}
$time
=
time
();
$status
=
empty
(
$param
[
'status'
])
?
''
:
$param
[
'status'
];
if
(
!
empty
(
$status
))
{
$where
[
'a_a.status'
]
=
[
'eq'
,
"%
$status
%"
];
if
(
!
empty
(
$status
)){
//0为全部1为托管中2为即将到期3为未托管
if
(
$param
[
'status'
]
==
1
){
$where
[
'o.status'
]
=
[
'eq'
,
1
];
$where
[
'o.order_about_time'
]
=
[
'>'
,
$time
];
$whereor
=
"o.status = 3 and o.order_about_time >
$time
"
;
}
else
if
(
$param
[
'status'
]
==
2
){
$where
[
'o.status'
]
=
[
'eq'
,
3
];
$where
[
'c.insurer'
]
=
[
'eq'
,
$param
[
'insurer'
]];
$where
[
'o.order_about_time'
]
=
[
'<'
,
$time
];
$where
[
'o.order_expire_time'
]
=
[
'>'
,
$time
];
// $whereor = "o.status = 3 and o.order_about_time < $time";
}
else
if
(
$param
[
'status'
]
==
3
){
$where
[
'o.status'
]
=
[
'eq'
,
2
];
$where
[
'c.insurer'
]
=
[
'eq'
,
$param
[
'insurer'
]];
$whereor
=
"o.status = 3 and o.order_expire_time <
$time
"
;
}
}
$field
=
"c.*,i_c.thumbnail,i_c.insurance_company_name,o.order_expire_time,o.order_about_time,o.status,o.id o_id,o.pay_time,o.num"
;
$data
=
Db
::
name
(
'order_info'
)
...
...
@@ -47,6 +63,7 @@ class OrderController extends AdminBaseController
->
join
(
'cmf_insurance_company i_c'
,
'c.insurance_company_id = i_c.id'
)
->
where
(
'c.delete_time'
,
0
)
->
where
(
$where
)
->
where
(
$whereor
)
->
order
(
'o.create_time desc'
)
->
paginate
(
10
);
$data
->
appends
(
$param
);
...
...
public/themes/admin_simpleboot3/admin/order/index.html
查看文件 @
7c39397
...
...
@@ -9,9 +9,9 @@
状态:
<select
class=
"form-control"
name=
"status"
>
<option
value=
"0"
<
if
condition=
"$status eq 0"
>
selected
</if>
>全部
</option>
<option
value=
"1"
<
if
condition=
"$status eq 1"
>
selected
</if>
>未托管
</option>
<option
value=
"2"
<
if
condition=
"$status eq 2"
>
selected
</if>
>已托管
</option>
<option
value=
"3"
<
if
condition=
"$status eq 3"
>
selected
</if>
>即将到期
</option>
<option
value=
"1"
<
if
condition=
"$status eq 1"
>
selected
</if>
>托管中
</option>
<option
value=
"2"
<
if
condition=
"$status eq 2"
>
selected
</if>
>即将到期
</option>
<option
value=
"3"
<
if
condition=
"$status eq 3"
>
selected
</if>
>未托管
</option>
</select>
关键字:
<input
type=
"text"
class=
"form-control"
name=
"keyword"
style=
"width: 150px;"
value=
"{$keyword|default=''}"
placeholder=
"请输入关键字..."
>
...
...
请
注册
或
登录
后发表评论