DOrderReturn.Class.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * 订单退货Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/12/03
  7. * Time: 15:40
  8. */
  9. namespace JinDouYun\Dao\Order;
  10. use JinDouYun\Dao\BaseDao;
  11. class DOrderReturn extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'order_return';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  19. "no", //char(22) DEFAULT NULL COMMENT '销售退货单号',
  20. "originNo", //char(22) DEFAULT NULL COMMENT '来源订单单号',
  21. "originId", //int(10) DEFAULT NULL COMMENT '来源订单id',
  22. "num", //int(10) DEFAULT NULL COMMENT '退货商品数量',
  23. "shopId", //int(10) DEFAULT NULL COMMENT '商铺id',
  24. "shopName", //varchar(50) DEFAULT NULL COMMENT '商铺名称',
  25. "operatorId", //int(10) DEFAULT NULL COMMENT '制单人id',
  26. "operatorName", //varchar(30) DEFAULT NULL COMMENT '制单人姓名',
  27. "customerId", //int(10) DEFAULT NULL COMMENT '客户id',
  28. "customerName", //varchar(50) DEFAULT NULL COMMENT '客户名称',
  29. "auditId", //int(10) DEFAULT NULL COMMENT '审核人id',
  30. "auditName", //varchar(30) DEFAULT NULL COMMENT '审核人姓名',
  31. "remark", //varchar(255) DEFAULT NULL COMMENT '备注',
  32. "auditTime", //int(10) DEFAULT NULL COMMENT '审核时间',
  33. "auditStatus", //tinyint(3) DEFAULT '1' COMMENT '审核状态 1:待审核 2:已审核 3:审核失败 4:审核中',
  34. "orderStatus", //tinyint(3) DEFAULT NULL COMMENT '单据状态 1:待审核 2:待入库',
  35. "inStatus", //tinyint(3) DEFAULT NULL COMMENT '入库状态 4:未入库 5:已入库',
  36. "deleteStatus", //tinyint(3) DEFAULT '5' COMMENT '删除状态 4:已删除 5:正常',
  37. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  38. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  39. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  40. 'auditFailReason'
  41. ];
  42. $this->_readonly = ['id'];
  43. $this->_create_autofill = [
  44. 'createTime' => time()
  45. ];
  46. $this->_update_autofill = [
  47. 'updateTime' => time()
  48. ];
  49. parent::__construct($serviceDB);
  50. }
  51. }