where(['order_no' => $order_no])->column('goods_id')) as $goods_id) { if (!Goods::syncStock($goods_id)) return false; } return true; } /** * 订单利润计算 * @param string $order_no * @return boolean */ public static function profit($order_no = '') { $where = ['order_no' => $order_no]; if (Db::name('StoreProfitRecord')->where($where)->count() > 0) { return false; } } }