21 lines
491 B
PHP
21 lines
491 B
PHP
<?php
|
|
|
|
namespace app\common\logic;
|
|
|
|
use app\common\model\change_price_log\ChangePriceLog;
|
|
|
|
class ChangePriceLogLogic extends BaseLogic
|
|
{
|
|
|
|
public function insert($product_id=0, $group_id=0, $before_price=0,$after_price=0):void
|
|
{
|
|
ChangePriceLog::create([
|
|
'product_id' => $product_id,
|
|
'group_id' => $group_id,
|
|
'before_price' => $before_price,
|
|
'after_price' => $after_price,
|
|
'create_time' => time()
|
|
]);
|
|
}
|
|
}
|