| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace app\common\model;
- class CreditCardConfigModel extends BaseModel
- {
- protected $table = 'erp_credit_card_config';
- protected function genSchema(array $schema)
- {
- // TODO: Implement genSchema() method.
- }
- public function getStage6Attr($value)
- {
- return json_decode($value);
- }
- public function getStage9Attr($value)
- {
- return json_decode($value);
- }
- public function getStage12Attr($value)
- {
- return json_decode($value);
- }
- public function getStage24Attr($value)
- {
- return json_decode($value);
- }
- public function getStage36Attr($value)
- {
- return json_decode($value);
- }
- public function findAll() {
- return $this->where('is_delete', 0)
- ->select();
- }
- }
|