CFLXAudit.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. use common\libs\logging\operate\valueType\Config as ValueTypeConfig;
  5. /**
  6. * This is the model class for table "{{%CF_LX_AUDIT}}".
  7. *
  8. * @property string $ID
  9. * @property string $USER_ID
  10. * @property string $CF 车房养老
  11. * @property string $LX 领袖分红
  12. * @property int $YEAR 类型
  13. * @property int $AUDIT_STATUS 审核状态
  14. * @property string $CREATE_ADMIN 创建管理员
  15. * @property string $AUDIT_ADMIN 审核管理员
  16. * @property string $CREATE_REMARK 申请备注
  17. * @property string $AUDIT_REMARK 审核备注
  18. * @property int $CREATED_AT 创建时间
  19. * @property int $AUDITED_AT 审核时间
  20. */
  21. class CFLXAudit extends \common\components\ActiveRecord
  22. {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%CF_LX_AUDIT}}';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['YEAR', 'AUDIT_STATUS', 'CREATED_AT', 'AUDITED_AT'], 'integer'],
  37. [['CREATE_ADMIN', 'CREATED_AT', 'USER_ID'], 'required'],
  38. [['CF','LX'], 'number'],
  39. [['ID', 'USER_ID', 'CREATE_ADMIN', 'AUDIT_ADMIN'], 'string', 'max' => 32],
  40. [['CREATE_REMARK', 'AUDIT_REMARK'], 'string', 'max' => 4000],
  41. [['ID'], 'unique'],
  42. ];
  43. }
  44. /**
  45. * {@inheritdoc}
  46. */
  47. public function attributeLabels()
  48. {
  49. return [
  50. 'ID' => 'ID',
  51. 'USER_ID' => '用户ID',
  52. 'LX' => '车房养老',
  53. 'CF' => '领袖分红',
  54. 'YEAR' => '年',
  55. 'AUDIT_STATUS' => '审核状态',
  56. 'CREATE_ADMIN' => '创建管理员',
  57. 'AUDIT_ADMIN' => '审核管理员',
  58. 'CREATE_REMARK' => '申请备注',
  59. 'AUDIT_REMARK' => '审核备注',
  60. 'CREATED_AT' => '创建时间',
  61. 'AUDITED_AT' => '审核时间',
  62. ];
  63. }
  64. /**
  65. * 操作日志记录条件
  66. * @return array
  67. */
  68. public function attrLabelsWithLogType(){
  69. return [
  70. 'USER_ID' => '会员ID',
  71. 'CF' => '车房养老',
  72. 'LX' => '领袖分红',
  73. 'AUDIT_STATUS' => [
  74. 'label' => '审核状态',
  75. 'type' => ValueTypeConfig::AUDIT_STATUS_TYPE,
  76. ],
  77. 'CREATE_ADMIN' => [
  78. 'label' => '申请管理员',
  79. 'type' => ValueTypeConfig::ADMIN_TYPE,
  80. ],
  81. 'AUDIT_ADMIN' => [
  82. 'label' => '审核管理员',
  83. 'type' => ValueTypeConfig::ADMIN_TYPE,
  84. ],
  85. 'CREATE_REMARK' => '备注',
  86. 'CREATED_AT' => [
  87. 'label' => '申请时间',
  88. 'type' => ValueTypeConfig::DATE_TIME_TYPE,
  89. ],
  90. 'AUDITED_AT' => [
  91. 'label' => '审核时间',
  92. 'type' => ValueTypeConfig::DATE_TIME_TYPE,
  93. ],
  94. ];
  95. }
  96. }