Commit 51b1dfe1 authored by zhuwei's avatar zhuwei

案场权限人

parent 1cc71a60
......@@ -728,8 +728,6 @@ class Shop extends Basic
}
}
//独家方
// $result['exclusive_info'] = $this->getExclusiveInfo($result['id'], 3);
//案场权限人
$result['stronghold_info'] = $this->getExclusiveInfo($result['id']);
......@@ -737,6 +735,11 @@ class Shop extends Basic
return $this->response("200", 'request success', $result);
}
/**
* 案场权限人
* @param $house_id
* @return null|string
*/
public function getExclusiveInfo($house_id)
{
// $m_agent_house = new GHousesToAgents();
......
......@@ -19,6 +19,31 @@ class ReceiptOperatingRecords extends Basic
$this->m_receipt_operating_records = new GReceiptOperatingRecords();
}
/**
* 新增记录
* @param $agents_id
* @param $type
* @param $remark
* @param $house_id
* @return bool
*/
public function addOperating($agents_id,$type,$remark,$house_id)
{
$data["agents_id"] = $agents_id;
$data["type"] = $type;
$data["remark"] = $remark;
$data["house_id"] = $house_id;
$result = $this->m_receipt_operating_records->saveOperating($data);//int(1)
if ($result) {
return true;
} else {
return false;
}
}
/**
* 收款操作记录
......
......@@ -17,13 +17,11 @@ class GReceiptOperatingRecords extends Model
$this->db_ = Db::name($this->table);
}
// public function saveOperating($data) {
// $time = date("Y-m-d H:i:s", time());
// $data['create_time'] = $time;
// $data['update_time'] = $time;
// $data['is_del'] = 0;
// return $this->db_ ->insert($data);
// }
public function saveOperating($data) {
$time = date("Y-m-d H:i:s", time());
$data['create_time'] = $time;
return $this->db_ ->insert($data);
}
/**
......
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