调整商品分组价格计算

This commit is contained in:
lewis 2024-12-31 11:29:25 +08:00
parent c2a5ee0fdc
commit aee0609d17

View File

@ -7,7 +7,6 @@ use app\common\model\store_product\StoreProduct;
use app\common\model\store_product_group_price\StoreProductGroupPrice;
use PhpOffice\PhpSpreadsheet\IOFactory;
use support\Redis;
use think\facade\Db;
class LocalController extends BaseAdminController
{
@ -118,7 +117,7 @@ class LocalController extends BaseAdminController
if (count($update) > 0) {
(new StoreProductGroupPrice())->saveAll($update);
}
return $this->success('插入成功:' . $count . '条');
return $this->success('插入成功:' . count($insert) . '条,更新成功:' . count($update) . '条');
}
public function fixCategory()