DStaffComment.Class.php 981 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * 职工管理Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/10/31
  7. * Time: 18:00
  8. */
  9. namespace JinDouYun\Dao\Department;
  10. use JinDouYun\Dao\BaseDao;
  11. class DStaffComment extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'staff_comment';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',// int unsigned NOT NULL AUTO_INCREMENT,
  19. 'en_id',// int NOT NULL,
  20. 'uid',// int NOT NULL COMMENT '员工id',
  21. 'customer_id',// int NOT NULL COMMENT '用户id',
  22. 'order_id',// int NOT NULL,
  23. 'comment',// text COLLATE utf8mb4_general_ci NOT NULL COMMENT '评论',
  24. 'score',// int NOT NULL COMMENT '评分',
  25. 'createTime',// int NOT NULL,
  26. ];
  27. $this->_readonly = ['id'];
  28. $this->_create_autofill = [
  29. 'createTime' => time()
  30. ];
  31. parent::__construct($serviceDB);
  32. }
  33. }