浏览代码

成本核算

unknown 7 月之前
父节点
当前提交
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);
+        }
+    }
 }