摘要:
$db = $this->UserAccount->getDataSource(); $db->begin(); $this->UserAccount->updateAll(array('amount' => 'UserAccount.amount - ' . $total_price), array('user_id' => $user_id, 'amount >=' => $total_price)); $affectedrows = $this->UserAccou 阅读全文
posted @ 2013-04-19 16:42
linksgo2011
阅读(162)
评论(0)
推荐(0)
摘要:
if ($this->request->is('post')) { $products_id = $product['TradeProduct']['id']; $fee = $this->request->data('Trade.price'); $bankCode = $this->request->data('Trade.bankCode'); $pay_type = $this->request->data('Trade.payType'); 阅读全文
posted @ 2013-04-19 16:20
linksgo2011
阅读(284)
评论(0)
推荐(0)
摘要:
$data = $this->paginate('MerchantProductOrder');如果不给入参数,就是当前控制器合适的模型的分页即可 阅读全文
posted @ 2013-04-19 14:07
linksgo2011
阅读(110)
评论(0)
推荐(0)