DAccount.Class.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 DAccount extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = "account";
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '账户id',
  18. 'enterpriseId',//int(11) DEFAULT NULL COMMENT '企业id',
  19. 'name',//varchar(255) NOT NULL COMMENT '账户名称',
  20. 'accountCode',//varchar(255) DEFAULT NULL COMMENT '账户编号',
  21. 'accountNumber',//varchar(255) NOT NULL COMMENT '账户号',
  22. 'beginMoney',//float(10,2) NOT NULL DEFAULT '0.00' COMMENT '期初余额',
  23. 'shopId',//int(11) NOT NULL COMMENT '商铺id',
  24. 'shopName',// varchar(50) DEFAULT NULL COMMENT '商铺名称',
  25. 'enableStatus',//tinyint(1) NOT NULL DEFAULT '4' COMMENT '启用状态(5启用 4禁用)',
  26. 'money',//float(10,2) NOT NULL DEFAULT '0.00' COMMENT '当前余额',
  27. 'createTime',//int(11) DEFAULT NULL COMMENT '创建日期',
  28. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改日期',
  29. 'remark',//text COMMENT '备注',
  30. 'extends',//json DEFAULT NULL COMMENT '扩展字段',
  31. 'deleteStatus',// tinyint(1) DEFAULT '5' COMMENT '删除(5未删除 4已删除)',
  32. 'isDefault',
  33. 'type',
  34. 'bankName',
  35. 'bankAccount'
  36. ];
  37. $this->_readonly = ['id'];
  38. $this->_create_autofill = [
  39. 'createTime' => time()
  40. ];
  41. $this->_update_autofill = [
  42. 'updateTime' => time()
  43. ];
  44. parent::__construct($serviceDB);
  45. }
  46. }