浏览代码

决策支持优化

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('设备_基本资料')