unknown 7 месяцев назад
Родитель
Сommit
a706346cb7
1 измененных файлов с 28 добавлено и 0 удалено
  1. 28 0
      application/api/controller/CostAccounting.php

+ 28 - 0
application/api/controller/CostAccounting.php

@@ -554,4 +554,32 @@ class CostAccounting extends Api
             ->select();
         $this->success('成功', $list);
     }
+
+    /**
+     * 车间人工工单详情
+     * @return void
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     */
+    public function SummaryCostAccountingList()
+    {
+        if ($this->request->isGet() === false) {
+            $this->error('请求错误');
+        }
+        $param = $this->request->param();
+        if (empty($param)) {
+            $this->error('参数错误');
+        }
+        $list = db('成本v23_月度成本明细')
+            ->where('车间名称', $param['sist'])
+            ->where('sys_ny', $param['month'])
+            ->order('sczl_gdbh')
+            ->select();
+        if (empty($list)) {
+            $this->error('未找到数据');
+        }else{
+            $this->success('成功', $list);
+        }
+    }
 }