DAccountTransfer.Class.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wxj
  5. * Date: 2019/10/30
  6. * Time: 14:17
  7. */
  8. namespace JinDouYun\Dao\Finance;
  9. use JinDouYun\Dao\BaseDao;
  10. class DAccountTransfer extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_account_transfer_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '资金转账单Id',
  18. 'no',//char(25) DEFAULT NULL COMMENT '单据编号',
  19. 'totalMoney',//decimal(15,4) DEFAULT NULL COMMENT '合计金额',
  20. 'operatorId',//int(11) DEFAULT NULL COMMENT '操作人员Id',
  21. 'operatorName',//varchar(50) DEFAULT NULL COMMENT '操作人员',
  22. 'shopId',//int(11) DEFAULT NULL COMMENT '商铺Id',
  23. 'records',//json DEFAULT NULL COMMENT '账户记录',
  24. 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
  25. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
  26. 'extends',//json DEFAULT NULL COMMENT '扩展字段',
  27. 'auditStatus',//tinyint(1) DEFAULT NULL COMMENT '审核状态',
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. 'createTime' => time()
  32. ];
  33. $this->_update_autofill = [
  34. 'updateTime' => time()
  35. ];
  36. parent::__construct($serviceDB);
  37. }
  38. }