CdssAdvisory.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. class CdssAdvisory extends Model
  5. {
  6. protected $table = "jm_cdss_advisory_select";
  7. private $options = [ 1 => '主诉' , 2 => '现病史' , 3 => '其他史' , 4 => '查体',5 => '舌象',6 => '脉象'];
  8. // public function getCategoryAttr($value)
  9. // {
  10. // return $this->options[$value];
  11. // }
  12. public function getCategory()
  13. {
  14. return $this->options;
  15. }
  16. public function getFirstColumnSelectAttr($value)
  17. {
  18. return $value ? explode(',' , $value) : [];
  19. }
  20. public function getSecondColumnSelectAttr($value)
  21. {
  22. return $value ? explode(',' , $value) : [];
  23. }
  24. public function getThirdlyColumnSelectAttr($value)
  25. {
  26. return $value ? explode(',' , $value) : [];
  27. }
  28. public function getFourthlyColumnSelectAttr($value)
  29. {
  30. return $value ? explode(',' , $value) : [];
  31. }
  32. public function getFifthColumnSelectAttr($value)
  33. {
  34. return $value ? explode(',' , $value) : [];
  35. }
  36. }