WelfareGrant.php 583 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\common\model;
  3. /**
  4. * 福利礼包表
  5. * @author Administrator
  6. */
  7. class WelfareGrant extends \think\Model
  8. {
  9. protected $pk = 'id';
  10. protected $table = 'cy_welfare_grant';
  11. protected $dateFormat = false; //时间戳格式不自动转换
  12. public function getApplyTimeAttr($value)
  13. {
  14. return date('Y-m-d H:i:s', $value);
  15. }
  16. public function getGrantTimeAttr($value)
  17. {
  18. return date('Y-m-d H:i:s', $value);
  19. }
  20. public function getUpdateTimeAttr($value)
  21. {
  22. return date('Y-m-d H:i:s', $value);
  23. }
  24. }