TagLog.php 931 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\model;
  4. use think\Model;
  5. /**
  6. * @mixin \think\Model
  7. */
  8. class TagLog extends Model
  9. {
  10. protected $createTime='addtime';
  11. protected $updateTime='updatetime';
  12. public $status = ["解除","添加","修改"];
  13. public function TagInfo(){
  14. return $this->belongsTo(OrderTag::class,"tag_id","id")->bind(["type","tag_name"]);
  15. }
  16. public function OrderInfo(){
  17. return $this->belongsTo(QrdInfo::class,'code','sequenceNo')
  18. ->bind(['companyNo','companyName','customerNo','customerName',]);
  19. }
  20. public function PayInfo(){
  21. return $this->belongsTo(Pay::class,'code','payNo')
  22. ->bind(['companyNo','companyName','supplierNo','supplierName']);
  23. }
  24. public function CgdInfo(){
  25. return $this->belongsTo(CgdInfo::class,'code','sequenceNo')
  26. ->bind(['companyNo','companyName','supplierNo','supplierName']);
  27. }
  28. }