1.提交缺失的东西
This commit is contained in:
@ -926,17 +926,9 @@ class OrderLogic extends LogicBase
|
||||
}
|
||||
|
||||
public static function getYuyueTime($data){
|
||||
$time = "TIME(
|
||||
CONCAT(
|
||||
LPAD(SUBSTRING_INDEX(start_time, ':', 1), 2, '0'),
|
||||
':',
|
||||
LPAD(SUBSTRING_INDEX(start_time, ':', -1), 2, '0'),
|
||||
':00'
|
||||
)
|
||||
)";
|
||||
return Db::name("order_yuyetime")
|
||||
->where("store_id",$data['store_id'])
|
||||
->order($time)
|
||||
->orderRaw("STR_TO_DATE(start_time, '%H:%i')")
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user