我有有评级的用户,我想显示每个用户的总评等量。我有两个表:用户和反馈。我在users表中有4个用户。在表反馈(由applicant_id和app_experience列组成)中,我有每个用户的评级。但是,我对每个人都有几分评价。
$sql4 = "
SELECT SUM(app_experience) as app_experience
, applicant_id
FROM feedback f
JOIN users u
ON u.id=f.applicant_id
GROUP
BY feedback.applicant_id
"
视图/反馈/搜索反馈。
我的搜索表格:
<%= form_tag(search_feedback_feedback_path(:id), :method => :get) do %>
<%= text_field_tag :token_no %>
<%= submit_tag 'Search' %>
<% end %>
app/config/routeres.rb文件:
resources :feedbacks do
member do
get :search_feedback
在我的网站用户评级和反馈文本区是在网站的消息页面,我想把他们从消息页面分离出来,并为他们创建一个新的页面。下面您可以看到消息控制器文件中有关评级和反馈的代码片段。
// send feedback
public function actionSendFeed() {
$this->layout = $this->view_dir.'/Rate-Supplier';
$first_message = $this->getFirstChain(Yii::$app->request->post('chain', fa
我有两个桌子(用户和反馈)。在第二个表中,我使用user_id作为外键,并且我正在尝试获取反馈用户的名称
在User.php:
public function feedbackuser()
{
return $this->hasMany('App\Feedback');
}
在Feedback.php中:
public function usersfeed(){
return $this->belongsTo('App\User','user_id');
}
我
我已将我的应用程序提交到Shopify应用商店进行审查,我得到的反馈如下
I was unable to install your app from the App Store listing. I was redirected to this page after clicking 'Get'. When clicking on 'Get' from the app listing, the app should immediately authenticate using OAuth. Please watch this example of what th
在运行Windows App Certification Kit 10.0时遇到以下测试失败
Platform version launch
Error Found: The high OS version validation detected the following errors:
Cannot launch App
The app <apppackagename> failed platform version launch test.
Impact if not fixed: The app should not use version information t