|
|
@ -71,7 +71,7 @@ class AgentService |
|
|
|
$idAgentInsert = $agentIdBelonging; |
|
|
|
$idAgentInsert = $agentIdBelonging; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
$idAgentInsert = $agentId; |
|
|
|
$idAgentInsert = $agentId; |
|
|
|
// $this->modelCustomer->byPhone($dataInput['phone'])->notAgent($agentId)->delete(); |
|
|
|
$this->modelCustomer->byPhone($dataInput['phone'])->notAgent($agentIdBelonging)->delete(); |
|
|
|
} |
|
|
|
} |
|
|
|
$dataInsert['agent_id'] = $agentIdBelonging; |
|
|
|
$dataInsert['agent_id'] = $agentIdBelonging; |
|
|
|
$this->modelCustomer->insert($dataInsert); |
|
|
|
$this->modelCustomer->insert($dataInsert); |
|
|
|