DCommissionOrderIndex.Class.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace JinDouYun\Dao\Commission;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description:
  6. * Class DCommissionOrderIndex
  7. * @package JinDouYun\Dao\Commission
  8. */
  9. class DCommissionOrderIndex extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'commission_order_index';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",// int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  17. "userCenterId",// int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id (买家)',
  18. "customerId",// int(11) unsigned NOT NULL DEFAULT '0' COMMENT '客户id (买家)',
  19. "orderId",// int(11) unsigned NOT NULL DEFAULT '0' COMMENT '订单id',
  20. "orderNo",// varchar(50) NOT NULL DEFAULT '' COMMENT '订单号',
  21. "payAmount",// decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '订单支付金额',
  22. "retUserCenterId",// int(11) unsigned NOT NULL DEFAULT '0' COMMENT '返佣用户id',
  23. "retCustomerId",// int(11) unsigned NOT NULL DEFAULT '0' COMMENT '返佣客户id',
  24. "retMoney",// decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '分销佣金',
  25. "retLevel",// int(11) unsigned NOT NULL DEFAULT '0' COMMENT '返佣用户级别 1,2,3',
  26. "retGrade",// int(11) unsigned NOT NULL DEFAULT '0' COMMENT '返佣用户等级 1-10级',
  27. "createTime",// int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  28. "updateTime",// int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  29. "extends",// json DEFAULT NULL COMMENT '拓展字段',
  30. "isAccount",
  31. ];
  32. $this->_readonly = ['id'];
  33. $this->_create_autofill = [
  34. 'createTime' => time()
  35. ];
  36. $this->_update_autofill = [
  37. 'updateTime' => time()
  38. ];
  39. parent::__construct($serviceDB);
  40. }
  41. }