ExcelChangeBalance.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%EXCEL_CHANGE_BALANCE}}".
  6. *
  7. * @property string $ID
  8. * @property string $EXCEL_IMPORT_ID 导入记录表ID
  9. * @property string $USER_NAME 会员编号
  10. * @property string $REAL_NAME 会员姓名
  11. * @property string $TYPE 账户类型
  12. * @property string $AMOUNT 调整金额
  13. * @property string $DEAL_TYPE 交易类型
  14. * @property string $REMARK 备注
  15. * @property string $REMARK_IS_SHOW 备注显示
  16. * @property int $SORT 序号
  17. * @property int $STATUS 状态
  18. * @property string $ERROR_REMARK 错误记录
  19. * @property int $CREATED_AT 创建时间
  20. */
  21. class ExcelChangeBalance extends \common\components\ActiveRecord
  22. {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%EXCEL_CHANGE_BALANCE}}';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['EXCEL_IMPORT_ID', 'USER_NAME', 'REAL_NAME', 'TYPE', 'DEAL_TYPE', 'REMARK_IS_SHOW'], 'required'],
  37. [['SORT', 'STATUS', 'CREATED_AT'], 'integer'],
  38. [['AMOUNT'], 'number'],
  39. [['ID', 'EXCEL_IMPORT_ID', 'REAL_NAME'], 'string', 'max' => 32],
  40. [['ERROR_REMARK'], 'string', 'max' => 1000],
  41. [['USER_NAME'], 'string', 'max' => 16],
  42. [['TYPE'], 'string', 'max' => 20],
  43. [['DEAL_TYPE'], 'string', 'max' => 128],
  44. [['REMARK'], 'string', 'max' => 2000],
  45. [['REMARK_IS_SHOW'], 'string', 'max' => 8],
  46. [['ID'], 'unique'],
  47. ];
  48. }
  49. /**
  50. * {@inheritdoc}
  51. */
  52. public function attributeLabels()
  53. {
  54. return [
  55. 'ID' => 'ID',
  56. 'EXCEL_IMPORT_ID' => '导入记录表ID',
  57. 'USER_NAME' => '会员编号',
  58. 'REAL_NAME' => '会员姓名',
  59. 'TYPE' => '账户类型',
  60. 'AMOUNT' => '调整金额',
  61. 'DEAL_TYPE' => '交易类型',
  62. 'REMARK' => '备注',
  63. 'REMARK_IS_SHOW' => '备注显示',
  64. 'SORT' => '序号',
  65. 'STATUS' => '状态',
  66. 'ERROR_REMARK' => '错误记录',
  67. 'CREATED_AT' => '创建时间',
  68. ];
  69. }
  70. }