DPrintNum.Class.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * 单据打印统计
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2020/4/17
  7. * Time: 16:52
  8. */
  9. namespace JinDouYun\Dao\System;
  10. use JinDouYun\Dao\BaseDao;
  11. class DPrintNum extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'print_num';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id",//int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  19. "objectNo",//char(25) NOT NULL COMMENT '对象单据号',
  20. "objectType",//int(3) NOT NULL COMMENT '对象类型',
  21. "printNum",//int(4) NOT NULL COMMENT '打印次数',
  22. "enterpriseId",//int(10) NOT NULL COMMENT '企业Id',
  23. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  24. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  25. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  26. ];
  27. $this->_readonly = ['id'];
  28. $this->_create_autofill = [
  29. 'createTime' => time()
  30. ];
  31. $this->_update_autofill = [
  32. 'updateTime' => time()
  33. ];
  34. parent::__construct($serviceDB);
  35. }
  36. }