DSupplierBalanceDetail.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 DSupplierBalanceDetail extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_supplier_balance_detail_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '供应商余额明细表',
  18. 'supplierId',//int(11) DEFAULT NULL COMMENT '供应商id',
  19. 'receiptTime',//int(11) DEFAULT NULL COMMENT '单据日期',
  20. 'no',//char(25) DEFAULT NULL COMMENT '单据编号',
  21. 'openingBalance',//decimal(15,4) DEFAULT NULL COMMENT '期初余额',
  22. 'financeType',//varchar(255) DEFAULT NULL COMMENT '财务类型名称',
  23. 'financeTypeId',//int(11) DEFAULT NULL COMMENT '财务类型id',
  24. 'sourceId',// int(11) DEFAULT NULL COMMENT '源订单id',
  25. 'sourceNo',//varchar(255) DEFAULT NULL COMMENT '源订单销货号',
  26. 'salesAmount',//decimal(15,4) DEFAULT NULL COMMENT '销售金额',
  27. 'discountMoney',//decimal(15,4) DEFAULT NULL COMMENT '优惠金额',
  28. 'supplierAmount',//decimal(15,4) DEFAULT NULL COMMENT '供应商承担金额',
  29. 'shouldPayAmount',//decimal(15,4) DEFAULT NULL COMMENT '应付金额',
  30. 'actualPaidAmount',//decimal(15,4) DEFAULT NULL COMMENT '实际付款金额',
  31. 'refundMoney',// decimal(15,4) DEFAULT '0.0000' COMMENT '退款金额',
  32. 'shouldPayBalance',//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. }