Commit 33369459 authored by zw's avatar zw

Merge branch 'test'

parents 35b608e4 3bda6f0c
...@@ -423,7 +423,7 @@ class OperationData extends Basic ...@@ -423,7 +423,7 @@ class OperationData extends Basic
} else { } else {
$conditions['site_id'] = $v['site_id']; $conditions['site_id'] = $v['site_id'];
} }
$conditions['create_time'] = array( 'between', array( $p_start . " 00:00:00", $p_end . " 23:59:59" ) ); $conditions['total_time'] = array( 'between', array( $p_start . " 00:00:00", $p_end . " 23:59:59" ) );
$performanceSum = $m_total->performanceStatistics($conditions, 1); $performanceSum = $m_total->performanceStatistics($conditions, 1);
$value_['performance'] = isset($performanceSum[0]["performance_total"]) ? $performanceSum[0]["performance_total"] : 0; $value_['performance'] = isset($performanceSum[0]["performance_total"]) ? $performanceSum[0]["performance_total"] : 0;
...@@ -435,7 +435,8 @@ class OperationData extends Basic ...@@ -435,7 +435,8 @@ class OperationData extends Basic
} else { } else {
$conditions['site_id'] = $v['site_id']; $conditions['site_id'] = $v['site_id'];
} }
$conditions['create_time'] = array( 'between', array( $r_p_start . " 00:00:00", $r_p__end . " 23:59:59" ) );
$conditions['total_time'] = array( 'between', array( $r_p_start . " 00:00:00", $r_p__end . " 23:59:59" ) );
$real_performanceSum = $m_total->performanceStatistics($conditions, 2); $real_performanceSum = $m_total->performanceStatistics($conditions, 2);
$value_['real_performance'] = isset($real_performanceSum[0]["official_receipts_total"]) ? $real_performanceSum[0]["official_receipts_total"] : 0; $value_['real_performance'] = isset($real_performanceSum[0]["official_receipts_total"]) ? $real_performanceSum[0]["official_receipts_total"] : 0;
......
...@@ -364,8 +364,8 @@ class TAgentTotalModel extends Model ...@@ -364,8 +364,8 @@ class TAgentTotalModel extends Model
$field = "sum(a.official_receipts) as official_receipts_total"; $field = "sum(a.official_receipts) as official_receipts_total";
} }
if (isset($params["create_time"])) { if (isset($params["total_time"])) {
$where_["a.create_time"] = $params["create_time"]; $where_["a.total_time"] = $params["total_time"];
} }
if (isset($params["site_id"])) { if (isset($params["site_id"])) {
...@@ -378,7 +378,7 @@ class TAgentTotalModel extends Model ...@@ -378,7 +378,7 @@ class TAgentTotalModel extends Model
->join("a_agents b", "a.agent_id = b.id", "left") ->join("a_agents b", "a.agent_id = b.id", "left")
->where($where_) ->where($where_)
->select(); ->select();
// dump($this->getLastSql()); // big_log($this->getLastSql());
return $return; return $return;
} }
} }
\ No newline at end of file
...@@ -44,7 +44,7 @@ class TLookShopModel extends Model ...@@ -44,7 +44,7 @@ class TLookShopModel extends Model
->where($condition) ->where($condition)
->page($pageNo) ->page($pageNo)
->limit($pageSize) ->limit($pageSize)
//->order("id desc") ->order("id desc")
->select(); ->select();
} }
public function getListCount($condition, $field) public function getListCount($condition, $field)
......
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