DSupplier.Class.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * 供应商Dao
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2019/10/31
  7. * Time: 15:49
  8. */
  9. namespace JinDouYun\Dao\Purchase;
  10. use JinDouYun\Dao\BaseDao;
  11. class DSupplier extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'stock')
  14. {
  15. $this->_table = 'supplier';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT,
  19. 'userCenterId',
  20. 'token',
  21. "code", //varchar(255) NOT NULL DEFAULT '' COMMENT '供应商编码',
  22. "title", //varchar(255) NOT NULL DEFAULT '' COMMENT '供应商名称',
  23. "provinceCode", //int(10) NOT NULL DEFAULT '0' COMMENT '省份编码',
  24. "cityCode", //int(10) NOT NULL DEFAULT '0' COMMENT '城市编码',
  25. "districtCode", //int(10) NOT NULL DEFAULT '0' COMMENT '区编码',
  26. "address", //varchar(255) NOT NULL DEFAULT '' COMMENT '详细地址',
  27. "accountName", //varchar(50) NOT NULL DEFAULT '' COMMENT '户名',
  28. "bankName", //varchar(50) NOT NULL DEFAULT '' COMMENT '银行',
  29. "bankCard", //varchar(255) NOT NULL DEFAULT '' COMMENT '银行卡号',
  30. "realName", //varchar(50) NOT NULL DEFAULT '' COMMENT '联系人姓名',
  31. "sex", //tinyint(3) DEFAULT NULL COMMENT '性别 4女 5男',
  32. "position", //varchar(50) NOT NULL DEFAULT '' COMMENT '职务',
  33. "mobile", //char(11) NOT NULL DEFAULT '' COMMENT '手机号',
  34. "phone", //varchar(50) NOT NULL DEFAULT '' COMMENT '电话',
  35. "email", //varchar(50) NOT NULL DEFAULT '' COMMENT '邮箱',
  36. "remark", //varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  37. "extends", //json DEFAULT NULL COMMENT '拓展字段',
  38. "enableStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '状态 默认5 正常 4关闭',
  39. "deleteStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '是否删除 默认5 正常 4删除',
  40. "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  41. "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  42. "money",//
  43. "waitAuditWithdraw",// decimal(8,2) DEFAULT '0.00' COMMENT '提现待审核金额',
  44. "auditWithdraw",// decimal(8,2) DEFAULT '0.00' COMMENT '提现待入账金额',
  45. "withdraw",// decimal(8,2) DEFAULT '0.00' COMMENT '已提现金额',
  46. ];
  47. $this->_readonly = ['id'];
  48. $this->_create_autofill = [
  49. 'createTime' => time()
  50. ];
  51. $this->_update_autofill = [
  52. 'updateTime' => time()
  53. ];
  54. parent::__construct($serviceDB);
  55. }
  56. }