From 5cd88dfb0826c6f904f4e9cbf751c2c567459486 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 4 Jan 2025 10:34:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(model):=20=E4=B8=BA=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=B7=BB=E5=8A=A0=E4=B8=8D=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在多个模型中添加 $doNotRecordLog 属性,设置为 true - 这样可以避免为这些表生成日志,减少不必要的数据记录 - 主要涉及活动区域、配置、操作日志、APP更新、管理员、菜单、角色等模型 --- app/common/model/ActivityZone.php | 4 ++- app/common/model/ActivityZoneForm.php | 3 +- app/common/model/Config.php | 3 +- app/common/model/OperationLog.php | 3 +- app/common/model/app_update/AppUpdate.php | 3 +- app/common/model/auth/Admin.php | 3 +- app/common/model/auth/AdminDept.php | 4 ++- app/common/model/auth/AdminJobs.php | 4 ++- app/common/model/auth/AdminRole.php | 5 +-- app/common/model/auth/AdminSession.php | 4 ++- app/common/model/auth/SystemMenu.php | 3 +- app/common/model/auth/SystemRole.php | 3 +- app/common/model/auth/SystemRoleMenu.php | 3 +- .../beforehand_order/BeforehandOrder.php | 3 +- .../BeforehandOrderCartInfo.php | 3 +- .../BeforehandOrderRecord.php | 3 +- app/common/model/cate/Cate.php | 3 +- .../delivery_service/DeliveryService.php | 3 +- app/common/model/dept/Dept.php | 3 +- app/common/model/dept/Jobs.php | 3 +- app/common/model/dict/DictData.php | 3 +- app/common/model/dict/DictType.php | 3 +- .../model/distribution/Distribution.php | 3 +- app/common/model/file/File.php | 4 ++- app/common/model/file/FileCate.php | 4 ++- app/common/model/finance/CapitalFlow.php | 3 +- app/common/model/finance/PayNotifyLog.php | 3 +- .../FinancialTransfers.php | 3 +- app/common/model/geo/GeoArea.php | 3 +- app/common/model/geo/GeoBrigade.php | 3 +- app/common/model/geo/GeoCity.php | 3 +- app/common/model/geo/GeoProvince.php | 3 +- app/common/model/geo/GeoStreet.php | 3 +- app/common/model/geo/GeoVillage.php | 3 +- app/common/model/merchant/Merchant.php | 3 +- app/common/model/order/Cart.php | 3 +- app/common/model/pay/PayConfig.php | 3 +- app/common/model/pay/PayNotify.php | 4 ++- app/common/model/pay/PayWay.php | 3 +- .../model/purchase_order/PurchaseOrder.php | 7 ++-- .../purchase_order_info/PurchaseOrderInfo.php | 3 +- .../PurchaseProductOffer.php | 3 +- app/common/model/setting/Category.php | 3 +- .../StoreBranchProductAttrValue.php | 3 +- .../StoreBranchProductExchange.php | 3 +- .../StoreCashFinanceFlow.php | 5 +-- .../model/store_category/StoreCategory.php | 5 +-- .../model/store_extract/StoreExtract.php | 3 +- .../store_finance_flow/StoreFinanceFlow.php | 3 +- .../StoreFinanceFlowProduct.php | 4 ++- app/common/model/store_order/StoreOrder.php | 33 ++++++++++--------- .../StoreOrderCartInfo.php | 3 +- .../StoreOrderTransshipmentInfo.php | 4 +-- .../StoreProductAttrValue.php | 3 +- .../store_product_cate/StoreProductCate.php | 3 +- .../store_product_gift/StoreProductGift.php | 3 +- .../StoreProductGroupPrice.php | 3 +- .../store_product_log/StoreProductLog.php | 3 +- .../store_product_price/StoreProductPrice.php | 3 +- .../store_product_unit/StoreProductUnit.php | 3 +- app/common/model/store_visit/StoreVisit.php | 3 +- app/common/model/supplier/Supplier.php | 3 +- .../model/system_store/DeliveryService.php | 3 +- app/common/model/system_store/SystemStore.php | 3 +- .../model/system_store/SystemStoreMenu.php | 3 +- .../model/system_store/SystemStoreStaff.php | 3 +- .../system_store/SystemStoreStaffSession.php | 3 +- app/common/model/tools/GenerateColumn.php | 3 +- app/common/model/tools/GenerateTable.php | 3 +- app/common/model/user/User.php | 3 +- app/common/model/user/UserAddress.php | 3 +- app/common/model/user/UserAuth.php | 3 +- app/common/model/user/UserFeedback.php | 3 +- app/common/model/user/UserRecharge.php | 3 +- app/common/model/user/UserSession.php | 3 +- app/common/model/user/UserVisit.php | 3 +- app/common/model/user_bill/UserBill.php | 3 +- .../model/user_create_log/UserCreateLog.php | 3 +- app/common/model/user_label/UserLabel.php | 3 +- .../UserProductStorage.php | 4 ++- .../UserProductStorageLog.php | 6 ++-- .../model/user_recharge/UserRecharge.php | 3 +- app/common/model/user_ship/UserShip.php | 4 ++- app/common/model/user_sign/UserSign.php | 3 +- .../model/user_sign_log/UserSignLog.php | 3 +- .../model/user_spread_log/UserSpreadLog.php | 3 +- app/common/model/vip_flow/VipFlow.php | 3 +- app/common/model/warehouse/Warehouse.php | 3 +- .../model/warehouse_order/WarehouseOrder.php | 3 +- .../WarehouseProductReturn.php | 2 -- 90 files changed, 210 insertions(+), 113 deletions(-) diff --git a/app/common/model/ActivityZone.php b/app/common/model/ActivityZone.php index 62bf752b3..6d2b51311 100644 --- a/app/common/model/ActivityZone.php +++ b/app/common/model/ActivityZone.php @@ -18,7 +18,9 @@ class ActivityZone extends BaseModel use SoftDelete; protected $name = 'activity_zone'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; + public function product() { return $this->hasOne(StoreProduct::class, 'id', 'product_id')->bind(['store_name', 'unit']); diff --git a/app/common/model/ActivityZoneForm.php b/app/common/model/ActivityZoneForm.php index ab50bf525..77e7757e3 100644 --- a/app/common/model/ActivityZoneForm.php +++ b/app/common/model/ActivityZoneForm.php @@ -15,5 +15,6 @@ class ActivityZoneForm extends BaseModel use SoftDelete; protected $name = 'activity_zone_form'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/Config.php b/app/common/model/Config.php index d2f9daf41..f47ffbb01 100644 --- a/app/common/model/Config.php +++ b/app/common/model/Config.php @@ -6,5 +6,6 @@ namespace app\common\model; class Config extends BaseModel { - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/OperationLog.php b/app/common/model/OperationLog.php index ff67252ff..616413fd8 100644 --- a/app/common/model/OperationLog.php +++ b/app/common/model/OperationLog.php @@ -7,5 +7,6 @@ namespace app\common\model; class OperationLog extends BaseModel { // protected $json = ['params']; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/app_update/AppUpdate.php b/app/common/model/app_update/AppUpdate.php index 4de527b6d..09d483f5c 100644 --- a/app/common/model/app_update/AppUpdate.php +++ b/app/common/model/app_update/AppUpdate.php @@ -17,6 +17,7 @@ class AppUpdate extends BaseModel use SoftDelete; protected $name = 'app_update'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/auth/Admin.php b/app/common/model/auth/Admin.php index 1033db23f..7ca0f36ed 100644 --- a/app/common/model/auth/Admin.php +++ b/app/common/model/auth/Admin.php @@ -12,7 +12,8 @@ use think\model\concern\SoftDelete; class Admin extends BaseModel { use SoftDelete; - + // 不生成该表的日志 + public $doNotRecordLog = true; protected $deleteTime = 'delete_time'; protected $append = [ diff --git a/app/common/model/auth/AdminDept.php b/app/common/model/auth/AdminDept.php index a6e7a7337..4c1b19d45 100644 --- a/app/common/model/auth/AdminDept.php +++ b/app/common/model/auth/AdminDept.php @@ -18,6 +18,8 @@ use app\common\model\BaseModel; class AdminDept extends BaseModel { + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 删除用户关联部门 * @param $adminId @@ -29,4 +31,4 @@ class AdminDept extends BaseModel { return self::where(['admin_id' => $adminId])->delete(); } -} \ No newline at end of file +} diff --git a/app/common/model/auth/AdminJobs.php b/app/common/model/auth/AdminJobs.php index 240b11c7d..5c496692d 100644 --- a/app/common/model/auth/AdminJobs.php +++ b/app/common/model/auth/AdminJobs.php @@ -18,6 +18,8 @@ use app\common\model\BaseModel; class AdminJobs extends BaseModel { + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 删除用户关联岗位 * @param $adminId @@ -29,4 +31,4 @@ class AdminJobs extends BaseModel { return self::where(['admin_id' => $adminId])->delete(); } -} \ No newline at end of file +} diff --git a/app/common/model/auth/AdminRole.php b/app/common/model/auth/AdminRole.php index 2d0afc45b..eb0ab6f8e 100644 --- a/app/common/model/auth/AdminRole.php +++ b/app/common/model/auth/AdminRole.php @@ -19,6 +19,8 @@ use app\common\model\BaseModel; class AdminRole extends BaseModel { + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 删除用户关联角色 * @param $adminId @@ -30,5 +32,4 @@ class AdminRole extends BaseModel { return self::where(['admin_id' => $adminId])->delete(); } - -} \ No newline at end of file +} diff --git a/app/common/model/auth/AdminSession.php b/app/common/model/auth/AdminSession.php index 9f18a3698..b603d5531 100644 --- a/app/common/model/auth/AdminSession.php +++ b/app/common/model/auth/AdminSession.php @@ -18,6 +18,8 @@ use app\common\model\BaseModel; class AdminSession extends BaseModel { + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 关联管理员表 * @return \think\model\relation\HasOne @@ -29,4 +31,4 @@ class AdminSession extends BaseModel return $this->hasOne(Admin::class, 'id', 'admin_id') ->field('id,multipoint_login'); } -} \ No newline at end of file +} diff --git a/app/common/model/auth/SystemMenu.php b/app/common/model/auth/SystemMenu.php index 7d94bbf70..792b17e16 100644 --- a/app/common/model/auth/SystemMenu.php +++ b/app/common/model/auth/SystemMenu.php @@ -25,7 +25,8 @@ use app\common\model\BaseModel; */ class SystemMenu extends BaseModel { - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/auth/SystemRole.php b/app/common/model/auth/SystemRole.php index 71b785571..2fc984b0c 100644 --- a/app/common/model/auth/SystemRole.php +++ b/app/common/model/auth/SystemRole.php @@ -25,7 +25,8 @@ use think\model\concern\SoftDelete; class SystemRole extends BaseModel { use SoftDelete; - + // 不生成该表的日志 + public $doNotRecordLog = true; protected $deleteTime = 'delete_time'; protected $name = 'system_role'; diff --git a/app/common/model/auth/SystemRoleMenu.php b/app/common/model/auth/SystemRoleMenu.php index f5e0d0329..4edb5b6d7 100644 --- a/app/common/model/auth/SystemRoleMenu.php +++ b/app/common/model/auth/SystemRoleMenu.php @@ -25,6 +25,7 @@ use app\common\model\BaseModel; */ class SystemRoleMenu extends BaseModel { - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/beforehand_order/BeforehandOrder.php b/app/common/model/beforehand_order/BeforehandOrder.php index 50a4fda14..ee34f8863 100644 --- a/app/common/model/beforehand_order/BeforehandOrder.php +++ b/app/common/model/beforehand_order/BeforehandOrder.php @@ -18,6 +18,7 @@ class BeforehandOrder extends BaseModel protected $name = 'beforehand_order'; protected $deleteTime = 'delete_time'; protected $json = ['other_data']; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/beforehand_order_cart_info/BeforehandOrderCartInfo.php b/app/common/model/beforehand_order_cart_info/BeforehandOrderCartInfo.php index bd017fa27..50760511c 100644 --- a/app/common/model/beforehand_order_cart_info/BeforehandOrderCartInfo.php +++ b/app/common/model/beforehand_order_cart_info/BeforehandOrderCartInfo.php @@ -17,6 +17,7 @@ class BeforehandOrderCartInfo extends BaseModel use SoftDelete; protected $name = 'beforehand_order_cart_info'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/beforehand_order_record/BeforehandOrderRecord.php b/app/common/model/beforehand_order_record/BeforehandOrderRecord.php index c2fc83f03..92bf81433 100644 --- a/app/common/model/beforehand_order_record/BeforehandOrderRecord.php +++ b/app/common/model/beforehand_order_record/BeforehandOrderRecord.php @@ -17,6 +17,7 @@ class BeforehandOrderRecord extends BaseModel use SoftDelete; protected $name = 'beforehand_order_record'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/cate/Cate.php b/app/common/model/cate/Cate.php index cb2506c7e..86b8bb56b 100644 --- a/app/common/model/cate/Cate.php +++ b/app/common/model/cate/Cate.php @@ -17,7 +17,8 @@ class Cate extends BaseModel use SoftDelete; protected $name = 'store_category'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function getChildrenAttr($value) { if($value){ diff --git a/app/common/model/delivery_service/DeliveryService.php b/app/common/model/delivery_service/DeliveryService.php index 6c0789f06..6ab230fc6 100644 --- a/app/common/model/delivery_service/DeliveryService.php +++ b/app/common/model/delivery_service/DeliveryService.php @@ -17,6 +17,7 @@ class DeliveryService extends BaseModel use SoftDelete; protected $name = 'delivery_service'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/dept/Dept.php b/app/common/model/dept/Dept.php index 82c8cb2aa..70b6eded8 100644 --- a/app/common/model/dept/Dept.php +++ b/app/common/model/dept/Dept.php @@ -29,7 +29,8 @@ class Dept extends BaseModel use SoftDelete; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 状态描述 * @param $value diff --git a/app/common/model/dept/Jobs.php b/app/common/model/dept/Jobs.php index 5c2c934c9..ce569177c 100644 --- a/app/common/model/dept/Jobs.php +++ b/app/common/model/dept/Jobs.php @@ -28,7 +28,8 @@ class Jobs extends BaseModel use SoftDelete; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 状态描述 * @param $value diff --git a/app/common/model/dict/DictData.php b/app/common/model/dict/DictData.php index b4f24bcbb..75b672b84 100644 --- a/app/common/model/dict/DictData.php +++ b/app/common/model/dict/DictData.php @@ -30,7 +30,8 @@ class DictData extends BaseModel protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 状态描述 * @param $value diff --git a/app/common/model/dict/DictType.php b/app/common/model/dict/DictType.php index 7b2be5060..8222af251 100644 --- a/app/common/model/dict/DictType.php +++ b/app/common/model/dict/DictType.php @@ -29,7 +29,8 @@ class DictType extends BaseModel use SoftDelete; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 状态描述 diff --git a/app/common/model/distribution/Distribution.php b/app/common/model/distribution/Distribution.php index f63be4b9d..3553a2cb0 100644 --- a/app/common/model/distribution/Distribution.php +++ b/app/common/model/distribution/Distribution.php @@ -17,6 +17,7 @@ class Distribution extends BaseModel use SoftDelete; protected $name = 'distribution'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/file/File.php b/app/common/model/file/File.php index 558b1188b..0181b2938 100644 --- a/app/common/model/file/File.php +++ b/app/common/model/file/File.php @@ -21,4 +21,6 @@ class File extends BaseModel { use SoftDelete; protected $deleteTime = 'delete_time'; -} \ No newline at end of file + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/file/FileCate.php b/app/common/model/file/FileCate.php index 845904be7..52925f97a 100644 --- a/app/common/model/file/FileCate.php +++ b/app/common/model/file/FileCate.php @@ -22,4 +22,6 @@ class FileCate extends BaseModel { use SoftDelete; protected $deleteTime = 'delete_time'; -} \ No newline at end of file + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/finance/CapitalFlow.php b/app/common/model/finance/CapitalFlow.php index c21929d67..da2ca34ad 100644 --- a/app/common/model/finance/CapitalFlow.php +++ b/app/common/model/finance/CapitalFlow.php @@ -9,5 +9,6 @@ class CapitalFlow extends BaseModel { use SoftDelete; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } diff --git a/app/common/model/finance/PayNotifyLog.php b/app/common/model/finance/PayNotifyLog.php index 60ef81506..3ebda3db5 100644 --- a/app/common/model/finance/PayNotifyLog.php +++ b/app/common/model/finance/PayNotifyLog.php @@ -6,7 +6,8 @@ use app\common\model\BaseModel; class PayNotifyLog extends BaseModel { - + // 不生成该表的日志 + public $doNotRecordLog = true; const TYPE_ORDER = 1; const TYPE_REFUND = 2; diff --git a/app/common/model/financial_transfers/FinancialTransfers.php b/app/common/model/financial_transfers/FinancialTransfers.php index dede4d2f9..6fe2d1a2e 100644 --- a/app/common/model/financial_transfers/FinancialTransfers.php +++ b/app/common/model/financial_transfers/FinancialTransfers.php @@ -20,7 +20,8 @@ class FinancialTransfers extends BaseModel use SoftDelete; protected $name = 'financial_transfers'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function store() { diff --git a/app/common/model/geo/GeoArea.php b/app/common/model/geo/GeoArea.php index cb0741e95..aa2e2d6ad 100644 --- a/app/common/model/geo/GeoArea.php +++ b/app/common/model/geo/GeoArea.php @@ -12,5 +12,6 @@ class GeoArea extends BaseModel { protected $name = 'geo_area'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/geo/GeoBrigade.php b/app/common/model/geo/GeoBrigade.php index ffaaeb986..4af8a4b17 100644 --- a/app/common/model/geo/GeoBrigade.php +++ b/app/common/model/geo/GeoBrigade.php @@ -12,5 +12,6 @@ class GeoBrigade extends BaseModel { protected $name = 'geo_brigade'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/geo/GeoCity.php b/app/common/model/geo/GeoCity.php index 64e27fe70..6db9fd791 100644 --- a/app/common/model/geo/GeoCity.php +++ b/app/common/model/geo/GeoCity.php @@ -12,5 +12,6 @@ class GeoCity extends BaseModel { protected $name = 'geo_city'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/geo/GeoProvince.php b/app/common/model/geo/GeoProvince.php index 899c23ef6..df20fdaae 100644 --- a/app/common/model/geo/GeoProvince.php +++ b/app/common/model/geo/GeoProvince.php @@ -12,5 +12,6 @@ class GeoProvince extends BaseModel { protected $name = 'geo_province'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/geo/GeoStreet.php b/app/common/model/geo/GeoStreet.php index 34387d21a..a5e24f434 100644 --- a/app/common/model/geo/GeoStreet.php +++ b/app/common/model/geo/GeoStreet.php @@ -12,5 +12,6 @@ class GeoStreet extends BaseModel { protected $name = 'geo_street'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/geo/GeoVillage.php b/app/common/model/geo/GeoVillage.php index 6daaf4745..26e300c59 100644 --- a/app/common/model/geo/GeoVillage.php +++ b/app/common/model/geo/GeoVillage.php @@ -12,5 +12,6 @@ class GeoVillage extends BaseModel { protected $name = 'geo_village'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/merchant/Merchant.php b/app/common/model/merchant/Merchant.php index 8e5314a05..ce8497e38 100644 --- a/app/common/model/merchant/Merchant.php +++ b/app/common/model/merchant/Merchant.php @@ -19,7 +19,8 @@ class Merchant extends BaseModel protected $ok = 'mer_id'; protected $name = 'merchant'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function realName() { return $this->hasOne(User::class,'id','uid')->bind(['mer_real_name'=>'real_name']); diff --git a/app/common/model/order/Cart.php b/app/common/model/order/Cart.php index 58d592c61..dfaca1db1 100644 --- a/app/common/model/order/Cart.php +++ b/app/common/model/order/Cart.php @@ -17,6 +17,7 @@ class Cart extends BaseModel use SoftDelete; protected $name = 'store_cart'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/pay/PayConfig.php b/app/common/model/pay/PayConfig.php index 4c1738d6e..6dffa9acb 100644 --- a/app/common/model/pay/PayConfig.php +++ b/app/common/model/pay/PayConfig.php @@ -11,7 +11,8 @@ use app\common\service\FileService; class PayConfig extends BaseModel { protected $name = 'dev_pay_config'; - + // 不生成该表的日志 + public $doNotRecordLog = true; // 设置json类型字段 protected $json = ['config']; diff --git a/app/common/model/pay/PayNotify.php b/app/common/model/pay/PayNotify.php index 44d3c4e38..455f8010c 100644 --- a/app/common/model/pay/PayNotify.php +++ b/app/common/model/pay/PayNotify.php @@ -7,4 +7,6 @@ use app\common\model\BaseModel; class PayNotify extends BaseModel { protected $name = 'pay_notify_log'; -} \ No newline at end of file + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/pay/PayWay.php b/app/common/model/pay/PayWay.php index 1f21910cd..c90a8b546 100644 --- a/app/common/model/pay/PayWay.php +++ b/app/common/model/pay/PayWay.php @@ -22,7 +22,8 @@ use app\common\service\FileService; class PayWay extends BaseModel { protected $name = 'dev_pay_way'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function getIconAttr($value,$data) { return FileService::getFileUrl($value); diff --git a/app/common/model/purchase_order/PurchaseOrder.php b/app/common/model/purchase_order/PurchaseOrder.php index b0bb36cb1..d109d426e 100644 --- a/app/common/model/purchase_order/PurchaseOrder.php +++ b/app/common/model/purchase_order/PurchaseOrder.php @@ -17,6 +17,7 @@ class PurchaseOrder extends BaseModel use SoftDelete; protected $name = 'purchase_order'; protected $deleteTime = 'delete_time'; - protected $json = ['order_arr','store_arr']; - -} \ No newline at end of file + protected $json = ['order_arr', 'store_arr']; + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/purchase_order_info/PurchaseOrderInfo.php b/app/common/model/purchase_order_info/PurchaseOrderInfo.php index 1d549d70b..a4baa0256 100644 --- a/app/common/model/purchase_order_info/PurchaseOrderInfo.php +++ b/app/common/model/purchase_order_info/PurchaseOrderInfo.php @@ -17,6 +17,7 @@ class PurchaseOrderInfo extends BaseModel use SoftDelete; protected $name = 'purchase_order_info'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/purchase_product_offer/PurchaseProductOffer.php b/app/common/model/purchase_product_offer/PurchaseProductOffer.php index 54b111504..2c15941b4 100644 --- a/app/common/model/purchase_product_offer/PurchaseProductOffer.php +++ b/app/common/model/purchase_product_offer/PurchaseProductOffer.php @@ -18,7 +18,8 @@ class PurchaseProductOffer extends BaseModel use SoftDelete; protected $name = 'purchase_product_offer'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; protected $json = ['source_order_info']; protected $jsonAssoc = true; diff --git a/app/common/model/setting/Category.php b/app/common/model/setting/Category.php index eae9f2546..67fabab8e 100644 --- a/app/common/model/setting/Category.php +++ b/app/common/model/setting/Category.php @@ -17,6 +17,7 @@ class Category extends BaseModel use SoftDelete; protected $name = 'category'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/store_branch_product_attr_value/StoreBranchProductAttrValue.php b/app/common/model/store_branch_product_attr_value/StoreBranchProductAttrValue.php index bd44c55e6..472e343e4 100644 --- a/app/common/model/store_branch_product_attr_value/StoreBranchProductAttrValue.php +++ b/app/common/model/store_branch_product_attr_value/StoreBranchProductAttrValue.php @@ -19,7 +19,8 @@ class StoreBranchProductAttrValue extends BaseModel use SoftDelete; protected $name = 'store_branch_product_attr_value'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function attr() { return $this->hasOne(StoreBranchProduct::class, 'product_id', 'product_id')->bind(['image']); diff --git a/app/common/model/store_branch_product_exchange/StoreBranchProductExchange.php b/app/common/model/store_branch_product_exchange/StoreBranchProductExchange.php index 24ad4cbc3..6f1d39b69 100644 --- a/app/common/model/store_branch_product_exchange/StoreBranchProductExchange.php +++ b/app/common/model/store_branch_product_exchange/StoreBranchProductExchange.php @@ -20,5 +20,6 @@ class StoreBranchProductExchange extends BaseModel use SoftDelete; protected $name = 'store_branch_product_exchange'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/store_cash_finance_flow/StoreCashFinanceFlow.php b/app/common/model/store_cash_finance_flow/StoreCashFinanceFlow.php index 9f41f7ee0..5e5b542d2 100644 --- a/app/common/model/store_cash_finance_flow/StoreCashFinanceFlow.php +++ b/app/common/model/store_cash_finance_flow/StoreCashFinanceFlow.php @@ -18,5 +18,6 @@ class StoreCashFinanceFlow extends BaseModel protected $name = 'store_cash_finance_flow'; protected $deleteTime = 'delete_time'; - -} \ No newline at end of file + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/store_category/StoreCategory.php b/app/common/model/store_category/StoreCategory.php index 27b4d9e54..c1d037935 100644 --- a/app/common/model/store_category/StoreCategory.php +++ b/app/common/model/store_category/StoreCategory.php @@ -21,5 +21,6 @@ class StoreCategory extends BaseModel protected $json = ['price_rate']; protected $jsonAssoc = true; - -} \ No newline at end of file + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/store_extract/StoreExtract.php b/app/common/model/store_extract/StoreExtract.php index c34325ef2..b21dbeceb 100644 --- a/app/common/model/store_extract/StoreExtract.php +++ b/app/common/model/store_extract/StoreExtract.php @@ -17,6 +17,7 @@ class StoreExtract extends BaseModel use SoftDelete; protected $name = 'store_extract'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/store_finance_flow/StoreFinanceFlow.php b/app/common/model/store_finance_flow/StoreFinanceFlow.php index c1e701280..4edae4f64 100644 --- a/app/common/model/store_finance_flow/StoreFinanceFlow.php +++ b/app/common/model/store_finance_flow/StoreFinanceFlow.php @@ -21,7 +21,8 @@ class StoreFinanceFlow extends BaseModel use SoftDelete; protected $name = 'store_finance_flow'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function store() { return $this->hasOne(SystemStore::class, 'id','store_id') diff --git a/app/common/model/store_finance_flow_product/StoreFinanceFlowProduct.php b/app/common/model/store_finance_flow_product/StoreFinanceFlowProduct.php index daa72cf84..ae371d467 100644 --- a/app/common/model/store_finance_flow_product/StoreFinanceFlowProduct.php +++ b/app/common/model/store_finance_flow_product/StoreFinanceFlowProduct.php @@ -18,4 +18,6 @@ class StoreFinanceFlowProduct extends BaseModel use SoftDelete; protected $name = 'store_finance_flow_product'; protected $deleteTime = 'delete_time'; -} \ No newline at end of file + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/store_order/StoreOrder.php b/app/common/model/store_order/StoreOrder.php index e373c780f..23923415a 100644 --- a/app/common/model/store_order/StoreOrder.php +++ b/app/common/model/store_order/StoreOrder.php @@ -23,6 +23,8 @@ class StoreOrder extends BaseModel use SoftDelete; protected $name = 'store_order'; protected $deleteTime = 'delete_time'; + // 不生成该表的日志 + public $doNotRecordLog = true; // public function getPayTimeAttr($value) // { // return $value?date('Y-m-d H:i:s', $value):''; @@ -40,9 +42,9 @@ class StoreOrder extends BaseModel } public function getSystemStoreNameTextAttr($value, $data) { - if($data['store_id']>0){ - $name = SystemStore::where('id',$data['store_id'])->value('name'); - }else{ + if ($data['store_id'] > 0) { + $name = SystemStore::where('id', $data['store_id'])->value('name'); + } else { $name = '无'; } return $name; @@ -50,9 +52,9 @@ class StoreOrder extends BaseModel public function getStatusNameTextAttr($value, $data) { - if($data['status']==-1){ + if ($data['status'] == -1) { $status = OrderEnum::refundStatus($data['refund_status']) ?? ''; - }else{ + } else { $status = OrderEnum::getOrderType($data['status']) ?? ''; } return $status; @@ -72,7 +74,7 @@ class StoreOrder extends BaseModel { return $this->hasOne(SystemStoreStaff::class, 'id', 'staff_id')->bind(['staff_name']); } - /** + /** * 总销售额 * @param $time * @return float @@ -92,7 +94,7 @@ class StoreOrder extends BaseModel { return $this->where($where)->where('paid', 1)->where('refund_status', '=', 0)->where(function ($query) use ($time) { if ($time[0] == $time[1]) { - $query->whereDay('create_time', date('Y-m-d',$time[0])); + $query->whereDay('create_time', date('Y-m-d', $time[0])); } else { $time[1] = $time[1] + 86400; $query->whereTime('create_time', 'between', $time); @@ -105,10 +107,10 @@ class StoreOrder extends BaseModel { try { $where = $data->getWhere(); - if($data){ + if ($data) { $find = self::where($where)->field(array_keys($data->toArray()))->find(); - if($find){ - channelLog(array_merge($find->toArray(), $where),'store_order','更新前'); + if ($find) { + channelLog(array_merge($find->toArray(), $where), 'store_order', '更新前'); } } } catch (Throwable $e) { @@ -116,11 +118,12 @@ class StoreOrder extends BaseModel } } - public static function onAfterWrite($data){ - try{ - channelLog($data->toArray(),'store_order','更新后'); - }catch(Throwable $e){ - Log::error('store_order:更新后'.$e->getMessage()); + public static function onAfterWrite($data) + { + try { + channelLog($data->toArray(), 'store_order', '更新后'); + } catch (Throwable $e) { + Log::error('store_order:更新后' . $e->getMessage()); } } } diff --git a/app/common/model/store_order_cart_info/StoreOrderCartInfo.php b/app/common/model/store_order_cart_info/StoreOrderCartInfo.php index a3c407b10..92f8155bd 100644 --- a/app/common/model/store_order_cart_info/StoreOrderCartInfo.php +++ b/app/common/model/store_order_cart_info/StoreOrderCartInfo.php @@ -15,7 +15,8 @@ class StoreOrderCartInfo extends BaseModel protected $deleteTime = 'delete_time'; protected $json = ['cart_info']; protected $jsonAssoc = true; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function goodsName() { return $this->hasOne(StoreBranchProduct::class,'id','product_id')->bind(['store_name','image','unit','price']); diff --git a/app/common/model/store_order_transshipment_info/StoreOrderTransshipmentInfo.php b/app/common/model/store_order_transshipment_info/StoreOrderTransshipmentInfo.php index 9425a05e6..5bf7bb3b4 100644 --- a/app/common/model/store_order_transshipment_info/StoreOrderTransshipmentInfo.php +++ b/app/common/model/store_order_transshipment_info/StoreOrderTransshipmentInfo.php @@ -16,7 +16,5 @@ class StoreOrderTransshipmentInfo extends BaseModel { use SoftDelete; protected $name = 'store_order_transshipment_info'; - protected $deleteTime = 'delete_time'; - - + protected $deleteTime = 'delete_time'; } \ No newline at end of file diff --git a/app/common/model/store_product_attr_value/StoreProductAttrValue.php b/app/common/model/store_product_attr_value/StoreProductAttrValue.php index 0cf33aa73..7023f42fd 100644 --- a/app/common/model/store_product_attr_value/StoreProductAttrValue.php +++ b/app/common/model/store_product_attr_value/StoreProductAttrValue.php @@ -18,7 +18,8 @@ class StoreProductAttrValue extends BaseModel use SoftDelete; protected $name = 'store_product_attr_value'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function storeName() { return $this->belongsTo(StoreProduct::class, 'product_id', 'id') diff --git a/app/common/model/store_product_cate/StoreProductCate.php b/app/common/model/store_product_cate/StoreProductCate.php index 41338c9e7..1e4abd3df 100644 --- a/app/common/model/store_product_cate/StoreProductCate.php +++ b/app/common/model/store_product_cate/StoreProductCate.php @@ -10,5 +10,6 @@ class StoreProductCate extends BaseModel use SoftDelete; protected $name = 'store_product_cate'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/store_product_gift/StoreProductGift.php b/app/common/model/store_product_gift/StoreProductGift.php index a4e1c07a1..92d333696 100644 --- a/app/common/model/store_product_gift/StoreProductGift.php +++ b/app/common/model/store_product_gift/StoreProductGift.php @@ -14,7 +14,8 @@ class StoreProductGift extends BaseModel use SoftDelete; protected $name = 'store_product_gift'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function store() { return $this->hasOne(SystemStore::class, 'id', 'store_id') diff --git a/app/common/model/store_product_group_price/StoreProductGroupPrice.php b/app/common/model/store_product_group_price/StoreProductGroupPrice.php index b6b4e0fe0..c587e1e84 100644 --- a/app/common/model/store_product_group_price/StoreProductGroupPrice.php +++ b/app/common/model/store_product_group_price/StoreProductGroupPrice.php @@ -17,7 +17,8 @@ class StoreProductGroupPrice extends BaseModel use SoftDelete; protected $name = 'store_product_group_price'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public static function resetProductsPrice($productList, $userShip) { $productIds = array_column($productList, 'product_id'); diff --git a/app/common/model/store_product_log/StoreProductLog.php b/app/common/model/store_product_log/StoreProductLog.php index 6c17971e3..6b6795a6e 100644 --- a/app/common/model/store_product_log/StoreProductLog.php +++ b/app/common/model/store_product_log/StoreProductLog.php @@ -18,7 +18,8 @@ class StoreProductLog extends BaseModel use SoftDelete; protected $name = 'store_product_log'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function store() { return $this->hasOne(SystemStore::class, 'id', 'store_id') diff --git a/app/common/model/store_product_price/StoreProductPrice.php b/app/common/model/store_product_price/StoreProductPrice.php index 92e9bed1b..de32abc9d 100644 --- a/app/common/model/store_product_price/StoreProductPrice.php +++ b/app/common/model/store_product_price/StoreProductPrice.php @@ -20,5 +20,6 @@ class StoreProductPrice extends BaseModel protected $json = ['price_config']; protected $jsonAssoc = true; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/store_product_unit/StoreProductUnit.php b/app/common/model/store_product_unit/StoreProductUnit.php index 508a978ca..25ae5418e 100644 --- a/app/common/model/store_product_unit/StoreProductUnit.php +++ b/app/common/model/store_product_unit/StoreProductUnit.php @@ -17,6 +17,7 @@ class StoreProductUnit extends BaseModel use SoftDelete; protected $name = 'store_product_unit'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/store_visit/StoreVisit.php b/app/common/model/store_visit/StoreVisit.php index 82a837d8f..2ae8a40a2 100644 --- a/app/common/model/store_visit/StoreVisit.php +++ b/app/common/model/store_visit/StoreVisit.php @@ -17,6 +17,7 @@ class StoreVisit extends BaseModel use SoftDelete; protected $name = 'store_visit'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/supplier/Supplier.php b/app/common/model/supplier/Supplier.php index e6d9d9a38..94a21edf6 100644 --- a/app/common/model/supplier/Supplier.php +++ b/app/common/model/supplier/Supplier.php @@ -17,6 +17,7 @@ class Supplier extends BaseModel use SoftDelete; protected $name = 'supplier'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/system_store/DeliveryService.php b/app/common/model/system_store/DeliveryService.php index 51a7b5f19..530c4c2ed 100644 --- a/app/common/model/system_store/DeliveryService.php +++ b/app/common/model/system_store/DeliveryService.php @@ -17,7 +17,8 @@ class DeliveryService extends BaseModel protected $name = 'delivery_service'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 头像获取器 - 头像路径添加域名 * @param $value diff --git a/app/common/model/system_store/SystemStore.php b/app/common/model/system_store/SystemStore.php index 320d93f30..f950d4e56 100644 --- a/app/common/model/system_store/SystemStore.php +++ b/app/common/model/system_store/SystemStore.php @@ -18,7 +18,8 @@ class SystemStore extends BaseModel use SoftDelete; protected $name = 'system_store'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public static function onBeforeWrite($data) { try { diff --git a/app/common/model/system_store/SystemStoreMenu.php b/app/common/model/system_store/SystemStoreMenu.php index d1ecfcc07..cf11a0e86 100644 --- a/app/common/model/system_store/SystemStoreMenu.php +++ b/app/common/model/system_store/SystemStoreMenu.php @@ -28,6 +28,7 @@ class SystemStoreMenu extends BaseModel { use SoftDelete; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } diff --git a/app/common/model/system_store/SystemStoreStaff.php b/app/common/model/system_store/SystemStoreStaff.php index d6919b59a..7bf31ccba 100644 --- a/app/common/model/system_store/SystemStoreStaff.php +++ b/app/common/model/system_store/SystemStoreStaff.php @@ -18,7 +18,8 @@ class SystemStoreStaff extends BaseModel use SoftDelete; protected $name = 'system_store_staff'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 头像获取器 - 头像路径添加域名 * @param $value diff --git a/app/common/model/system_store/SystemStoreStaffSession.php b/app/common/model/system_store/SystemStoreStaffSession.php index ad2c073f2..1c3a52302 100644 --- a/app/common/model/system_store/SystemStoreStaffSession.php +++ b/app/common/model/system_store/SystemStoreStaffSession.php @@ -10,5 +10,6 @@ class SystemStoreStaffSession extends BaseModel protected $name = 'system_store_staff_session'; protected $createTime = false; - + // 不生成该表的日志 + public $doNotRecordLog = true; } diff --git a/app/common/model/tools/GenerateColumn.php b/app/common/model/tools/GenerateColumn.php index 7426cc753..2fdeeef07 100644 --- a/app/common/model/tools/GenerateColumn.php +++ b/app/common/model/tools/GenerateColumn.php @@ -25,7 +25,8 @@ use app\common\model\BaseModel; */ class GenerateColumn extends BaseModel { - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 关联table表 * @return \think\model\relation\BelongsTo diff --git a/app/common/model/tools/GenerateTable.php b/app/common/model/tools/GenerateTable.php index 181bbe4fc..c2fddd6b2 100644 --- a/app/common/model/tools/GenerateTable.php +++ b/app/common/model/tools/GenerateTable.php @@ -29,7 +29,8 @@ class GenerateTable extends BaseModel protected $json = ['menu', 'tree', 'relations', 'delete']; protected $jsonAssoc = true; - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * @notes 关联数据表字段 * @return \think\model\relation\HasMany diff --git a/app/common/model/user/User.php b/app/common/model/user/User.php index 78c226694..4b0faba4f 100644 --- a/app/common/model/user/User.php +++ b/app/common/model/user/User.php @@ -23,7 +23,8 @@ class User extends BaseModel use SoftDelete; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; //会员类型 public function userShip() { diff --git a/app/common/model/user/UserAddress.php b/app/common/model/user/UserAddress.php index a052e22d2..be42fe2aa 100644 --- a/app/common/model/user/UserAddress.php +++ b/app/common/model/user/UserAddress.php @@ -22,7 +22,8 @@ class UserAddress extends BaseModel protected $pk = 'id'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public static function getDefaultAddress($uid) { $address = self::with(['area', 'street', 'village', 'brigade'])->where(['uid' => $uid, 'is_default' => 1])->find(); diff --git a/app/common/model/user/UserAuth.php b/app/common/model/user/UserAuth.php index bbc719ae9..37ac6c1d4 100644 --- a/app/common/model/user/UserAuth.php +++ b/app/common/model/user/UserAuth.php @@ -13,5 +13,6 @@ use app\common\model\BaseModel; */ class UserAuth extends BaseModel { - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/user/UserFeedback.php b/app/common/model/user/UserFeedback.php index 14e24f431..c67c35ae3 100644 --- a/app/common/model/user/UserFeedback.php +++ b/app/common/model/user/UserFeedback.php @@ -17,7 +17,8 @@ class UserFeedback extends BaseModel use SoftDelete; protected $name = 'user_feedback'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function getImagesAttr($value){ return !empty($value) ? json_decode($value,true) : ''; } diff --git a/app/common/model/user/UserRecharge.php b/app/common/model/user/UserRecharge.php index 7876c81f9..1d81126b6 100644 --- a/app/common/model/user/UserRecharge.php +++ b/app/common/model/user/UserRecharge.php @@ -17,5 +17,6 @@ class UserRecharge extends BaseModel use SoftDelete; protected $pk = 'id'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/user/UserSession.php b/app/common/model/user/UserSession.php index 7685fb568..a7a83a449 100644 --- a/app/common/model/user/UserSession.php +++ b/app/common/model/user/UserSession.php @@ -11,5 +11,6 @@ use app\common\model\BaseModel; */ class UserSession extends BaseModel { - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/user/UserVisit.php b/app/common/model/user/UserVisit.php index 182247e34..ced21db44 100644 --- a/app/common/model/user/UserVisit.php +++ b/app/common/model/user/UserVisit.php @@ -18,7 +18,8 @@ class UserVisit extends BaseModel protected $pk = 'id'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * 用户趋势数据 * @param $time diff --git a/app/common/model/user_bill/UserBill.php b/app/common/model/user_bill/UserBill.php index e548b068f..7dca8484d 100644 --- a/app/common/model/user_bill/UserBill.php +++ b/app/common/model/user_bill/UserBill.php @@ -17,6 +17,7 @@ class UserBill extends BaseModel use SoftDelete; protected $name = 'user_bill'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/user_create_log/UserCreateLog.php b/app/common/model/user_create_log/UserCreateLog.php index f323d5625..5dea70fa5 100644 --- a/app/common/model/user_create_log/UserCreateLog.php +++ b/app/common/model/user_create_log/UserCreateLog.php @@ -17,6 +17,7 @@ class UserCreateLog extends BaseModel use SoftDelete; protected $name = 'user_create_log'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/user_label/UserLabel.php b/app/common/model/user_label/UserLabel.php index adeb03be2..469631818 100644 --- a/app/common/model/user_label/UserLabel.php +++ b/app/common/model/user_label/UserLabel.php @@ -17,6 +17,7 @@ class UserLabel extends BaseModel use SoftDelete; protected $name = 'user_label'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/user_product_storage/UserProductStorage.php b/app/common/model/user_product_storage/UserProductStorage.php index 32b16daac..b36b932e8 100644 --- a/app/common/model/user_product_storage/UserProductStorage.php +++ b/app/common/model/user_product_storage/UserProductStorage.php @@ -17,4 +17,6 @@ class UserProductStorage extends BaseModel use SoftDelete; protected $name = 'user_product_storage'; protected $deleteTime = 'delete_time'; -} \ No newline at end of file + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/user_product_storage_log/UserProductStorageLog.php b/app/common/model/user_product_storage_log/UserProductStorageLog.php index a7f2558e7..898931726 100644 --- a/app/common/model/user_product_storage_log/UserProductStorageLog.php +++ b/app/common/model/user_product_storage_log/UserProductStorageLog.php @@ -16,5 +16,7 @@ class UserProductStorageLog extends BaseModel { use SoftDelete; protected $name = 'user_product_storage_log'; - protected $deleteTime = 'delete_time'; -} \ No newline at end of file + protected $deleteTime = 'delete_time'; + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/user_recharge/UserRecharge.php b/app/common/model/user_recharge/UserRecharge.php index ce77b733f..2dc8b8899 100644 --- a/app/common/model/user_recharge/UserRecharge.php +++ b/app/common/model/user_recharge/UserRecharge.php @@ -17,7 +17,8 @@ class UserRecharge extends BaseModel use SoftDelete; protected $name = 'user_recharge'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; /** * 获取充值统计曲线 * @param $time diff --git a/app/common/model/user_ship/UserShip.php b/app/common/model/user_ship/UserShip.php index 1cfc60f27..227a9ba97 100644 --- a/app/common/model/user_ship/UserShip.php +++ b/app/common/model/user_ship/UserShip.php @@ -10,4 +10,6 @@ class UserShip extends BaseModel use SoftDelete; protected $name = 'user_ship'; protected $deleteTime = 'delete_time'; -} \ No newline at end of file + // 不生成该表的日志 + public $doNotRecordLog = true; +} diff --git a/app/common/model/user_sign/UserSign.php b/app/common/model/user_sign/UserSign.php index 1efaea526..60132555d 100644 --- a/app/common/model/user_sign/UserSign.php +++ b/app/common/model/user_sign/UserSign.php @@ -17,5 +17,6 @@ class UserSign extends BaseModel use SoftDelete; protected $name = 'user_sign'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/user_sign_log/UserSignLog.php b/app/common/model/user_sign_log/UserSignLog.php index 253b31a46..301548ebe 100644 --- a/app/common/model/user_sign_log/UserSignLog.php +++ b/app/common/model/user_sign_log/UserSignLog.php @@ -17,5 +17,6 @@ class UserSignLog extends BaseModel use SoftDelete; protected $name = 'user_sign_log'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/user_spread_log/UserSpreadLog.php b/app/common/model/user_spread_log/UserSpreadLog.php index 6ac54de19..8204f8aa1 100644 --- a/app/common/model/user_spread_log/UserSpreadLog.php +++ b/app/common/model/user_spread_log/UserSpreadLog.php @@ -17,6 +17,7 @@ class UserSpreadLog extends BaseModel use SoftDelete; protected $name = 'user_spread_log'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/vip_flow/VipFlow.php b/app/common/model/vip_flow/VipFlow.php index 9c62aa874..b1f934cea 100644 --- a/app/common/model/vip_flow/VipFlow.php +++ b/app/common/model/vip_flow/VipFlow.php @@ -11,7 +11,8 @@ class VipFlow extends BaseModel use SoftDelete; protected $name = 'vip_flow'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; public function store() { return $this->hasOne(SystemStore::class, 'id','store_id') diff --git a/app/common/model/warehouse/Warehouse.php b/app/common/model/warehouse/Warehouse.php index 4689aefac..efc2c30e2 100644 --- a/app/common/model/warehouse/Warehouse.php +++ b/app/common/model/warehouse/Warehouse.php @@ -17,6 +17,7 @@ class Warehouse extends BaseModel use SoftDelete; protected $name = 'warehouse'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/warehouse_order/WarehouseOrder.php b/app/common/model/warehouse_order/WarehouseOrder.php index 95f922c52..0b516e5a3 100644 --- a/app/common/model/warehouse_order/WarehouseOrder.php +++ b/app/common/model/warehouse_order/WarehouseOrder.php @@ -17,6 +17,7 @@ class WarehouseOrder extends BaseModel use SoftDelete; protected $name = 'warehouse_order'; protected $deleteTime = 'delete_time'; - + // 不生成该表的日志 + public $doNotRecordLog = true; } \ No newline at end of file diff --git a/app/common/model/warehouse_product_return/WarehouseProductReturn.php b/app/common/model/warehouse_product_return/WarehouseProductReturn.php index 9430486e9..b3002b238 100644 --- a/app/common/model/warehouse_product_return/WarehouseProductReturn.php +++ b/app/common/model/warehouse_product_return/WarehouseProductReturn.php @@ -17,6 +17,4 @@ class WarehouseProductReturn extends BaseModel use SoftDelete; protected $name = 'warehouse_product_return'; protected $deleteTime = 'delete_time'; - - } \ No newline at end of file