Commit 204f8e5c authored by zw's avatar zw

日报周报

parent 497d77f6
...@@ -40,11 +40,14 @@ class Statement extends Basic ...@@ -40,11 +40,14 @@ class Statement extends Basic
"time_start" => date("Y-m-d", time()), "time_start" => date("Y-m-d", time()),
"time_end" => date("Y-m-d", time()) . " 23:59:59", "time_end" => date("Y-m-d", time()) . " 23:59:59",
);*/ );*/
if (!isset($params["agent_id"]) || !isset($params["time_start"]) || !isset($params["time_end"])) { if (!isset($params["agent_id"]) || !isset($params["time_start"]) || !isset($params["time_end"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
$time_end = $params["time_end"] . " 23:59:59";
try { try {
$result = $this->service_->selectStatementByAgentId($params["agent_id"], $params["time_start"], $params["time_end"]); $result = $this->service_->selectStatementByAgentId($params["agent_id"], $params["time_start"], $time_end);
if (count($result) > 0) { if (count($result) > 0) {
return $this->response("200", "request success", $result); return $this->response("200", "request success", $result);
} else { } else {
......
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