DCommissionGoodsStatistics.Class.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace JinDouYun\Dao\Commission;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:商品分销统计表
  6. * Class DCommissionGoodsStatistics
  7. * @package JinDouYun\Dao\Commission
  8. */
  9. class DCommissionGoodsStatistics extends BaseDao
  10. {
  11. /**
  12. * DCommissionGoodsStatistics constructor.
  13. * @param string $serviceDB
  14. */
  15. public function __construct($serviceDB = 'default')
  16. {
  17. $this->_table = 'commission_goods_statistics';
  18. $this->_primary = 'id';
  19. $this->_fields = [
  20. "id",//int(10) NOT NULL AUTO_INCREMENT,
  21. "goodsId",//int(10) DEFAULT '0' COMMENT '商品id',
  22. "skuId",//int(10) DEFAULT '0' COMMENT 'skuId',
  23. "salesNum",//int DEFAULT '0' COMMENT '分销商品销量',
  24. "commission",//decimal(10,2) DEFAULT 0.00 COMMENT '分销商品佣金',
  25. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  26. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  27. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. 'createTime' => time()
  32. ];
  33. $this->_update_autofill = [
  34. 'updateTime' => time()
  35. ];
  36. parent::__construct($serviceDB);
  37. }
  38. }