Commit 0c7e79e6 authored by hujun's avatar hujun

条件组装

parent 2939348c
......@@ -263,6 +263,12 @@ class AAgents extends BaseModel
if (isset($params["agent_id"])) {
$where_["id"] = $params["agent_id"];
}
if (isset($params["name"])) {
$where_["name"] = $params["name"];
}
if (isset($params["phone"])) {
$where_["phone"] = $params["phone"];
}
if (isset($params["store_id"])) {
$where_["store_id"] = $params["store_id"];
}
......
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