$where
=
array
();
if
(
$product_id
)
{
$where
[
'lq_product_id'
] =
$product_id
;
}
if
(
$qrcode
)
{
$where
[
'lq_qrcode'
] =
$qrcode
;
}
if
(
$lq_user
)
{
$where
[
'lq_user'
] =
$lq_user
;
}
$page_list_num
= 100;
$cls_log
= cls_app:: get_cls(
'log'
);
$cls_log
->set_collection(
'log_data'
);
$list
=
$cls_log
->get_list(
$page
,
$page_list_num
,
$where
,
array
(
'lq_time'
=> -1 ) );
$cls_log_his
=
new
cls_log (
'bullfrog_history'
);
$cls_log_his
-> set_db(
'log'
);
$cls_log_his
-> set_collection(
'log_data_201904062230'
);
$list_his
=
$cls_log_his
->get_list(
$page
,
$page_list_num
,
$where
,
array
(
'lq_time'
=> -1 ) );
$list_all
=
array_merge
(
$list
,
$list_his
);