#pragma once
#include<string>
#include<vector>
#include "CivSimuResStruct.h"
#include "pandaDbManager.h"
#include "CivSimulResHelperAbs.h"

class CivConnection;

/**
*@brief 方案模拟结果操作类型
*/
class PANDADBMANAGER_API CIvProjSimulResHelper:public CivSimulResHelperAbs
{
public:
	explicit CIvProjSimulResHelper(const std::string& uri);
	~CIvProjSimulResHelper();

	/**
	*@brief 保存方案模拟的节点数据
	*@param [ProjNodeResultItem] nodeItem 模拟的节点值
	*/
	virtual void saveNodeToDb(const std::vector<ProjNodeResultItem>& nodeItem);

	/**
	*@brief 保存方案模拟的管段数据
	*@param [PorjPipeResultItem] nodeItem 模拟的节点值
	*/
	virtual void savePipeToDb(const std::vector<PorjPipeResultItem>& pipeItem);

	// 根据时间点字段删除数据
	void deleteByTimeAndPorjcode(const std::string& time, const std::string& projCode);

private:
	std::string mPreNodeSQL;
	std::string mPrePipeSQL;
};
