ServeProcess.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%SERVE_PROCESS}}".
  6. *
  7. * @property string $ID
  8. * @property string $TASK_TYPE 任务类型 serve_statistical 服务统计信息,比如总人数,总业绩 perf 业绩单信息 bonus 奖金信息
  9. * @property string $START_AT 开始时间
  10. * @property string $END_AT 结束时间
  11. * @property string $PERIOD_NUM 业绩期
  12. * @property string $TASK_DESCRIBE 描述信息
  13. * @property string $USE_MEMORY 使用内存大小
  14. * @property string $USE_TIME 耗时
  15. * @property string $CALC_USER_TOTAL 总人数
  16. * @property string $CALC_PERF_TOTAL 业绩单中总业绩
  17. * @property string $CREATE_AT 创建时间
  18. */
  19. class ServeProcess extends \common\components\ActiveRecord
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%SERVE_PROCESS}}';
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['PERIOD_NUM', 'TASK_TYPE'], 'required'],
  35. [['ID'], 'unique'],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'ID' => 'ID',
  45. 'TASK_TYPE' => '任务类型',
  46. 'START_AT' => '开始时间',
  47. 'END_AT' => '结束时间',
  48. 'PERIOD_NUM' => '业绩期',
  49. 'TASK_DESCRIBE' => '描述信息',
  50. 'USE_MEMORY' => '使用内存大小',
  51. 'USE_TIME' => '耗时',
  52. 'CALC_USER_TOTAL' => '总人数',
  53. 'CALC_PERF_TOTAL' => '总业绩',
  54. ];
  55. }
  56. }