DPriceAdjustment.Class.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace JinDouYun\Dao\Price;
  3. use JinDouYun\Dao\BaseDao;
  4. class DPriceAdjustment extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'price')
  7. {
  8. $this->_table = 'priceAdjustmentSheet';
  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. "goodsCode", //varchar(50) NOT NULL COMMENT '商品code',
  14. "goodsName", //varchar(100) NOT NULL COMMENT '商品名称',
  15. "goodsId", //int(10) NOT NULL COMMENT '商品id',
  16. "saleType", //tinyint(3) NOT NULL DEFAULT '1' COMMENT '销售类型 1实物销售 2虚库销售',
  17. "salePriceAreaType", //tinyint(3) NOT NULL COMMENT '销售价格生效区域类型 1全国统一价 2大区价',
  18. "salePriceType", //tinyint(3) NOT NULL DEFAULT '1' COMMENT '销售价格类型 1销售价格 2秒杀活动价',
  19. "shopId", //int(10) NOT NULL COMMENT '店铺id',
  20. "shopName",//varchar(50) DEFAULT NULL COMMENT '店铺名称',
  21. "cargoOwnerCode", //varchar(50) DEFAULT NULL COMMENT '货主编码',
  22. "createTime", //int(10) NOT NULL COMMENT '创建时间',
  23. "updateTime", //int(10) NOT NULL COMMENT '修改时间',
  24. "deleteStatus", //tinyint(3) NOT NULL DEFAULT '1' COMMENT '删除状态 4删除 5正常',
  25. "effectiveStatus", //tinyint(3) NOT NULL DEFAULT '1' COMMENT '生效状态 1.待审 2审核通过 3未通过 4审核中',
  26. "salePrice", //json NOT NULL COMMENT '销售价格',
  27. "createUserId", //int(10) NOT NULL COMMENT '创建人',
  28. "createUserName", //varchar(50) NOT NULL COMMENT '创建人姓名',
  29. "effectiveUserName",//
  30. "effectiveUserId",//
  31. ];
  32. $this->_readonly = ['id'];
  33. $this->_create_autofill = [
  34. ];
  35. $this->_update_autofill = [
  36. ];
  37. parent::__construct($serviceDB);
  38. }
  39. }