DMerchantApply.Class.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /**
  3. * 商户申请Dao
  4. * Created by PhpStorm.
  5. * User: haoren
  6. * Date: 2020/09/25
  7. * Time: 09:40
  8. */
  9. namespace JinDouYun\Dao\Merchant;
  10. use JinDouYun\Dao\BaseDao;
  11. class DMerchantApply extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'merchant_apply';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '商户入驻申请表',
  19. "enterpriseId", //int(10) NOT NULL COMMENT '企业id',
  20. "userCenterId", // int(10) DEFAULT NULL COMMENT '用户id',
  21. "groupId", //int(10) NOT NULL COMMENT '分组id',
  22. "name", //varchar(255) DEFAULT NULL COMMENT '商户名称',
  23. "desc", //varchar(255) DEFAULT NULL COMMENT '商户简介',
  24. 'license',
  25. "category", //varchar(255) DEFAULT NULL COMMENT '类目',
  26. "provinceCode", //varchar(50) DEFAULT NULL COMMENT '省编码',
  27. "cityCode", //varchar(50) DEFAULT NULL COMMENT '市编码',
  28. "districtCode", //varchar(50) DEFAULT NULL COMMENT '区编码',
  29. "address", //varchar(255) DEFAULT NULL COMMENT '详细地址',
  30. "latitude", // varchar(255) DEFAULT NULL COMMENT '经度',
  31. "longitude", // varchar(255) DEFAULT NULL COMMENT '纬度',
  32. "contactName", //varchar(255) DEFAULT NULL COMMENT '联系人姓名',
  33. "contactMobile", //varchar(20) DEFAULT NULL COMMENT '联系人手机号',
  34. "info", //json DEFAULT NULL COMMENT '其他信息',
  35. "settleType", //tinyint(1) DEFAULT NULL COMMENT '结算设置',
  36. "settle", //json DEFAULT NULL COMMENT '结算设置内容',
  37. "auditType", //varchar(255) DEFAULT NULL COMMENT '审核设置',
  38. "audit", //json DEFAULT NULL COMMENT '审核设置内容',
  39. "settingType", //tinyint(1) DEFAULT NULL COMMENT '商户设置',
  40. "setting", //json DEFAULT NULL COMMENT '商户设置内容',
  41. "enabledStatus", //tinyint(1) DEFAULT NULL COMMENT '启用状态 4:禁用 5:启用',
  42. "auditStatus", //tinyint(1) DEFAULT NULL COMMENT '审核状态',
  43. 'auditFailReason',
  44. "deleteStatus", //tinyint(1) DEFAULT NULL COMMENT '删除状态 4:删除 5:正常',
  45. "expireTime", // int(10) DEFAULT NULL COMMENT '到期时间',
  46. "auditTime", //int(10) DEFAULT NULL COMMENT '审核时间',
  47. "deleteTime", //int(10) DEFAULT NULL COMMENT '删除时间',
  48. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  49. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  50. "extend",
  51. "balance",//decimal(8,2) DEFAULT '0.00' COMMENT '余额',
  52. "waitAuditWithdraw",// decimal(8,2) DEFAULT '0.00' COMMENT '提现待审核金额',
  53. "auditWithdraw",// decimal(8,2) DEFAULT '0.00' COMMENT '提现待入账金额',
  54. "withdraw" .// decimal(8,2) DEFAULT '0.00' COMMENT '已提现金额',
  55. "totalMoney",// decimal(8,2) DEFAULT '0.00' COMMENT '总金额',
  56. "orderNum",//int(10) DEFAULT NULL COMMENT '可提现订单总数',
  57. "auditOrderNum",//int(10) DEFAULT NULL COMMENT '等待审核订单数',
  58. "finishOrderNum",//int(10) DEFAULT NULL COMMENT '已结算订单数量',
  59. "notOrderNum",//int(10) DEFAULT NULL COMMENT '审核未通过订单数',
  60. "passOrderNum",//int(10) DEFAULT NULL COMMENT '审核通过订单数',
  61. ];
  62. $this->_readonly = ['id'];
  63. $this->_create_autofill = [
  64. 'createTime' => time()
  65. ];
  66. $this->_update_autofill = [
  67. 'updateTime' => time()
  68. ];
  69. parent::__construct($serviceDB);
  70. }
  71. }