|
|
@@ -5750,4 +5750,27 @@ class WorkOrder extends Api
|
|
|
return $response;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取产品款式列表
|
|
|
+ * @return \think\response\Json
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ */
|
|
|
+ public function getProductStyleList()
|
|
|
+ {
|
|
|
+ if (!$this->request->isGet()) {
|
|
|
+ $this->error('请求方式错误');
|
|
|
+ }
|
|
|
+
|
|
|
+ $list = db('产品_基本资料')
|
|
|
+ ->whereNotNull('product_type')
|
|
|
+ ->where('product_type', '<>', '')
|
|
|
+ ->field('product_type')
|
|
|
+ ->distinct(true)
|
|
|
+ ->order('product_type asc')
|
|
|
+ ->column('product_type');
|
|
|
+
|
|
|
+ $this->success('成功', $list);
|
|
|
+ }
|
|
|
+
|
|
|
}
|