feat: #10000 修改

This commit is contained in:
赵世界 2023-04-21 18:06:33 +08:00
parent cf3f7fad4d
commit ffe64ed58b
4 changed files with 4 additions and 5 deletions

View File

@ -59,7 +59,6 @@ class GoodsSkusExport implements FromCollection, ShouldAutoSize
->when($ids, function ($query, $ids) {
return $query->whereIn('id', $ids);
})
->where('is_combination', 0)
->with(['goods' => function ($query) {
$query->with(['type:id,name', 'brand:id,name'])
->orderBy('type_id')

View File

@ -52,7 +52,7 @@ class GoodsSkusController extends Controller
$query->where('day', $day);
}])
->where('is_combination', 0)
->orderByDesc('stock')
->orderBy('updated_at', 'desc')
->paginate($request->get('per_page'));
$fields = implode(',', [
'shop_id',

View File

@ -41,7 +41,7 @@ class StockUpdateListener
->select(['goods_id', 'sku_id', 'external_sku_id'])
->where('shop_id', $shop->id)
->where('is_sync', 1)
->where('external_sku_id', $event->goodsSku->goods['goods_code'] . '_' . $event->goodsSku->sku_code)
->where('external_sku_id', $event->goodsSku->external_sku_id)
->get();
if ($event->isBatch) {
BusinessFactory::init()->make($shop['plat_id'])->setShopWithId($shop['id'])->batchIncrQuantity($businessGoodsSkus->toArray(), $num, false);

View File

@ -11,8 +11,8 @@ module.exports = {
proxy: {
// 配置代理
"/api": {
target: "http://192.168.247.186:81",
// target: "http://erp.chutang66.com",
// target: "http://192.168.247.186:81",
target: "http://erp.chutang66.com",
changeOrigin: true, // 开启代理
pathRewrite: {
// 重命名