csv表格功能完善,以极性为示例
This commit is contained in:
@@ -810,14 +810,11 @@ bool Logic_taskthread::deleteSnData ( QByteArray byteArray, QVector<QString>& sn
|
||||
// 算法结果 写入plc
|
||||
bool Logic_taskthread::writeAiCommond ( QString cameraName,QString camera_name_index,QByteArray byteArray )
|
||||
{
|
||||
std::string str = byteArray.toStdString();
|
||||
int start = str.find(resultCmdSplitStart) + std::size(resultCmdSplitStart)-1;
|
||||
int end = str.find(resultCmdSplitEnd)- start;
|
||||
if (end > 0 && start > 0)
|
||||
str = str.substr(start,end);
|
||||
//char split = *generalSplit;
|
||||
QByteArrayList PLCvec_ret= QByteArray::fromStdString(str).split(*generalSplit); // 存储结果的
|
||||
|
||||
QByteArrayList PLCvec_ret= logicUiTransport::decodePlcResult(byteArray); // 存储结果的
|
||||
std::map<QString, QVariant> CsvAndChartData =
|
||||
logicUiTransport::decodeCsvAndChartData(byteArray);//发送导表格或者数据库的
|
||||
_CsvWriter.addtData(CsvAndChartData["条码"].toString(), CsvAndChartData);//写入csv文件
|
||||
|
||||
if (PLCvec_ret.isEmpty() )
|
||||
{
|
||||
qCritical() << __FUNCTION__ << " line:" << __LINE__ << " vec_ret is null!";
|
||||
|
||||
Reference in New Issue
Block a user