소스 검색

决策支持优化

qiuenguang 1 년 전
부모
커밋
16d6d043e3
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      application/api/controller/Decision.php

+ 1 - 2
application/api/controller/Decision.php

@@ -25,9 +25,8 @@ class Decision extends Api
             $this->error('请求错误');
         }
         $mouth = \db('设备_产量计酬')
-            ->whereTime('sczl_rq', 'month')
+            ->distinct(true)
             ->field('DATE_FORMAT(sczl_rq, "%Y-%m") AS month')
-            ->group('month')
             ->order('month desc')
             ->select();
         $sist = \db('设备_基本资料')