|
@@ -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
|
|
|
{
|