|
@@ -1403,44 +1403,14 @@ class Whlabel extends Start_Controller {
|
|
$state = $this->input->post('state',true);
|
|
$state = $this->input->post('state',true);
|
|
$shop = $this->input->post('shop',true);
|
|
$shop = $this->input->post('shop',true);
|
|
$lacecolor = $this->input->post('lacecolor',true);
|
|
$lacecolor = $this->input->post('lacecolor',true);
|
|
|
|
+ $hairnumber = $this->input->post('hairnumber',true);
|
|
$type = $this->input->post('type',true);
|
|
$type = $this->input->post('type',true);
|
|
$ktime = $this->input->post('ktime',true);
|
|
$ktime = $this->input->post('ktime',true);
|
|
$jtime = $this->input->post('jtime',true);
|
|
$jtime = $this->input->post('jtime',true);
|
|
$ktime = strtotime($ktime);
|
|
$ktime = strtotime($ktime);
|
|
$jtime = strtotime($jtime);
|
|
$jtime = strtotime($jtime);
|
|
$where = "1=1";$gj = "";$ck = "";
|
|
$where = "1=1";$gj = "";$ck = "";
|
|
- if($lacetype)
|
|
|
|
- {
|
|
|
|
- $where .= " and features like '%-$lacetype-%'";
|
|
|
|
- }
|
|
|
|
- if($category)
|
|
|
|
- {
|
|
|
|
- $where .= " and features like '%-$category-%'";
|
|
|
|
- }
|
|
|
|
- if($size)
|
|
|
|
- {
|
|
|
|
- $where .= " and features like '%-$size-%'";
|
|
|
|
- }
|
|
|
|
- if($grade)
|
|
|
|
- {
|
|
|
|
- $where .= " and features like '%-$grade-%'";
|
|
|
|
- }
|
|
|
|
- if($color)
|
|
|
|
- {
|
|
|
|
- $where .= " and features like '%-$color-%'";
|
|
|
|
- }
|
|
|
|
- if($lowe)
|
|
|
|
- {
|
|
|
|
- $where .= " and features like '%-$lowe-%'";
|
|
|
|
- }
|
|
|
|
- if($haircap)
|
|
|
|
- {
|
|
|
|
- $where .= " and features like '%-$haircap-%'";
|
|
|
|
- }
|
|
|
|
- if($density)
|
|
|
|
- {
|
|
|
|
- $where .= " and features like '%-$density-%'";
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
if($usa)
|
|
if($usa)
|
|
{
|
|
{
|
|
if(!$warehouse)
|
|
if(!$warehouse)
|
|
@@ -1468,10 +1438,7 @@ class Whlabel extends Start_Controller {
|
|
{
|
|
{
|
|
$where .= " and shop like '%$shop%'";
|
|
$where .= " and shop like '%$shop%'";
|
|
}
|
|
}
|
|
- if($lacecolor)
|
|
|
|
- {
|
|
|
|
- $where .= " and features like '%-$lacecolor-%'";
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
if($type)
|
|
if($type)
|
|
{
|
|
{
|
|
$where .= " and type = '$type'";
|
|
$where .= " and type = '$type'";
|
|
@@ -1481,6 +1448,59 @@ class Whlabel extends Start_Controller {
|
|
$gj = " and enter > '$ktime' and enter < '$jtime'";
|
|
$gj = " and enter > '$ktime' and enter < '$jtime'";
|
|
$ck = " and outk > '$ktime' and outk < '$jtime'";
|
|
$ck = " and outk > '$ktime' and outk < '$jtime'";
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if($lacecolor)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and features like '%-$lacecolor-%'";
|
|
|
|
+ }
|
|
|
|
+ if($lacetype)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and features like '%-$lacetype-%'";
|
|
|
|
+ }
|
|
|
|
+ if($category)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and features like '%-$category-%'";
|
|
|
|
+ }
|
|
|
|
+ if($size)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and features like '%-$size-%'";
|
|
|
|
+ }
|
|
|
|
+ if($grade)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and features like '%-$grade-%'";
|
|
|
|
+ }
|
|
|
|
+ if($color)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and features like '%-$color-%'";
|
|
|
|
+ }
|
|
|
|
+ if($lowe)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and features like '%-$lowe-%'";
|
|
|
|
+ }
|
|
|
|
+ if($haircap)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and features like '%-$haircap-%'";
|
|
|
|
+ }
|
|
|
|
+ if($density)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and features like '%-$density-%'";
|
|
|
|
+ }
|
|
|
|
+ if(!empty($hairnumber)){
|
|
|
|
+ $where .= " and features like '%-128-%' ";
|
|
|
|
+ if($hairnumber < 0){
|
|
|
|
+ $class_list = $this->typeclass->find_all('classid = 43');
|
|
|
|
+ foreach($class_list as $v){
|
|
|
|
+ $where .= " and features not like '%-".$v['id']."-%'";
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ $where .= " and features like '%-$hairnumber-%'";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
//数据排序
|
|
//数据排序
|
|
$order_str = "id desc";
|
|
$order_str = "id desc";
|
|
if(empty($page))
|
|
if(empty($page))
|
|
@@ -1511,7 +1531,7 @@ class Whlabel extends Start_Controller {
|
|
{
|
|
{
|
|
$wt[$v['id']] = $v['title'];
|
|
$wt[$v['id']] = $v['title'];
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
//$where .= " and time > '$ktime' and time < '$jtime'";
|
|
//$where .= " and time > '$ktime' and time < '$jtime'";
|
|
$info_list = $this->whlabel->find_pc($where.$fjnr,'sku,purchase,features,warehouse','id,warehouse,purchase,sku,title,details,shop,cpbz,type,features,number,sm',$order_str,$start,$perpage);//改这需要修改_gbhtype
|
|
$info_list = $this->whlabel->find_pc($where.$fjnr,'sku,purchase,features,warehouse','id,warehouse,purchase,sku,title,details,shop,cpbz,type,features,number,sm',$order_str,$start,$perpage);//改这需要修改_gbhtype
|
|
|
|
|
|
@@ -2927,7 +2947,7 @@ class Whlabel extends Start_Controller {
|
|
{
|
|
{
|
|
$pid .= " id = ".$v." or";
|
|
$pid .= " id = ".$v." or";
|
|
}
|
|
}
|
|
- $fullorderexcel = $this->fullorderexcel->find_all("type = '100002' and (".rtrim($pid,'or').")",'*','idorder desc');//导出模板
|
|
|
|
|
|
+ $fullorderexcel = $this->fullorderexcel->find_all("1 = 1",'*','idorder desc');//导出模板
|
|
$this->data['fullorderexcel'] = $fullorderexcel;
|
|
$this->data['fullorderexcel'] = $fullorderexcel;
|
|
$orderurl = $this->orderurl->find_all(rtrim($fgshop,'or'));
|
|
$orderurl = $this->orderurl->find_all(rtrim($fgshop,'or'));
|
|
$this->data['orderurl'] = $orderurl;
|
|
$this->data['orderurl'] = $orderurl;
|