|
@@ -89,11 +89,13 @@ class ProcessDocument extends Api
|
|
|
|
|
|
|
|
$where = array();
|
|
$where = array();
|
|
|
$where['Gd_gdbh'] = $order;
|
|
$where['Gd_gdbh'] = $order;
|
|
|
-
|
|
|
|
|
$product = db('工单_基本资料')
|
|
$product = db('工单_基本资料')
|
|
|
->where($where)
|
|
->where($where)
|
|
|
->field('成品代号')
|
|
->field('成品代号')
|
|
|
->find();
|
|
->find();
|
|
|
|
|
+ if (empty($product)){
|
|
|
|
|
+ $this->success('请求成功');
|
|
|
|
|
+ }
|
|
|
$map =array();
|
|
$map =array();
|
|
|
$map['product_number'] = rtrim($product['成品代号']);
|
|
$map['product_number'] = rtrim($product['成品代号']);
|
|
|
if ($params['peijian'] > 0){
|
|
if ($params['peijian'] > 0){
|