Commit 169a0f67 by 赵增煜

补全时间

parent c42efdc9
......@@ -58,12 +58,12 @@ public function prescriptionList(Request $request)
// 时间段
$start_time = $request->input('start_time');
if ($start_time) {
$start_time = $start_time . ' 00:00:00';
$start_time = $start_time.' 00:00:00';
$query->where('created_at', '>=', $start_time);
}
$end_time = $request->input('end_time');
if ($end_time) {
$end_time = $end_time . ' 23:59:59';
$end_time = $end_time.' 23:59:59';
$query->where('created_at', '<=', $end_time);
}
......
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 sign in to comment