DOrderReturnDetails.Class.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 DOrderReturnDetails extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'order_return_details';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. "linkId", //int(10) DEFAULT NULL COMMENT '连接id',
  20. "linkNo", //char(22) DEFAULT NULL COMMENT '连接单号',
  21. "goodsId", //int(10) DEFAULT NULL COMMENT '商品id',
  22. "goodsName", //varchar(30) DEFAULT NULL COMMENT '商品名称',
  23. "goodsCode", //varchar(20) DEFAULT NULL COMMENT '商品编号',
  24. "goodsBasicId", //int(10) DEFAULT NULL COMMENT '商品基础资料id',
  25. "skuId", //int(10) DEFAULT NULL COMMENT '单位id',
  26. "unitName",
  27. "skuName",
  28. "num", //decimal(20,8) DEFAULT NULL COMMENT '数量',
  29. "otherNum",// decimal(15,4) DEFAULT '0.0000' COMMENT '其他单位数量',
  30. "returnUnitPrice", //decimal(15,4) DEFAULT NULL COMMENT '退货单价',
  31. "saleUnitPrice", //decimal(15,4) DEFAULT NULL COMMENT '销售单价',
  32. "returnTotalPrice", //decimal(15,4) DEFAULT NULL COMMENT '退货总价',
  33. "saleTotalPrice", //decimal(15,4) DEFAULT NULL COMMENT '销售总价',
  34. "deleteStatus", //tinyint(3) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
  35. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  36. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  37. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  38. ];
  39. $this->_readonly = ['id'];
  40. $this->_create_autofill = [
  41. 'createTime' => time()
  42. ];
  43. $this->_update_autofill = [
  44. 'updateTime' => time()
  45. ];
  46. parent::__construct($serviceDB);
  47. }
  48. }