DCommissionBusinessman.Class.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * 分销商Dao
  4. * Created by PhpStorm.
  5. * User: haoren
  6. * Date: 2020/07/22
  7. * Time: 15:00
  8. */
  9. namespace JinDouYun\Dao\Commission;
  10. use JinDouYun\Dao\BaseDao;
  11. class DCommissionBusinessman extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'commission_businessman';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '分销商表',
  19. "userCenterId", //int(10) DEFAULT NULL COMMENT '用户id',
  20. "customerId", //int(10) DEFAULT NULL COMMENT '客户id',
  21. "gradeId", //int(10) DEFAULT NULL COMMENT '等级id',
  22. "grade", //int(10) DEFAULT NULL COMMENT '等级',
  23. "info", //json DEFAULT NULL COMMENT '信息',
  24. "balance", //decimal(8,2) DEFAULT '0.00' COMMENT '余额',
  25. "waitMoney", //decimal(8,2) DEFAULT '0.00' COMMENT '待入账金额',
  26. "waitAuditWithdraw", //decimal(8,2) DEFAULT '0.00' COMMENT '提现待审核金额',
  27. "auditWithdraw", //decimal(8,2) DEFAULT '0.00' COMMENT '提现待入账金额',
  28. "withdraw", //decimal(8,2) DEFAULT '0.00' COMMENT '已提现金额',
  29. "totalMoney", //decimal(8,2) DEFAULT '0.00' COMMENT '总金额',
  30. "statistics", //json DEFAULT NULL COMMENT '升级条件值统计',
  31. "applicationCondition", //tinyint(1) DEFAULT '0' COMMENT '申请条件 0:无条件 1:资料申请 2:订单申请 3:金额申请 4:商品申请',
  32. "applicationComplete", //tinyint(1) DEFAULT '4' COMMENT '满足申请条件 4:不满足 5:满足',
  33. "deleteStatus", //tinyint(1) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
  34. "auditStatus", //tinyint(1) DEFAULT '1' COMMENT '审核状态 1:未审核 2:已审核',
  35. "auditTime", //int(10) DEFAULT NULL COMMENT '审核时间',
  36. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  37. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  38. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  39. ];
  40. $this->_readonly = ['id'];
  41. $this->_create_autofill = [
  42. 'createTime' => time()
  43. ];
  44. $this->_update_autofill = [
  45. 'updateTime' => time()
  46. ];
  47. parent::__construct($serviceDB);
  48. }
  49. }