Files
dcapp/datacenter/bizService/F_InsertRecord.h
T
2025-02-27 14:10:15 +08:00

29 lines
856 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* @Description: file content
* @Author: why
* @version:
* @Date: 2025-02-21 14:04:30
* @LastEditors: why
* @LastEditTime: 2025-02-26 15:13:26
*/
#include <string>
#include <vector>
#include "bizservice.h"
class InsertRecord : public IBizService
{
public:
void Init(initparam_t *param);
int HandleMsg(const msg_t msg,msg_t &outMsg, handparam_t *param);
std::string GetFID();
InsertRecord();
~InsertRecord();
private:
handparam_t * handpara;
initparam_t * initpara;
std::vector<std::string> topic;//0:dst 1:src 2:sid 3:fid
void topic_split(const std::string& str, char delimiter);
int SQLBatch_exc(std::vector<std::string> &sql_list,std::vector<std::string> &result);
std::string now_to_string();
time_t string_to_now(std::string stamp);
};