Commit 3b517991 authored by clone's avatar clone

bug

parent a17e691d
......@@ -102,11 +102,11 @@ class Performance extends Basic
{
header('Access-Control-Allow-Origin:*');
$params = $this->params;
/* $params = array(
"agent_id" => 1,
"start_time" => "2018-03-10",
"end_time" => "2018-03-23",
);*/
$params = array(
"agent_id" => 8882,
"start_time" => "2018-04-04",
"end_time" => "2018-04-04",
);
try {
$result = $this->service_->storePerformance($params["agent_id"], $params["start_time"], $params["end_time"]);
......
......@@ -329,6 +329,9 @@ class PerformanceService
$params['total_time'] = array( 'between', array( $start_time, $end_time ) );
$list = $this->totalModel->getTotalByAgentId($field, $params, $type, "");
if (count($list) > 0) {
$list = $list[0];
}
}
if (count($list) > 0) {
......@@ -371,7 +374,7 @@ class PerformanceService
if (count($info) > 0) {
$list[$key]["store_name"] = $info[0]["store_name"];
$list[$key]["name"] = $info[0]["name"];
}else{
} else {
$list[$key]["store_name"] = "";
$list[$key]["name"] = "";
}
......
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