chengwl 4 년 전
부모
커밋
3f07ad6417
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)){