From b8a82d561917a4336214225f65f4488d977c5fb1 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Thu, 03 May 2018 09:28:00 +0800
Subject: [PATCH] 调整平均值
---
Yfs/Domain/Data.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Yfs/Domain/Data.php b/Yfs/Domain/Data.php
index e1b51c4..a9be7c0 100644
--- a/Yfs/Domain/Data.php
+++ b/Yfs/Domain/Data.php
@@ -49,9 +49,10 @@
$this->hourly_model->add($arr);
}
$task_arr = array();
- $task_date = $this->task_model->get(array('date' => $arr['date']));
+ $task_date = $this->task_model->get(array('date' => $arr['date'], 'user_id' => $arr['user_id']));
if(!$task_date){
$task_arr['date'] = $arr['date'];
+ $task_arr['user_id'] = $arr['user_id'];
$this->task_model->add($task_arr);
}
--
Gitblit v1.8.0