DNationalUnifiedPrice.Class.php 1019 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace JinDouYun\Dao\Price;
  3. use JinDouYun\Dao\BaseDao;
  4. class DNationalUnifiedPrice extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'price')
  7. {
  8. $this->_table = 'nationalUnifiedPrice';
  9. $this->_primary = 'id';
  10. $this->_fields = [
  11. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  12. "no", //char(20) NOT NULL COMMENT '调价单编号',
  13. "goodsId", //int(10) NOT NULL COMMENT '商品id',
  14. "shopId", //int(10) NOT NULL COMMENT '店铺id',
  15. "salePriceType", //tinyint(3) NOT NULL COMMENT '价格类型',
  16. "salePrice", //json NOT NULL COMMENT '价格数据',
  17. "updateTime", //int(10) NOT NULL COMMENT '生效时间',
  18. "saleLimitNum", //int(10) DEFAULT NULL COMMENT '销售限购数量',
  19. ];
  20. $this->_readonly = ['id'];
  21. $this->_create_autofill = [
  22. ];
  23. $this->_update_autofill = [
  24. ];
  25. parent::__construct($serviceDB);
  26. }
  27. }