getPk(); $row->getQuery()->where($pk, $row[$pk])->update(['weigh' => $row[$pk]]); }); } public function getLableTypeList() { return ['course' => __('Course'), 'coach' => __('Coach'), 'camp' => __('Camp')]; } public function getStatusList() { return ['normal' => __('Normal'), 'hidden' => __('Hidden')]; } public function getLableTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['lable_type']) ? $data['lable_type'] : ''); $list = $this->getLableTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['status']) ? $data['status'] : ''); $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } }