FlowLX.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%FLOW_LX}}".
  6. *
  7. * @property string $ID
  8. * @property string $USER_ID 会员ID
  9. * @property string $LAST_DEC_LV 记录时会员级别
  10. * @property string $LAST_EMP_LV 记录时会员聘级
  11. * @property int $LAST_STATUS 记录时状态
  12. * @property string $AMOUNT 金额
  13. * @property string $TOTAL 当前总金额
  14. * @property int $IS_INCR 是否增加
  15. * @property string $REMARK 备注
  16. * @property int $REMARK_IS_SHOW 备注是否显示
  17. * @property string $DEAL_TYPE_ID 交易类型名称
  18. * @property int $DEAL_TYPE_IS_PRESET 交易类型是否预置
  19. * @property string $ADMIN_NAME 操作人名称
  20. * @property int $PERIOD_NUM 所在期数
  21. * @property int $CALC_MONTH 所在结算月
  22. * @property string $P_MONTH 表分区的日期索引
  23. * @property int $CREATED_AT 创建时间
  24. * @property int $DELETED 是否删除
  25. * @property int $DELETED_AT 删除时间
  26. */
  27. class FlowLX extends \common\components\ActiveRecord
  28. {
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public static function tableName()
  33. {
  34. return '{{%FLOW_LX}}';
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function rules()
  40. {
  41. return [
  42. [['USER_ID', 'REMARK', 'PERIOD_NUM', 'CALC_MONTH', 'P_MONTH', 'CREATED_AT'], 'required'],
  43. [['AMOUNT', 'TOTAL'], 'number'],
  44. [['LAST_STATUS', 'IS_INCR', 'PERIOD_NUM', 'CALC_MONTH', 'CREATED_AT', 'REMARK_IS_SHOW', 'DELETED', 'DELETED_AT', 'DEAL_TYPE_IS_PRESET'], 'integer'],
  45. [['ID', 'USER_ID', 'ADMIN_NAME', 'LAST_DEC_LV', 'LAST_EMP_LV', 'DEAL_TYPE_ID'], 'string', 'max' => 32],
  46. [['REMARK'], 'string', 'max' => 255],
  47. [['ID'], 'unique'],
  48. ];
  49. }
  50. /**
  51. * {@inheritdoc}
  52. */
  53. public function attributeLabels()
  54. {
  55. return [
  56. 'ID' => 'ID',
  57. 'USER_ID' => '会员ID',
  58. 'LAST_DEC_LV' => '记录时会员级别',
  59. 'LAST_EMP_LV' => '记录时会员聘级',
  60. 'LAST_STATUS' => '记录时状态',
  61. 'AMOUNT' => '金额',
  62. 'TOTAL' => '当前总金额',
  63. 'IS_INCR' => '是否增加',
  64. 'REMARK' => '备注',
  65. 'REMARK_IS_SHOW' => '备注是否显示',
  66. 'DEAL_TYPE_ID' => '交易类型ID',
  67. 'DEAL_TYPE_IS_PRESET' => '交易类型是否预置',
  68. 'ADMIN_NAME' => '操作人名称',
  69. 'PERIOD_NUM' => '所在期数',
  70. 'CALC_MONTH' => '所在结算月',
  71. 'P_MONTH' => '表分区的日期索引',
  72. 'CREATED_AT' => '创建时间',
  73. 'DELETED' => '是否删除',
  74. 'DELETED_AT' => '删除时间',
  75. ];
  76. }
  77. }