更新
This commit is contained in:
parent
d39bedf170
commit
65c49ea80a
@ -41,9 +41,6 @@ class ProductAttrDao extends BaseDao
|
||||
*/
|
||||
public function insert(array $data)
|
||||
{
|
||||
foreach ($data as &$item) {
|
||||
$item['profit_rate'] = bcdiv(bcsub($item['price'], $item['procure_price'], 2), $item['price'], 2) * 100;
|
||||
}
|
||||
return ($this->getModel()::getDB())->insertAll($data);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user