chengwl il y a 4 ans
Parent
commit
3f07ad6417
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      application/controller/WigsOutCtrl.php

+ 1 - 1
application/controller/WigsOutCtrl.php

@@ -743,7 +743,7 @@ class WigsOutCtrl{
     }
     
     public function printAll(){
-        $sql = 'SELECT `order_barcode`,`goods_info`,`transport`,`print_time` FROM `app_wigsout` WHERE `order_status`=2 AND `print_times`=0 ORDER BY `in_time`;';
+        $sql = 'SELECT `order_barcode`,`goods_info`,`transport`,`print_time` FROM `app_wigsout` WHERE `order_status`=2 AND `print_times`=1 ORDER BY `in_time` DESC limit 10;';
         $query = $this->db->querySql($sql);
         $rs = $this->db->queryRsAll($query);
         if(empty($rs)){