DDeliveryRoute.Class.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * 配送线路Dao
  4. * Created by PhpStorm.
  5. * User: haoren
  6. * Date: 2021/04/20
  7. * Time: 16:00
  8. */
  9. namespace JinDouYun\Dao\Delivery;
  10. use JinDouYun\Dao\BaseDao;
  11. class DDeliveryRoute extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'delivery_route';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '线路表',
  19. "name", //varchar(255) DEFAULT NULL COMMENT '线路名称',
  20. "shopId", //int(10) DEFAULT '0' COMMENT '商铺id',
  21. "warehouseId", //int(10) DEFAULT '0' COMMENT '仓库id',
  22. "driverId", //varchar(255) DEFAULT NULL COMMENT '司机id ,分割',
  23. "desc", //varchar(255) DEFAULT NULL COMMENT '备注,描述',
  24. "enableStatus", //tinyint(1) DEFAULT '5' COMMENT '启用状态 4:禁用 5:正常',
  25. "deleteStatus", //tinyint(1) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
  26. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  27. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. 'createTime' => time()
  32. ];
  33. $this->_update_autofill = [
  34. 'updateTime' => time()
  35. ];
  36. parent::__construct($serviceDB);
  37. }
  38. }