lvhao 2 일 전
부모
커밋
a2f99f5ebe
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      core/CoreApp/controllers/Aatest.php

+ 6 - 1
core/CoreApp/controllers/Aatest.php

@@ -103,10 +103,15 @@ class Aatest extends Start_Controller {
     }
 	private function dokucun(){
 		//美仓 未出库
+	//   $info = 	$this->db->from("whlabel")->where([
+	// 	"warehouse"=>13,
+	// 	'state'=>0
+	//   ])->select("id,number,sku,warehouse,title,details,cpid,COUNT(id) AS total_num,GROUP_CONCAT(IFNULL(details, '') SEPARATOR ',') AS total_details,GROUP_CONCAT(IFNULL(cpid, '') SEPARATOR ',') AS total_cpid")->group_by('number')->order_by('total_num','desc')->limit(10,0)->get();
+
 	  $info = 	$this->db->from("whlabel")->where([
 		"warehouse"=>13,
 		'state'=>0
-	  ])->select("id,number,sku,warehouse,title,details,cpid,COUNT(id) AS total_num,GROUP_CONCAT(IFNULL(details, '') SEPARATOR ',') AS total_details,GROUP_CONCAT(IFNULL(cpid, '') SEPARATOR ',') AS total_cpid")->group_by('number')->order_by('total_num','desc')->limit(10,0)->get();
+	  ])->select("id,number,sku,warehouse,title,details,cpid")->group_by('number')->order_by('total_num','desc')->limit(10,0)->get();
 	  echo "<pre>";
 	  print_r($info->result_array());
 	  die;