Commit 18b6eadd authored by zhuwei's avatar zhuwei

1

parent 6f9204e6
......@@ -178,7 +178,7 @@ class StatementService
$performanceSum = $this->bargainModel->getAddBargainNum($where_, 1);//1表示业绩 2表示实收
$result["performance_month"] = isset($performanceSum[0]["num"]) ? $performanceSum[0]["num"] : 0;
$real_performanceSum = $this->bargainModel->getAddBargainNum($where_, 2);//1表示业绩 2表示实收
$real_performanceSum = $this->bargainModel->getReceived($where_);
$result["real_performance_month"] = isset($real_performanceSum[0]["num"]) ? $real_performanceSum[0]["num"] : 0;
//本周业绩
......
......@@ -31,7 +31,7 @@ class BatchProcessing extends Basic
$house_service = new HouseService();
$field = 'id,name,city,longitude';
$get_params['longitude'] = '';
$get_params[] = ['EXP', "`longitude` = '' or `longitude` is null "];
$model_res = $model->getBusinessDistrict($field, $get_params);
$success_num = 0;
......
......@@ -596,6 +596,7 @@ class HouseService
$data = str_replace('renderOption&&renderOption(', '', $data);
$data = str_replace(')', '', $data);
$data = json_decode($data,true);
// exit;
if (!empty($data) && $data['status'] == 0) {
$result['lat'] = $data['result']['location']['lat'];
$result['lng'] = $data['result']['location']['lng'];
......
......@@ -16,10 +16,8 @@ class GBusinessDistrict extends BaseModel
{
$result = $this
->field($field)
//->alias('a')
->where($params)
->select();
//dump($this->getLastSql());
return $result;
}
......
......@@ -1653,7 +1653,7 @@ class GHouses extends BaseModel
->where($where_)
->find();
}
......
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