|
@@ -218,7 +218,7 @@ class Whlabelfz1 extends Start_Controller
|
|
|
$warehouse = $this->input->post('warehouse', true);
|
|
|
|
|
|
//这里的仓库是隐藏传递的所以不需要判断
|
|
|
- $where_sql = " state = 0 and warehouse and ".$warehouse." ";
|
|
|
+ $where_sql = " state = 0 and warehouse = ".$warehouse." ";
|
|
|
if(!empty($post['purchase'])){
|
|
|
$where_sql .= " and purchase = ".$post['purchase']." ";
|
|
|
}
|
|
@@ -286,8 +286,6 @@ class Whlabelfz1 extends Start_Controller
|
|
|
} else {
|
|
|
$start = ($page - 1) * $perpage;
|
|
|
}
|
|
|
- var_dump($where_sql);
|
|
|
- die;
|
|
|
$get_model = $this->db->from("whlabel")->where($where_sql)->select("id,number,purchase,sku,warehouse,title,details,cpid,COUNT(id) AS total_num")->group_by('number');
|
|
|
if(!empty($post['dopx'])){
|
|
|
if($post['dopx'] == 1){
|