DRefundIndex.Class.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Gss
  5. * Date: 2021/4/8 0008
  6. * Time: 19:25
  7. */
  8. namespace JinDouYun\Dao\Finance;
  9. use JinDouYun\Dao\BaseDao;
  10. class DRefundIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'finance')
  13. {
  14. $this->_table = 'qianniao_refund_index_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  18. 'refundId',//int(10) NOT NULL COMMENT '退款单id',
  19. 'no',//char(25) NOT NULL COMMENT '退款单据编号',
  20. 'sourceNo',//char(25) NOT NULL COMMENT '源单据编号',
  21. 'refundTime',//int(10) DEFAULT NULL COMMENT '退款时间',
  22. 'unitId',// int(10) DEFAULT NULL COMMENT '退款单位id',
  23. 'type',// tinyint(1) NOT NULL COMMENT '退款单位类型 1客户/2供应商',
  24. 'payType',// char(10) DEFAULT NULL COMMENT '支付方式',
  25. 'currentAccountName',//varchar(255) NOT NULL COMMENT '往来单位名称',
  26. 'financeType',//varchar(50) DEFAULT NULL COMMENT '财务类型',
  27. 'financeTypeId',//int(10) DEFAULT NULL COMMENT '财务类型id',
  28. 'refundType',//int(1) NOT NULL DEFAULT '4' COMMENT '退款类型',
  29. 'auditStatus',//tinyint(1) NOT NULL DEFAULT '1' COMMENT '审核类型',
  30. 'originId',// int(10) DEFAULT NULL COMMENT '源订单id',
  31. 'originNo',// varchar(50) DEFAULT NULL COMMENT '原订单no',
  32. 'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
  33. 'updateTime',//int(10) DEFAULT NULL COMMENT '更新时间',
  34. ];
  35. $this->_readonly = ['id'];
  36. $this->_create_autofill = [
  37. 'createTime' => time()
  38. ];
  39. $this->_update_autofill = [
  40. 'updateTime' => time()
  41. ];
  42. parent::__construct($serviceDB);
  43. }
  44. }