DCustomerBalanceDetail.Class.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 DCustomerBalanceDetail extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'finance')
  13. {
  14. $this->_table = 'qianniao_customer_balance_detail_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id', //int(11) NOT NULL AUTO_INCREMENT COMMENT '客户余额明细表',
  18. 'customerId', //int(11) DEFAULT NULL COMMENT '客户id',
  19. 'receiptTime', //int(11) DEFAULT NULL COMMENT '单据日期',
  20. 'sourceId', //int(10) DEFAULT '0' COMMENT '来源id',
  21. 'sourceNo', //char(25) DEFAULT NULL COMMENT '来源编号',
  22. 'financeType', //varchar(255) DEFAULT NULL COMMENT '财务类型名称',
  23. 'financeTypeId', //int(11) DEFAULT NULL COMMENT '财务类型id',
  24. 'originNo', //char(15) DEFAULT NULL COMMENT '原始单据编号',
  25. 'originId', //int(10) DEFAULT '0' COMMENT '原始单据id',
  26. 'salesAmount', //decimal(15,4) DEFAULT NULL COMMENT '销售金额',
  27. 'discountMoney', //decimal(15,4) DEFAULT NULL COMMENT '优惠金额',
  28. 'customerAmount', //decimal(15,4) DEFAULT NULL COMMENT '客户承担金额',
  29. 'receivableAmount', //decimal(15,4) DEFAULT NULL COMMENT '应收金额',
  30. 'actualReceivableAmount', //decimal(15,4) DEFAULT NULL COMMENT '实际收款金额',
  31. 'refundMoney', //decimal(15,4) DEFAULT '0.0000' COMMENT '实际退款金额',
  32. 'receivableBalance', //decimal(15,4) DEFAULT NULL COMMENT '应收款余额',
  33. 'remark', //text COMMENT '备注',
  34. 'createTime', //int(11) DEFAULT NULL COMMENT '创建日期',
  35. 'updateTime', //int(11) DEFAULT NULL COMMENT '修改日期',
  36. 'extends', //json DEFAULT NULL COMMENT '扩展字段',
  37. ];
  38. $this->_readonly = ['id'];
  39. $this->_create_autofill = [
  40. 'createTime' => time()
  41. ];
  42. $this->_update_autofill = [
  43. 'updateTime' => time()
  44. ];
  45. parent::__construct($serviceDB);
  46. }
  47. }