Commit 4962fa72 authored by yanghui's avatar yanghui

合并分支 'release_price_log' 到 'master'

调价记录

查看合并请求 !12
parents 76ad6f0f 3c7197d8
...@@ -7117,6 +7117,14 @@ class Sell extends MY_Controller { ...@@ -7117,6 +7117,14 @@ class Sell extends MY_Controller {
} }
$averprice = round(10000 * $new_price / $house['buildarea'], 2); $averprice = round(10000 * $new_price / $house['buildarea'], 2);
$this->sell_model->update(array('price'=>$new_price,'averprice'=>$averprice), $hid, $uid); $this->sell_model->update(array('price'=>$new_price,'averprice'=>$averprice), $hid, $uid);
//添加调价记录
$this->load->model('zsb_api_model');
$change_params = array(
'tbl' => 'sell',
'house_id' => $hid,
'price' => $old_price,
);
$this->zsb_api_model->getRequrstData('add_change_price_log', $change_params);
echo json_encode(array('result'=>1, 'msg'=>iconv('gb2312','utf-8','调价成功'))); echo json_encode(array('result'=>1, 'msg'=>iconv('gb2312','utf-8','调价成功')));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment