|
@@ -204,7 +204,12 @@ class AdvertAdminAction extends BaseAction{
|
|
$result = $this->getDbEntity()->query($sql);
|
|
$result = $this->getDbEntity()->query($sql);
|
|
return $result[0];
|
|
return $result[0];
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ //根据手机号查询客户信息
|
|
|
|
+ public function selectOneCustomerBymobile($id){
|
|
|
|
+ $sql = "select * from ly_sms_customer where tel='$id' ";
|
|
|
|
+ $result = $this->getDbEntity()->query($sql);
|
|
|
|
+ return $result[0];
|
|
|
|
+ }
|
|
public function selectOneSmsCustomer($id){
|
|
public function selectOneSmsCustomer($id){
|
|
$sql = "select * from ly_sms_customer where id='$id' ";
|
|
$sql = "select * from ly_sms_customer where id='$id' ";
|
|
$result = $this->getDbEntity()->query($sql);
|
|
$result = $this->getDbEntity()->query($sql);
|
|
@@ -248,6 +253,13 @@ class AdvertAdminAction extends BaseAction{
|
|
$result = $this->getDbEntity()->execute_sql($sql);
|
|
$result = $this->getDbEntity()->execute_sql($sql);
|
|
return $result;
|
|
return $result;
|
|
}
|
|
}
|
|
|
|
+ public function updateSmsCustomerBlcak($data){
|
|
|
|
+ $sql = "update ly_sms_customer set is_block=1
|
|
|
|
+ where id={$data['id']}";
|
|
|
|
+ $result = $this->getDbEntity()->execute_sql($sql);
|
|
|
|
+ return $result;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
public function updateSmsCustomer($data,$id){
|
|
public function updateSmsCustomer($data,$id){
|
|
$sql = "update ly_sms_customer set uname='{$data['uname']}',group_name='{$data['group_name']}',
|
|
$sql = "update ly_sms_customer set uname='{$data['uname']}',group_name='{$data['group_name']}',
|