DCustomerTypePriceEffective.Class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * 最后生效客户类型价格
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2020/4/8
  7. * Time: 18:57
  8. */
  9. namespace JinDouYun\Dao\Price;
  10. use JinDouYun\Dao\BaseDao;
  11. class DCustomerTypePriceEffective extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'price')
  14. {
  15. $this->_table = 'customerTypePriceEffective';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. "shopId", //int(11) NOT NULL COMMENT '店铺id',
  20. "customerType", //int(10) NOT NULL COMMENT '客户类型',
  21. "salePrice", //json NOT NULL COMMENT '调整价格',
  22. "startTime", //int(10) DEFAULT NULL COMMENT '开始时间',
  23. "endTime", //int(10) DEFAULT NULL COMMENT '结束时间',
  24. "no", //char(20) NOT NULL COMMENT '客户调价单单号',
  25. "goodsId", //int(10) NOT NULL COMMENT '商品id',
  26. ];
  27. $this->_readonly = ['id'];
  28. $this->_create_autofill = [
  29. ];
  30. $this->_update_autofill = [
  31. ];
  32. parent::__construct($serviceDB);
  33. }
  34. }