Yii2:按订单依据分组

时间:2016-09-06 04:59:50

标签: yii2

I have database 请帮助我。 我想获得订阅者的listViewCount,如下所示

  

选择       ID,       subscriber_id,       的content_id,       started_at,       stopped_at,       view_date FROM       (选择           *       从           content_view_log       哪里           subscriber_id = 19       ORDER BY view_date DESC)t GROUP BY content_id;

lstViewCount when use sql above 请用yii2修复我的sql:

import org.apache.jmeter.gui.GuiPackage;
import org.apache.jmeter.gui.tree.JMeterTreeNode;
import org.apache.jmeter.sampler.TestAction;              

 GuiPackage guiInstance = GuiPackage.getInstance();
 guiInstance.getTreeModel().getTestPlan();
 List testactionlist = guiInstance.getTreeModel().getNodesOfType(TestAction.class);
 for (Object testAction : testactionlist) {
     JMeterTreeNode testActionSampler = (JMeterTreeNode) testAction;
     testActionSampler.setEnabled(false);
 }

0 个答案:

没有答案