DStaffReflect.Class.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * 员工提现管理
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/10/31
  7. * Time: 18:00
  8. */
  9. namespace JinDouYun\Dao\Department;
  10. use JinDouYun\Dao\BaseDao;
  11. class DStaffReflect extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'staff_reflect';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',// int(10) unsigned zerofill NOT NULL AUTO_INCREMENT COMMENT 'id',
  19. 'en_id',// int NOT NULL,
  20. 'staffId',// int NOT NULL COMMENT '客户id',
  21. 'userCenterId',// int NOT NULL COMMENT '账户id',
  22. 'reflectType',// char(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '提现类型',
  23. 'money',// decimal(15,2) DEFAULT NULL COMMENT '提现金额',
  24. 'reflectInfo',// json DEFAULT NULL COMMENT '提现信息',
  25. 'reflectStatus',// int DEFAULT '4' COMMENT '提现状态 5已打款/4未打款',
  26. 'auditStatus',// int DEFAULT '4' COMMENT '审核状态 5已审核/4未审核',
  27. 'createTime',// int NOT NULL COMMENT '创建时间',
  28. 'updateTime',// int DEFAULT NULL COMMENT '更新时间',
  29. 'extend',// json DEFAULT NULL COMMENT '扩展字段',
  30. 'remark',// text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '备注',
  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. }