浏览代码

提交提交数据

lvhao 3 天之前
父节点
当前提交
1cbef4613a
共有 1 个文件被更改,包括 79 次插入0 次删除
  1. 79 0
      core/CoreApp/controllers/Warehouse.php

+ 79 - 0
core/CoreApp/controllers/Warehouse.php

@@ -642,6 +642,85 @@ class Warehouse extends Start_Controller {
 							    	}
 								
 							}
+							// 1255  HD 4*7 Closure Wig  HD 5*7 Closure Wig 如果有货,给提醒
+							if(stripos($cp,'-1255-') !== false)
+							{
+								$cc1 = explode('-',trim($cc[1],'-'));
+								$newcp = '-';
+								foreach ($cc1 as $kk=>$vv)
+		   					    {
+									if($kk == 1)
+									{
+                					    $newcp .= $vv.'-'.$cc[0].'-';
+									}
+									else
+									{
+										$newcp .= $vv.'-';
+									}
+            					}
+								$gpp = str_replace('-1255-','-2147-',$newcp);
+									$ccxh = $this->whlabel->find_count("state = '0' and features = '$gpp' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");//通用
+									if($ccxh >= $num[1])
+				                	{
+				        	        	$hdtx .= $v['title'].' - 5*7有货;';
+							    	}
+								
+							}
+
+							// 1323  4*7 Bob Wig  5*7 Bob Wig 如果有货,给提醒
+							if(stripos($cp,'-1323-') !== false)
+							{
+								$cc1 = explode('-',trim($cc[1],'-'));
+								$newcp = '-';
+								foreach ($cc1 as $kk=>$vv)
+		   					    {
+									if($kk == 1)
+									{
+                					    $newcp .= $vv.'-'.$cc[0].'-';
+									}
+									else
+									{
+										$newcp .= $vv.'-';
+									}
+            					}
+								$gpp = str_replace('-1323-','-2167-',$newcp);
+									$ccxh = $this->whlabel->find_count("state = '0' and features = '$gpp' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");//通用
+									if($ccxh >= $num[1])
+				                	{
+				        	        	$hdtx .= $v['title'].' - 5*7有货;';
+							    	}
+								
+							}
+
+							// 1257  HD 4*7 Bob Wig  HD 5*7 Bob Wig 如果有货,给提醒
+							if(stripos($cp,'-1257-') !== false)
+							{
+								$cc1 = explode('-',trim($cc[1],'-'));
+								$newcp = '-';
+								foreach ($cc1 as $kk=>$vv)
+		   					    {
+									if($kk == 1)
+									{
+                					    $newcp .= $vv.'-'.$cc[0].'-';
+									}
+									else
+									{
+										$newcp .= $vv.'-';
+									}
+            					}
+								$gpp = str_replace('-1257-','-2434-',$newcp);
+									$ccxh = $this->whlabel->find_count("state = '0' and features = '$gpp' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");//通用
+									if($ccxh >= $num[1])
+				                	{
+				        	        	$hdtx .= $v['title'].' - 5*7有货;';
+							    	}
+								
+							}
+
+
+
+
+
 							// 5*5没货的,5*7、5*9如果有货,给提醒
 							if(stripos($cp,'-297-') !== false) //13*4  HD13*4
 							{