|
@@ -2,6 +2,8 @@
|
|
|
|
|
|
|
|
namespace common\models;
|
|
namespace common\models;
|
|
|
|
|
|
|
|
|
|
+use yii\db\Exception;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* This is the model class for table "{{%STORE_PERF_LOG}}".
|
|
* This is the model class for table "{{%STORE_PERF_LOG}}".
|
|
|
*
|
|
*
|
|
@@ -53,12 +55,14 @@ class StorePerfLog extends \common\components\ActiveRecord
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 更新或者添加业绩数据
|
|
// 更新或者添加业绩数据
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
- * @param $periodNum 结算业绩期
|
|
|
|
|
- * @param $calcMonth 结算月
|
|
|
|
|
- * @param $userId 结算过程中的用户
|
|
|
|
|
- * @param $data 数据
|
|
|
|
|
- * @param $appendPv 往上找店铺,需要给店铺的PV值
|
|
|
|
|
|
|
+ * @param int|string $periodNum 结算业绩期
|
|
|
|
|
+ * @param string $calcMonth 结算月
|
|
|
|
|
+ * @param string $userId 结算过程中的用户
|
|
|
|
|
+ * @param array $data 数据
|
|
|
|
|
+ * @param string|int|float $appendPv 往上找店铺,需要给店铺的PV值
|
|
|
|
|
+ * @throws Exception
|
|
|
*/
|
|
*/
|
|
|
public static function addOrUpdate($periodNum, $calcMonth, $userId, $data, $appendPv = 0) {
|
|
public static function addOrUpdate($periodNum, $calcMonth, $userId, $data, $appendPv = 0) {
|
|
|
$info = StorePerfLog::findUseDbCalc()
|
|
$info = StorePerfLog::findUseDbCalc()
|