lvhao 7 godzin temu
rodzic
commit
30657d6c31
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      core/CoreApp/controllers/Specialstock.php

+ 2 - 3
core/CoreApp/controllers/Specialstock.php

@@ -3075,9 +3075,8 @@ class Specialstock extends Start_Controller {
 					$this->db->where('enter > "'.$ktime.'" and enter < "'.$jtime.'" and state != 9');
 				}
 
-				$this->db->group_by(['sku', DATE_FORMAT(enter, '%Y-%m-%d %H:00:00')]);
-				$this->db->order_by('sku', 'ASC');
-				$this->db->order_by('enter_date', 'ASC');
+				$this->db->group_by("sku, DATE_FORMAT(enter, '%Y-%m-%d %H:00:00')");
+				$this->db->order_by('sku,enter_date');
 				$query = $this->db->get();
 				$result = $query->result();
 				echo "<pre>";