DMerchantSettlement.Class.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Gss
  5. * Date: 2021/4/6 0006
  6. * Time: 14:11
  7. */
  8. namespace JinDouYun\Dao\Merchant;
  9. use JinDouYun\Dao\BaseDao;
  10. class DMerchantSettlement extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'finance')
  13. {
  14. $this->_table = 'qianniao_merchant_settlement_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '收支表id',
  18. 'orderNo',//char(50) NOT NULL COMMENT '订单编号',
  19. 'orderId',//int(10) NOT NULL COMMENT '订单id',
  20. 'goodId',//char(50) NOT NULL COMMENT '商品id',
  21. 'goodName',//char(50) NOT NULL COMMENT '商品名称',
  22. 'goodPrice',//decimal(12,2) DEFAULT '0.00' COMMENT '商品单价',
  23. 'goodMoney',//decimal(12,2) DEFAULT '0.00' COMMENT '商品金额',
  24. 'MerchantId',//int(10) DEFAULT NULL COMMENT '商户id',
  25. 'MerchantName',//varchar(255) DEFAULT NULL COMMENT '商户名称',
  26. 'settlementStatus',//tinyint(1) NOT NULL DEFAULT '4' COMMENT '结算状态',
  27. 'createTime',//int(10) NOT NULL COMMENT '创建时间',
  28. 'outStockTime',//int(10) DEFAULT NULL COMMENT '出库时间',
  29. 'finishTime',//int(10) DEFAULT NULL COMMENT '完结时间',
  30. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  31. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  32. ];
  33. $this->_readonly = ['id'];
  34. $this->_create_autofill = [
  35. 'createTime' => time()
  36. ];
  37. $this->_update_autofill = [
  38. 'updateTime' => time()
  39. ];
  40. parent::__construct($serviceDB);
  41. }
  42. }