| | |
| | | #include "analysisbyrediscache.h" |
| | | #include "ui_analysisbyrediscache.h" |
| | | #include <QDateTime> |
| | | #include <QDebug> |
| | | #include <QElapsedTimer> |
| | | |
| | |
| | | ui(new Ui::AnalysisByRedisCache) |
| | | { |
| | | ui->setupUi(this); |
| | | |
| | | ui->dateEdit->setDate(QDate::currentDate().addMonths(-1)); |
| | | |
| | | if(m_dbCache.initMySQL("127.0.0.1",3306,"root","root","stock_plan")){ |
| | | qDebug()<<"mysql conn ok"; |
| | |
| | | int cnt = 0; |
| | | for(auto it:m_result){ |
| | | if(it["name"].toString() == name){ |
| | | qDebug()<<it["name"].toString()<<it["close"].toString()<<it["amount_rank"].toString()<<it["time_trade"].toString(); |
| | | // qDebug()<<it["name"].toString()<<it["close"].toString()<<it["amount_rank"].toString()<<it["time_trade"].toString(); |
| | | cnt++; |
| | | QList<QStandardItem*> items; |
| | | items.append(new QStandardItem(it["name"].toString())); |