Files
OMS/app/wms/lib/batch/log.php
2025-12-28 23:13:25 +08:00

38 lines
891 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class wms_batch_log{
function getStatus($status){
$status_array = array(
'0' => '等待中',
'1' => '已处理',
'2' => '处理中',
);
return $status_array[$status];
}
function get_List($log_type,$log_id,$status){
$db = kernel::database();
$log_id = implode(',',$log_id);
$sqlstr = [];
if($log_type){
$sqlstr[]=' log_type=\''.$log_type.'\'';
}
if($log_id){
$sqlstr[]=' log_id in ('.$log_id.')';
}
if($sqlstr){
$sqlstr= 'WHERE '.implode(' AND ',$sqlstr);
}
$sql = 'SELECT * FROM sdb_wms_batch_log '.$sqlstr.' ORDER BY log_id DESC';
return $db->select($sql);
}
}
?>