DCustomerTypePriceAdjustment.Class.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * 客户类型调价单
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2020/4/8
  7. * Time: 17:35
  8. */
  9. namespace JinDouYun\Dao\Price;
  10. use JinDouYun\Dao\BaseDao;
  11. class DCustomerTypePriceAdjustment extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'price')
  14. {
  15. $this->_table = 'customerTypePriceAdjustmentSheet';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. "no", //char(20) NOT NULL COMMENT '调价单号',
  20. "goodsCode", //varchar(50) NOT NULL COMMENT '商品code',
  21. "goodsName", //varchar(100) NOT NULL COMMENT '商品名称',
  22. "goodsId", //varchar(50) NOT NULL COMMENT '商品id',
  23. "shopId", //int(10) NOT NULL COMMENT '店铺id',
  24. "createTime", //int(10) NOT NULL COMMENT '创建时间',
  25. "updateTime", //int(10) NOT NULL COMMENT '修改时间',
  26. "deleteStatus", //tinyint(3) NOT NULL DEFAULT '1' COMMENT '删除状态 4删除 5正常',
  27. "effectiveStatus", //tinyint(3) NOT NULL DEFAULT '1' COMMENT '生效状态 1.待审 2审核通过 3未通过 4审核中',
  28. "salePrice", //json NOT NULL COMMENT '销售价格',
  29. "createUserId", //int(10) NOT NULL COMMENT '创建人',
  30. "createUserName", //varchar(50) NOT NULL COMMENT '创建人姓名',
  31. "startTime", //int(10) NOT NULL COMMENT '开始时间',
  32. "endTime", //int(10) NOT NULL COMMENT '结束时间',
  33. "customerName", //varchar(50) NOT NULL COMMENT '客户类型名称',
  34. "customerType", //int(10) NOT NULL COMMENT '客户类型',
  35. "customerCode", //varchar(50) NOT NULL COMMENT '客户编码',
  36. "shopName", //varchar(50) DEFAULT NULL COMMENT '店铺名称',
  37. "effectiveUserName",//
  38. "effectiveUserId",//
  39. ];
  40. $this->_readonly = ['id'];
  41. $this->_create_autofill = [
  42. ];
  43. $this->_update_autofill = [
  44. ];
  45. parent::__construct($serviceDB);
  46. }
  47. }