DDeliveryRouteCustomer.Class.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 DDeliveryRouteCustomer extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'delivery_route_customer';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '线路绑定客户',
  19. "routeId", //int(10) DEFAULT NULL COMMENT '线路id',
  20. "customerId", //int(10) DEFAULT NULL COMMENT '客户id',
  21. "sort", //int(10) DEFAULT '0' COMMENT '排序 从大到小',
  22. "deleteStatus", //tinyint(1) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
  23. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  24. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  25. ];
  26. $this->_readonly = ['id'];
  27. $this->_create_autofill = [
  28. 'createTime' => time()
  29. ];
  30. $this->_update_autofill = [
  31. 'updateTime' => time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }