Example #1
0
 /**
  * 批量删除B仓备货单
  */
 public static function batchDelOwOrder()
 {
     $pid = !empty($_POST['idArr']) ? $_POST['idArr'] : NULL;
     if (empty($pid)) {
         $result['code'] = '404';
         $result['msg'] = '参数有误';
         return json_encode($result);
         exit;
     }
     $rtn = PurToWhModel::batchDelOwOrder($pid);
     if ($rtn) {
         $result['code'] = '200';
         $result['msg'] = '删除备货单成功';
         return json_encode($result);
     } else {
         $result['code'] = '502';
         $result['msg'] = '删除备货单失败';
         return json_encode($result);
     }
 }