|
@@ -168,7 +168,7 @@ class ReorderChild extends Base
|
|
|
->where(['a.is_del' => 0, 'a.id' => $param['id']])
|
|
|
->findOrEmpty();
|
|
|
if (empty($info)) return json_show(1004, '该退货工单不存在');
|
|
|
- if ($info['status'] == 1) return json_show(1004, '该退货工单已收货');
|
|
|
+ if ($info['status'] != 1) return json_show(1004, '该退货工单已收货');
|
|
|
if ($param['loss_num'] > $info['num']) return json_show(1004, '丢失数量大于下单数量');
|
|
|
|
|
|
Db::startTrans();
|