1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace JinDouYun\Dao\Market;
- use JinDouYun\Dao\BaseDao;
- class DCoupon extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'coupon';
- $this->_primary = 'id';
- $this->_fields = [
- "id",
- "startTime",
- "endTime",
- "name",
- "couponType",
- "reducePrice",
- "minPrice",
- "remark",
- "grantType",
- "totalNum",
- "allowNum",
- "customerSourceId",
- "mustCondition",
- "grantStartTime",
- "grantEndTime",
- "useShop",
- "applyRange",
- "categoryCollect",
- "brandCollect",
- "goodsCollect",
- "receiveNum",
- "sort",
- "deleteStatus",
- "auditStatus",
- "createTime",
- "updateTime",
- "extends",
- "customerIds",
- "isMutex",
- "enableStatus",
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|