lvhao 5 روز پیش
والد
کامیت
2097c7ac94
1فایلهای تغییر یافته به همراه52 افزوده شده و 0 حذف شده
  1. 52 0
      core/CoreApp/controllers/Fullorderexcel.php

+ 52 - 0
core/CoreApp/controllers/Fullorderexcel.php

@@ -1697,6 +1697,7 @@ class Fullorderexcel extends Start_Controller {
 			$xdcs = $this->input->get('xdcs',true);
 			$xdcs = $this->input->get('xdcs',true);
 			$dbapi = $this->input->get('dbapi',true);
+			$dbapinocc = $this->input->get('dbapinocc',true);
 			$orderurl = $this->input->get('orderurl',true);
 			$timetk = strtotime($timetk);
 			$timetj = strtotime($timetj);
@@ -1909,6 +1910,11 @@ class Fullorderexcel extends Start_Controller {
 				$shopqz_list = array_column($shop_list,'shortname','id');
 			}
 
+			//$dbapi_nocc
+			if(strpos($feq,'dbapinocc')!= false){
+				$feq = str_replace('dbapinocc,',"fpdata as dbapinocc,",$feq);
+			}
+
 			$typeclass_lpdl = [];
 			//料品大类
 			if(strpos($feq,'lpdl')!= false){
@@ -2103,6 +2109,52 @@ class Fullorderexcel extends Start_Controller {
 				}
 				$info_list[$key]['rowtotal'] = $tmp_sub_str;
 
+			}
+			if(isset($value['dbapinocc'])){
+					
+				$jmlist_nocc = '';
+				$classid = $this->classid->sku();
+				$dbapi = explode(';',trim($value['dbapinocc'],';'));
+				foreach ($dbapi as $va) 
+				{
+					$jm_nocc = $classid;
+					unset($jm_nocc[14]);
+					$bmpx = array(13=>'',16=>'',18=>'',25=>'',26=>'',41=>'');
+					$features = str_replace(array('-163-','-164-','-165-','-166-'),'-',$va);
+					$ts = explode('|',trim($features,'|'));
+					if(stripos($ts[0],',') !== false)
+					{
+						$ft = explode(',',$ts[0]);
+						$features = explode('-',trim($ft[1],'-'));
+						$features[] = $ft[0];
+					}
+					else
+					{
+						$features = explode('-',trim($ts[0],'-'));
+					}
+					foreach($features as $k=>$v)
+					{
+						if($v != 0 && isset($typeclass[$v]))
+						{
+							
+							if(isset($jm_nocc[$typeclass[$v]['classid']]))
+							{
+								if($typeclass[$v]['jm'])
+								{
+									$jm_nocc[$typeclass[$v]['classid']] = $typeclass[$v]['jm'];
+								}
+							}
+						}
+					}
+					$jm_nocc = array_filter($jm_nocc);//去除空值
+					$jm_nocc = implode("-",$jm_nocc);
+					$jmlist_nocc .= $jm_nocc.'<br>';
+					
+				}
+				$info_list[$key]['dbapinocc'] = $jmlist_nocc ;
+
+
+
 			}
 			if(isset($value['lpdl'])){
 				$tmp_lpdl_str  ="";