12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace Jobs\Dao;
- class DUserCoupon extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'user_coupon';
- $this->_primary = 'id';
- $this->_fields = [
- "id",
- "couponId",
- "name",
- "remark",
- "couponType",
- "reducePrice",
- "minPrice",
- "startTime",
- "endTime",
- "applyRange",
- "categoryCollect",
- "brandCollect",
- "goodsCollect",
- "isExpire",
- "isUse",
- "useTime",
- "userId",
- "customerId",
- "shopId",
- "useShop",
- "source",
- "createTime",
- "updateTime",
- "orderNo",
- "orderId",
- "extends",
- "customerIds",
- "isMutex",
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|