Commit 6161cb52 by HTML5-侯张振

no message

parent 9c4fadd5
......@@ -559,7 +559,7 @@ class Report extends CI_Controller
$results = $api->newgetCustomerPurchase(array('customer_id'=>$value['rongchuang_id']));
if(!empty($results)){
$entity_id = $this->customer_building->get_building_id($value['id'],$value['rongchuang_id']);
$entity_id = $this->customer_building->get_building_id($value['id']);
//记录客户跟进信息
$customerBuilding = $this->customer_building->get(array('id' => $entity_id['id']));
if($customerBuilding['recommend_status'] < 3){
......
......@@ -663,10 +663,10 @@ class Customer_building_model extends MY_Model{
}
//获取‘tb_customer_building’里的id
public function get_building_id($Id,$rcId){
public function get_building_id($Id){
$this->db->select('CB.id');
$this->db->from('tb_customer_building CB');
$this->db->where('CB.customer_id = '.$Id.' and CB.rongchuang_id = .$rcId');
$this->db->where('CB.customer_id ',$Id);
$query = $this->db->get();
if($query->num_rows() > 0)
{
......
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