mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-05 22:55:32 +08:00
38 lines
891 B
PHP
38 lines
891 B
PHP
<?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);
|
||
}
|
||
}
|
||
?>
|