DCustomerRechargeRecord.Class.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * 客户余额充值记录Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2020/09/12
  7. * Time: 11:30
  8. */
  9. namespace JinDouYun\Dao\Customer;
  10. use JinDouYun\Dao\BaseDao;
  11. class DCustomerRechargeRecord extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'customer_recharge_record';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '充值记录',
  19. "no", //char(25) DEFAULT NULL COMMENT '单号',
  20. "customerId", //int(10) DEFAULT NULL COMMENT '客户id',
  21. "userCenterId", //int(10) DEFAULT NULL COMMENT 'userCenterId',
  22. "shopId", //int(10) DEFAULT NULL COMMENT '商铺id',
  23. "money", //decimal(8,2) DEFAULT NULL COMMENT '充值金额',
  24. "balance", //decimal(8,2) DEFAULT NULL COMMENT '充值后余额',
  25. "desc", //varchar(255) DEFAULT NULL COMMENT '文字描述',
  26. "payStatus", //tinyint(1) DEFAULT '4' COMMENT '支付状态 4:未完成 5:已完成',
  27. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  28. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  29. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  30. ];
  31. $this->_readonly = ['id'];
  32. $this->_create_autofill = [
  33. 'createTime' => time()
  34. ];
  35. $this->_update_autofill = [
  36. 'updateTime' => time()
  37. ];
  38. parent::__construct($serviceDB);
  39. }
  40. }