DExpenseSingle.Class.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Gss
  5. * Date: 2021/3/8 0008
  6. * Time: 15:24
  7. */
  8. namespace JinDouYun\Dao\Finance;
  9. use JinDouYun\Dao\BaseDao;
  10. class DExpenseSingle extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_expense_single_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  18. 'no',//varchar(255) NOT NULL COMMENT '单据编号',
  19. 'currentUnitId',// int(10) unsigned NOT NULL,
  20. 'currentUnit',//varchar(255) NOT NULL COMMENT '往来单位',
  21. 'type',// tinyint(1) DEFAULT NULL COMMENT '3 员工 / 4 客户 / 5 供应商',
  22. 'billTime',//int(10) DEFAULT NULL COMMENT '单据实际',
  23. 'manager',//varchar(50) NOT NULL COMMENT '经手人',
  24. 'shopId',// int(10) NOT NULL DEFAULT '0' COMMENT '店铺id',
  25. 'shopName',// varchar(255) DEFAULT NULL COMMENT '店铺名称',
  26. 'consumeTypeId',//int(10) DEFAULT NULL COMMENT '消费类型id',
  27. 'consumeTypeName',//varchar(255) DEFAULT NULL COMMENT '消费类型名称',
  28. 'totalCollectionAmount',//decimal(15,4) DEFAULT NULL COMMENT '总收金额',
  29. 'totalPreferentialAmount',//decimal(15,4) DEFAULT NULL COMMENT '总优惠金额',
  30. 'totalActualAmount',//decimal(15,4) DEFAULT NULL COMMENT '总实际金额',
  31. 'payType',// int(10) unsigned NOT NULL COMMENT '支出类型',
  32. 'auditStatus',//int(10) NOT NULL DEFAULT '1' COMMENT '审核状态',
  33. 'deleteStatus',//int(10) NOT NULL DEFAULT '5' COMMENT '删除状态',
  34. 'createTime',//int(10) NOT NULL COMMENT '创建时间',
  35. 'updateTime',//int(10) NOT NULL COMMENT '更新时间',
  36. 'extend',//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. }