DReceiptTemplate.Class.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace JinDouYun\Dao\System;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Description: 打印模版
  6. * Class DReceiptTemplate
  7. * @package JinDouYun\Dao\System
  8. */
  9. class DReceiptTemplate extends BaseDao
  10. {
  11. public function __construct($serviceDB = 'default')
  12. {
  13. $this->_table = 'receipt_template';
  14. $this->_primary = 'id';
  15. $this->_fields = [
  16. "id",//int(10) NOT NULL AUTO_INCREMENT COMMENT '分销商表',
  17. "enterpriseId",// int(11) NOT NULL COMMENT '企业id',
  18. "title",//varchar(255) DEFAULT NULL COMMENT '单据名称',
  19. "fieldsData",//json DEFAULT NULL COMMENT '单据数据',
  20. "remark",//varchar(255) DEFAULT NULL COMMENT '备注',
  21. "operatorName",//varchar(255) DEFAULT NULL COMMENT '操作人',
  22. "operatorId",//int(10) DEFAULT '0' COMMENT '操作人Id',
  23. "receiptType",//int(10) DEFAULT '0' COMMENT '单据类型',
  24. "createTime",//int(10) DEFAULT NULL COMMENT '创建时间',
  25. "updateTime",//int(10) DEFAULT NULL COMMENT '修改时间',
  26. "extend",//json DEFAULT NULL COMMENT '扩展字段',
  27. "describe",//
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. 'createTime' => time()
  32. ];
  33. $this->_update_autofill = [
  34. 'updateTime' => time()
  35. ];
  36. parent::__construct($serviceDB);
  37. }
  38. }