|
|
@ -1326,6 +1326,7 @@ class Information extends CI_Controller
|
|
|
|
public function test_price()
|
|
|
|
public function test_price()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$price_rule = base64_decode($this->input->get('price_rule')); //'<div">#ah-mtc-3,st,2#</div>';
|
|
|
|
$price_rule = base64_decode($this->input->get('price_rule')); //'<div">#ah-mtc-3,st,2#</div>';
|
|
|
|
|
|
|
|
$dept_sn = $this->input->get('dept_sn'); //'<div">#ah-mtc-3,st,2#</div>';
|
|
|
|
$price_item_array = $this->price_pregmatch($price_rule);
|
|
|
|
$price_item_array = $this->price_pregmatch($price_rule);
|
|
|
|
var_dump($price_item_array);
|
|
|
|
var_dump($price_item_array);
|
|
|
|
$price_tag_list = $this->parse_price_tag($price_rule);
|
|
|
|
$price_tag_list = $this->parse_price_tag($price_rule);
|
|
|
@ -1337,7 +1338,7 @@ class Information extends CI_Controller
|
|
|
|
$price_date = !empty($price_item->price_date) ? $price_item->price_date : date('Y-m-d', time() + 86400 * 7); //当前时间7天后的价格
|
|
|
|
$price_date = !empty($price_item->price_date) ? $price_item->price_date : date('Y-m-d', time() + 86400 * 7); //当前时间7天后的价格
|
|
|
|
$price_number = '';
|
|
|
|
$price_number = '';
|
|
|
|
//优先读取新的价格体系
|
|
|
|
//优先读取新的价格体系
|
|
|
|
$price = $this->PrimeLinePrice_model->test_search($price_item->cli_no, 1, $price_item->cli_grade, $price_item->person_size, $price_date);
|
|
|
|
$price = $this->PrimeLinePrice_model->test_search($price_item->cli_no, 1, $price_item->cli_grade, $price_item->person_size, $price_date, $dept_sn);
|
|
|
|
var_dump($price);
|
|
|
|
var_dump($price);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|