DStaffRewardDesc.Class.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * 员工提成流水Dao
  4. * Created by PhpStorm.
  5. * User: haoren
  6. * Date: 2021/03/25
  7. * Time: 15:00
  8. */
  9. namespace JinDouYun\Dao\Department;
  10. use JinDouYun\Dao\BaseDao;
  11. class DStaffRewardDesc extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'staff_reward_desc';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '流水表',
  19. "userCenterId", //int(10) DEFAULT NULL COMMENT '用户id',
  20. "customerId", //int(10) DEFAULT NULL COMMENT '客户id',
  21. "staffId", //int(10) DEFAULT NULL COMMENT '员工id',
  22. "shopId", //int(10) DEFAULT '0' COMMENT '商铺id',
  23. "ruleId", //int(10) DEFAULT NULL COMMENT '规则id',
  24. "originId", //int(10) DEFAULT '0' COMMENT '来源id',
  25. "originNo", //varchar(255) DEFAULT NULL COMMENT '来源单号',
  26. "title", //varchar(255) DEFAULT NULL COMMENT '说明',
  27. "amount", //decimal(8,2) DEFAULT NULL COMMENT '金额',
  28. "changeAmount", //decimal(8,2) DEFAULT NULL COMMENT '变动后金额',
  29. "type", //tinyint(1) DEFAULT NULL COMMENT '状态 4:减 5:加',
  30. "source", //tinyint(1) DEFAULT NULL COMMENT '来源 1:订单金额满足 2:购买指定商品 3:后台手动修改',
  31. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  32. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  33. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  34. ];
  35. $this->_readonly = ['id'];
  36. $this->_create_autofill = [
  37. 'createTime' => time()
  38. ];
  39. $this->_update_autofill = [
  40. 'updateTime' => time()
  41. ];
  42. parent::__construct($serviceDB);
  43. }
  44. }