DReceivedAccount.Class.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 DReceivedAccount extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_received_account_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '收款单账户id',
  18. 'receivedId',//varchar(255) DEFAULT NULL COMMENT '收款单id',
  19. 'accountId',//int(11) DEFAULT NULL COMMENT '账户id',
  20. 'accountNumber',//varchar(255) DEFAULT NULL COMMENT '账号',
  21. 'accountName', // varchar(255) DEFAULT '' COMMENT '账号名称',
  22. 'money',//float(10,2) DEFAULT NULL COMMENT '收款金额',
  23. 'discountMoney',//float(10,2) DEFAULT NULL COMMENT '优惠金额',
  24. 'finalMoney',//float(10,2) DEFAULT NULL COMMENT '实际收款金额',
  25. 'payWay',//varchar(50) DEFAULT NULL COMMENT '结算方式',
  26. 'remark',//text COMMENT '备注',
  27. 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
  28. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
  29. 'extends',//json DEFAULT NULL COMMENT '扩展字段',
  30. 'operatorId',//int(11) DEFAULT NULL COMMENT '操作人员Id',
  31. 'deleteStatus'
  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. }