CreditCardConfigModel.php 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace app\common\model;
  3. class CreditCardConfigModel extends BaseModel
  4. {
  5. protected $table = 'erp_credit_card_config';
  6. protected function genSchema(array $schema)
  7. {
  8. // TODO: Implement genSchema() method.
  9. }
  10. public function getStage6Attr($value)
  11. {
  12. return json_decode($value);
  13. }
  14. public function getStage9Attr($value)
  15. {
  16. return json_decode($value);
  17. }
  18. public function getStage12Attr($value)
  19. {
  20. return json_decode($value);
  21. }
  22. public function getStage24Attr($value)
  23. {
  24. return json_decode($value);
  25. }
  26. public function getStage36Attr($value)
  27. {
  28. return json_decode($value);
  29. }
  30. public function findAll() {
  31. return $this->where('is_delete', 0)
  32. ->select();
  33. }
  34. }