DCashierPushMoneyDetail.Class.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace JinDouYun\Dao\Cashier;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description: 提成明细
  6. * Class DCashierPushMoneyDetail
  7. * @package JinDouYun\Dao\Cashier
  8. */
  9. class DCashierPushMoneyDetail extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'cashier_push_money_detail';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",//int(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
  17. "pushType",//tinyint(4) DEFAULT '1' COMMENT '人员类型(1收银员 2导购员)',
  18. "staffName",//varchar(255) DEFAULT '' COMMENT '导购/收银员姓名',
  19. "orderId",//int(10) DEFAULT '0' COMMENT '订单id',
  20. "orderNo",//varchar(50) DEFAULT '' COMMENT '订单号',
  21. "orderMoney",//decimal(10,2) DEFAULT '0.00' COMMENT '订单金额',
  22. "pushMoneyRate",//decimal(10,2) DEFAULT '0.00' COMMENT '提成',
  23. "pushMoney",//decimal(10,2) DEFAULT '0.00' COMMENT '提成金额',
  24. "deleteStatus",//tinyint(1) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
  25. "auditStatus",//tinyint(1) DEFAULT '1' COMMENT '审核状态 1:未审核 2:已审核',
  26. "auditTime",//int(10) DEFAULT NULL COMMENT '审核时间',
  27. "createTime",//int(10) DEFAULT '0' COMMENT '创建时间',
  28. "updateTime",//int(10) DEFAULT '0' COMMENT '修改时间',
  29. "extend",//json DEFAULT NULL COMMENT '扩展字段',
  30. "shopId",
  31. "userCenterId",//导购/收银员id
  32. ];
  33. $this->_readonly = ['id'];
  34. $this->_create_autofill = [
  35. 'createTime' => time()
  36. ];
  37. $this->_update_autofill = [
  38. 'updateTime' => time()
  39. ];
  40. parent::__construct($serviceDB);
  41. }
  42. }